diff --git a/lfs/dracut b/lfs/dracut index 434a7bc53..397b63c94 100644 --- a/lfs/dracut +++ b/lfs/dracut @@ -78,20 +78,5 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cp -vf $(DIR_SRC)/src/dracut/dracut.conf /etc/dracut.conf.d/ - # Build initramdisk - # Strip all binaries in that initrd, because no debugging code is - # needed. - -ifeq "$(MACHINE_TYPE)" "arm" - # kirkwood kernel - 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 - # arm7 multi kernel - dracut --force --verbose --strip /boot/ipfirerd-$(KVER)-multi.img $(KVER)-ipfire-multi - cd /boot && mkimage -A arm -T ramdisk -C lzma -d ipfirerd-$(KVER)-multi.img uInit-ipfire-multi -# cd /boot && cp -f ipfirerd-$(KVER)-multi.img zInit-ipfire-multi -else - dracut --force --verbose --strip /boot/initramfs-$(KVER)-ipfire.img $(KVER)-ipfire -endif @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/lfs/linux b/lfs/linux index e62cecd75..276215595 100644 --- a/lfs/linux +++ b/lfs/linux @@ -293,6 +293,17 @@ ifeq "$(MACHINE_TYPE)" "arm" done endif + # Create initramfs images + dracut --force --verbose --strip /boot/initramfs-$(KVER)-$(VERSUFIX).img $(KVER)-$(VERSUFIX) + +ifeq "$(KCFG)" "-kirkwood" + cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-kirkwood.img uInit-ipfire-kirkwood +endif + +ifeq "$(KCFG)" "-multi" + cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-multi.img uInit-ipfire-multi +endif + ifeq "$(LASTKERNEL)" "1" # Only do this once cd $(DIR_APP) && install -m 755 usr/gen_init_cpio /sbin/ diff --git a/make.sh b/make.sh index beafd3342..09419201e 100755 --- a/make.sh +++ b/make.sh @@ -400,6 +400,8 @@ buildipfire() { ipfiremake rpi-firmware ipfiremake bc ipfiremake u-boot + ipfiremake cpio + ipfiremake dracut case "${TARGET_ARCH}" in i586) @@ -459,8 +461,6 @@ buildipfire() { esac ipfiremake pkg-config ipfiremake linux-atm - ipfiremake cpio - ipfiremake dracut ipfiremake expat ipfiremake gdbm ipfiremake pam