]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - lfs/dracut
support build of different arm kernels and add verstile cfg.
[people/teissler/ipfire-2.x.git] / lfs / dracut
index 9bdb8a12db1f6c141cb422bacc761bb48272f31c..029bc380ddebf9015955e83ffd4688c507389fab 100644 (file)
@@ -90,11 +90,15 @@ $(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
+       # versatile kernel
+       /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER)-versatile.img $(KVER)-ipfire-versatile
+       # 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
+else
+       /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER).img $(KVER)-ipfire
 endif
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)