X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fdracut;h=7b0cd8a60588a9b5ea220794f89b830d33ddda95;hp=726eedb409841827e6f7e649cf7dada2db3f9c3c;hb=5c3fa3223a4de6eb3a62d1c97c52f1762faa07f4;hpb=08d5192eb1ac55711e9c880096f024d1515bd08b diff --git a/lfs/dracut b/lfs/dracut index 726eedb40..7b0cd8a60 100644 --- a/lfs/dracut +++ b/lfs/dracut @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2013 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 # @@ -72,6 +72,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dracut-006_lzma.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dracut-006_remove_cdrom_wait.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dracut-006_add_run_symlink.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dracut-006_remove_scsi_wait.patch cd $(DIR_APP) && cp -vf $(DIR_SRC)/src/dracut/switch_root.c . @@ -87,7 +90,19 @@ $(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 + # arm7 multi kernel + /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER)-multi.img $(KVER)-ipfire-multi + cd /boot && mkimage -A arm -T ramdisk -C lzma -d ipfirerd-$(KVER)-multi.img uInit-ipfire-multi +# cd /boot && cp -f ipfirerd-$(KVER)-multi.img zInit-ipfire-multi +else + /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER).img $(KVER)-ipfire +endif @rm -rf $(DIR_APP) @$(POSTBUILD)