X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fdracut;h=0779a6b73bd2d953ba536d5489f9b9d2260d8333;hb=225140ae8fc9f3cedfb32729169f6d98875820ce;hp=8f7b848b92359d650391403580d98d4051c41601;hpb=abcc9746afdb6da0783b62c61a86d3839a1d3a14;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/lfs/dracut b/lfs/dracut index 8f7b848b9..0779a6b73 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)