aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel.mk
diff options
context:
space:
mode:
Diffstat (limited to 'include/kernel.mk')
-rw-r--r--include/kernel.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 318ca6869d..db02ea2160 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -29,8 +29,12 @@ LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \
)
ifneq (,$(findstring uml,$(BOARD)))
-LINUX_KARCH="um"
-KERNEL_CROSS=
+ LINUX_KARCH:=um
+ KERNEL_CC:=$(HOSTCC)
+ KERNEL_CROSS:=
+else
+ KERNEL_CC:=$(TARGET_CC)
+ KERNEL_CROSS:=$(TARGET_CROSS)
endif
KERNEL_BUILD_DIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)