X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fdracut;h=0779a6b73bd2d953ba536d5489f9b9d2260d8333;hp=8f7b848b92359d650391403580d98d4051c41601;hb=85981472c3ef260141178afe9a006935ecb913e2;hpb=38becfffb894e9daa239daab7162886892c4e8b4 diff --git a/lfs/dracut b/lfs/dracut index 8f7b848b92..0779a6b73b 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 # @@ -90,7 +90,16 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) # Build initramdisk # Strip all binaries in that initrd, because no debugging code is # needed. - /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER).img $(KVER)-ipfire +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 $(KVER)-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)