]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - lfs/dracut
Fix stripping.
[people/teissler/ipfire-2.x.git] / lfs / dracut
index c9816bd57d54f05f871d1db00b438ae955fe3065..f2195a70b532a73c88f1df63594db96b4dc82c91 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2010  IPFire Team  <info@ipfire.org>                          #
+# Copyright (C) 2011  IPFire Team  <info@ipfire.org>                          #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -88,7 +88,18 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                /usr/share/dracut/modules.d/99base/init
 
        # Build initramdisk
-       /sbin/dracut --force --verbose /boot/ipfirerd-$(KVER).img $(KVER)-ipfire
-
+       # Strip all binaries in that initrd, because no debugging code is
+       # needed.
+
+ifeq "$(MACHINE_TYPE)" "arm"
+       # kirkwood kernel
+       /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER)-kirkwood.img $(KVER)-ipfire-kirkwood
+       cd /boot && mkimage -A arm -T ramdisk -C lzma -d ipfirerd-$(KVER)-kirkwood.img uInit-ipfire-kirkwood
+       # omap kernel
+       /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER)-omap.img $(KVER3)-ipfire-omap
+       cd /boot && mkimage -A arm -T ramdisk -C lzma -d ipfirerd-$(KVER)-omap.img uInit-ipfire-omap
+else
+       /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER).img $(KVER)-ipfire
+endif
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)