summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-09-11 18:22:34 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-09-11 18:22:34 +0000
commit7dd7abcc692ce8dec30b1758f096de5af55fb3dc (patch)
tree4fbdbb3e45dbc2b230de317e7e8635dd5fa92605 /utils
parent586970dacc60b937e18c2d62a509c539ed7f8444 (diff)
downloadanaconda-7dd7abcc692ce8dec30b1758f096de5af55fb3dc.tar.gz
anaconda-7dd7abcc692ce8dec30b1758f096de5af55fb3dc.tar.xz
anaconda-7dd7abcc692ce8dec30b1758f096de5af55fb3dc.zip
* scripts/mk-images.s390: Use the size of the actual initrd.img for
the value in initrd.size. * utils/Makefile: Only build and install geninitrdsz on zSeries.
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/utils/Makefile b/utils/Makefile
index ee5bc9994..d459947a3 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -11,6 +11,14 @@ CFLAGS += -I.. -I$(LOADERDIR) -fno-strict-aliasing
RPMCFLAGS = $(CFLAGS) -I/usr/include/rpm
LDFLAGS = -g
+UTILS = modlist moddeps snarffont mapshdr readmap
+ifeq (s390, $(ARCH))
+UTILS += geninitrdsz
+endif
+ifeq (s390x, $(ARCH))
+UTILS += geninitrdsz
+endif
+
ifeq (.depend,$(wildcard .depend))
TARGET=all
else
@@ -19,7 +27,7 @@ endif
everything: $(TARGET)
-all: modlist moddeps snarffont mapshdr readmap geninitrdsz
+all: $(UTILS)
modlist: modlist.o moduleinfo.o
$(CC) $(LDFLAGS) -o modlist modlist.o moduleinfo.o $(LOADLIBES)
@@ -57,7 +65,9 @@ install: all
install -m755 modlist $(DESTDIR)/$(RUNTIMEDIR)
install -m755 readmap $(DESTDIR)/$(RUNTIMEDIR)
install -m755 mapshdr $(DESTDIR)/$(RUNTIMEDIR)
- install -m755 geninitrdsz $(DESTDIR)/$(RUNTIMEDIR)
+ if [ -x geninitrdsz ]; then \
+ install -m755 geninitrdsz $(DESTDIR)/$(RUNTIMEDIR) ; \
+ fi
clean:
rm -f modlist moddeps snarffont mapshdr readmap geninitrdsz \