diff options
author | Khalid Zubair <kzubair@cyngn.com> | 2016-03-03 12:22:50 -0800 |
---|---|---|
committer | Khalid Zubair <kzubair@cyngn.com> | 2016-03-04 09:45:56 -0800 |
commit | 99f8e961617ec578facf8043682c343948e0cdb2 (patch) | |
tree | 3a033f8a41fb6e590c73037f7bf3bd9b0029c949 /core | |
parent | 9f2ad7c48905a98704752b9d200a551b07ae7565 (diff) | |
download | build-99f8e961617ec578facf8043682c343948e0cdb2.zip build-99f8e961617ec578facf8043682c343948e0cdb2.tar.gz build-99f8e961617ec578facf8043682c343948e0cdb2.tar.bz2 |
kernel: allow toolchain prefix to be overridden
Allow the toolchain prefix defined in BoardConfig.mk to be overridden
via by setting KERNEL_TOOLCHAIN_PREFIX (alongside KERNEL_TOOLCHAIN) to
compile with an alternate toolchain.
Change-Id: If6f4f0dba9bd0b0056f76e380070cca74ea0a4df
Diffstat (limited to 'core')
-rw-r--r-- | core/tasks/kernel.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/tasks/kernel.mk b/core/tasks/kernel.mk index 7ce9a8a..3270a34 100644 --- a/core/tasks/kernel.mk +++ b/core/tasks/kernel.mk @@ -39,6 +39,9 @@ # defaults to Image if TARGET_USES_UNCOMPRESSED_KERNEL # defaults to zImage otherwise # +# KERNEL_TOOLCHAIN_PREFIX = Overrides TARGET_KERNEL_CROSS_COMPILE_PREFIX, +# Set this var in shell to override +# toolchain specified in BoardConfig.mk # KERNEL_TOOLCHAIN = Path to toolchain, if unset, assumes # TARGET_KERNEL_CROSS_COMPILE_PREFIX # is in PATH @@ -208,11 +211,9 @@ endif TARGET_KERNEL_CROSS_COMPILE_PREFIX := $(strip $(TARGET_KERNEL_CROSS_COMPILE_PREFIX)) ifeq ($(TARGET_KERNEL_CROSS_COMPILE_PREFIX),) -ifeq ($(KERNEL_TOOLCHAIN_PREFIX),) -KERNEL_TOOLCHAIN_PREFIX := arm-eabi- -endif +KERNEL_TOOLCHAIN_PREFIX ?= arm-eabi- else -KERNEL_TOOLCHAIN_PREFIX := $(TARGET_KERNEL_CROSS_COMPILE_PREFIX) +KERNEL_TOOLCHAIN_PREFIX ?= $(TARGET_KERNEL_CROSS_COMPILE_PREFIX) endif ifeq ($(KERNEL_TOOLCHAIN),) |