]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/avr32/config.mk
kbuild: fix CROSS_COMPILE settings in config.mk
[karo-tx-uboot.git] / arch / avr32 / config.mk
index 4ab4745edfc7074936f741a03dda4603abb82209..28a371c806449afc9da1c035ac098ce82ddc2920 100644 (file)
@@ -5,8 +5,11 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-CROSS_COMPILE ?= avr32-linux-
+ifeq ($(CROSS_COMPILE),)
+CROSS_COMPILE := avr32-linux-
+endif
 
+PLATFORM_CPPFLAGS += -DCONFIG_AVR32
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000
 
 PLATFORM_RELFLAGS      += -ffixed-r5 -fPIC -mno-init-got -mrelax