image.mk: use LINUX_KARCH rather than ARCH for mkits
authorIan Pozella <[email protected]>
Mon, 26 Sep 2016 14:06:10 +0000 (15:06 +0100)
committerFelix Fietkau <[email protected]>
Fri, 13 Jan 2017 13:54:11 +0000 (14:54 +0100)
The generated 'its' is passed to mkimage which expects linux arch
strings rather than the full arch (e.g. mips not mipsel).

It currently works in some cases where LINUX_KARCH == ARCH but
otherwise you get an unknown arch build error.

Signed-off-by: Ian Pozella <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
include/image-commands.mk
include/image.mk

index a7acd0ee6739e11cd04c9353f1352c91fe1d54f1..04fa853fbbd99936c547d5eb0862137cba22809d 100644 (file)
@@ -59,7 +59,7 @@ define Build/fit
                -D $(DEVICE_NAME) -o [email protected] -k $@ \
                $(if $(word 2,$(1)),-d $(word 2,$(1))) -C $(word 1,$(1)) \
                -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
-               -A $(ARCH) -v $(LINUX_VERSION)
+               -A $(LINUX_KARCH) -v $(LINUX_VERSION)
        PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f [email protected] [email protected]
        @mv [email protected] $@
 endef
index 3daee35c48b2f92f15ac40f59d413a06f986e37c..ab5b816844e7cabe2271d3bcd5707224a0534271 100644 (file)
@@ -143,7 +143,7 @@ endef
 define Image/BuildKernel/MkFIT
        $(TOPDIR)/scripts/mkits.sh \
                -D $(1) -o $(KDIR)/fit-$(1).its -k $(2) $(if $(3),-d $(3)) -C $(4) -a $(5) -e $(6) \
-               -A $(ARCH) -v $(LINUX_VERSION)
+               -A $(LINUX_KARCH) -v $(LINUX_VERSION)
        PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/fit-$(1).its $(KDIR)/fit-$(1)$(7).itb
 endef