linux-initrd: fix build of uInit on aarch64

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2019-01-12 20:01:00 +01:00
parent 00f9dcd91d
commit f622fd8ed0
2 changed files with 5 additions and 5 deletions

View File

@@ -1,2 +1,2 @@
#boot/uInit-KVER-ipfire
boot/uInit-KVER-ipfire
boot/initramfs-KVER-ipfire.img

View File

@@ -71,13 +71,13 @@ ifeq "$(KCFG)" "-kirkwood"
endif
ifeq "$(KCFG)" "-multi"
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
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