X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Flinux-initrd;h=93f21078ea06d8514eb2d2f55f166c1b8bc64493;hb=b67e79a4f15bcb8f2e9d525169d9c51611fe6c7e;hp=b5cc42212deaf917ae078257fd09de245b3d9f2c;hpb=99ba4e9224c409630b95b7a16d77a74a028f8690;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/lfs/linux-initrd b/lfs/linux-initrd index b5cc42212d..93f21078ea 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 # @@ -62,14 +62,22 @@ 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) +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. +else + 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 endif endif