X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fdracut;h=f2195a70b532a73c88f1df63594db96b4dc82c91;hb=e98279ed71cf31ab778f19e156ef14db671c21fa;hp=c9816bd57d54f05f871d1db00b438ae955fe3065;hpb=b3cd6e3382dd7145d5c2447599a4d91bb3295fef;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/lfs/dracut b/lfs/dracut index c9816bd57..f2195a70b 100644 --- a/lfs/dracut +++ b/lfs/dracut @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2010 IPFire Team # +# Copyright (C) 2011 IPFire Team # # # # 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)