diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-10-16 14:31:27 +0300 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2015-11-08 16:44:43 +0300 |
commit | 3bc27cdfe989906fb025204c68a6f85b07b3a192 (patch) | |
tree | f80672c1417ce1943d107e12238e4c8c582f6cfc /arch/h8300 | |
parent | a02613a4ba679eacec8251976d02809d533fa717 (diff) | |
download | linux-3bc27cdfe989906fb025204c68a6f85b07b3a192.tar.xz |
h8300: Don't set CROSS_COMPILE unconditionally
The h8300 architecture Makefile sets the CROSS_COMPILE variable to
"h8300-unknown-linux-" unconditionally but doing that prevents the
variable to be used if a toolchain with a different binary name is
installed in the machine.
So only set CROSS_COMPILE to that default if the variable has not
been set by the user before.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Diffstat (limited to 'arch/h8300')
-rw-r--r-- | arch/h8300/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile index 0d2d96e52d9f..e1c02ca230cb 100644 --- a/arch/h8300/Makefile +++ b/arch/h8300/Makefile @@ -22,7 +22,9 @@ KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" KBUILD_AFLAGS += $(aflags-y) LDFLAGS += $(ldflags-y) +ifeq ($(CROSS_COMPILE),) CROSS_COMPILE := h8300-unknown-linux- +endif core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/ ifneq '$(CONFIG_H8300_BUILTIN_DTB)' '""' |