blob: 28a371c806449afc9da1c035ac098ce82ddc2920 [file] [log] [blame]
Wolfgang Denk83c15852006-10-24 14:21:16 +02001#
2# (C) Copyright 2000-2002
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk83c15852006-10-24 14:21:16 +02006#
7
Masahiro Yamadaf0ac9e02014-02-28 14:33:30 +09008ifeq ($(CROSS_COMPILE),)
9CROSS_COMPILE := avr32-linux-
10endif
11
Masahiro Yamada22850442014-01-06 15:45:09 +090012PLATFORM_CPPFLAGS += -DCONFIG_AVR32
Wolfgang Denk33a57342011-02-04 14:25:17 +010013CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000
Mike Frysinger5b660442009-09-03 23:12:47 -040014
Haavard Skinnemoen7e624212006-11-18 17:32:31 +010015PLATFORM_RELFLAGS += -ffixed-r5 -fPIC -mno-init-got -mrelax
Andreas Bießmannd02314f2011-04-18 04:12:33 +000016PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
17
Andreas Bießmannb54ca7e2011-02-09 04:10:30 +000018LDFLAGS_u-boot = --gc-sections --relax