X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Flinux-initrd;h=f5bd4527bdb84e93873fa5cb4726f5fbe1f8e27f;hp=1b048b50a0659d144d2c48e33692077897d3e9e8;hb=d111587cc3b0007b35c09dd847d035e6ffadffc7;hpb=22820bf25673d6d709f674796e64890af5578f2d diff --git a/lfs/linux-initrd b/lfs/linux-initrd index 1b048b50a0..f5bd4527bd 100644 --- a/lfs/linux-initrd +++ b/lfs/linux-initrd @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2014 IPFire Team # +# Copyright (C) 2007-2018 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 # @@ -57,14 +57,29 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) # rebuild module deps depmod -a $(KVER)-$(VERSUFIX) + #skip initrd build on pae and rpi kernel. +ifneq "$(KCFG)" "-rpi" +ifneq "$(KCFG)" "-pae" + # Create initramfs images - dracut --force --verbose --strip --xz /boot/initramfs-$(KVER)-$(VERSUFIX).img $(KVER)-$(VERSUFIX) + dracut --force --early-microcode --verbose --strip --xz /boot/initramfs-$(KVER)-$(VERSUFIX).img $(KVER)-$(VERSUFIX) ifeq "$(KCFG)" "-kirkwood" - cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX) +# cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX) + cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX) + cd /boot && rm initramfs-$(KVER)-$(VERSUFIX).img endif ifeq "$(KCFG)" "-multi" - cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX) + cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX) + cd /boot && rm initramfs-$(KVER)-$(VERSUFIX).img +endif + +ifeq "$(BUILD_ARCH)" "aarch64" + cd /boot && mkimage -A arm64 -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX) + # dont remove initramfs because grub need this to boot. +endif + +endif endif @$(POSTBUILD)