]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/dracut
support build of different arm kernels and add verstile cfg.
[ipfire-2.x.git] / lfs / dracut
index 8f7b848b92359d650391403580d98d4051c41601..029bc380ddebf9015955e83ffd4688c507389fab 100644 (file)
@@ -90,7 +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"
+       # 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)