kbuild: fix CROSS_COMPILE settings in config.mk
[karo-tx-uboot.git] / arch / avr32 / config.mk
1 #
2 # (C) Copyright 2000-2002
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 ifeq ($(CROSS_COMPILE),)
9 CROSS_COMPILE := avr32-linux-
10 endif
11
12 PLATFORM_CPPFLAGS += -DCONFIG_AVR32
13 CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000
14
15 PLATFORM_RELFLAGS       += -ffixed-r5 -fPIC -mno-init-got -mrelax
16 PLATFORM_RELFLAGS       += -ffunction-sections -fdata-sections
17
18 LDFLAGS_u-boot          = --gc-sections --relax