]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - lfs/dracut
ovpnmain.cgi: Don't fail if files are not existant.
[people/teissler/ipfire-2.x.git] / lfs / dracut
index 9bdb8a12db1f6c141cb422bacc761bb48272f31c..0779a6b73bd2d953ba536d5489f9b9d2260d8333 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        #
@@ -90,11 +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"
-       #Convert initrd to uboot-image
-       cd /boot && mkimage -A arm -T ramdisk -C lzma -d ipfirerd-$(KVER).img uInit
+       # 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)