]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
h8300: Don't set CROSS_COMPILE unconditionally
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 16 Oct 2015 11:31:27 +0000 (13:31 +0200)
committerYoshinori Sato <ysato@users.sourceforge.jp>
Wed, 21 Oct 2015 14:03:22 +0000 (23:03 +0900)
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>
arch/h8300/Makefile

index 0d2d96e52d9fed374928fdd0be0466aca66827f1..e1c02ca230cb0a9dbd985b59b0646eb86f0d9891 100644 (file)
@@ -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)' '""'