blob: be59f5819009f7a87a25d948e0f3c2bf5a4516de [file] [log] [blame]
Daniel Hellstromc2f02da2008-03-28 09:47:00 +01001#
2# (C) Copyright 2007
3# Daniel Hellstrom, Gaisler Research, daniel@gaisler.com
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Daniel Hellstromc2f02da2008-03-28 09:47:00 +01006#
7
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +09008ifeq ($(CROSS_COMPILE),)
9CROSS_COMPILE := sparc-elf-
10endif
Mike Frysinger1ea6bcd2009-06-14 23:33:14 -040011
Masahiro Yamada026f9cf2014-03-05 16:59:40 +090012gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
13
Masahiro Yamada9e414032014-02-04 17:24:24 +090014CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \
Masahiro Yamadaa0a15b42014-03-05 16:59:39 +090015 -T $(srctree)/examples/standalone/sparc.lds
Mike Frysinger262ae0a2009-09-03 23:12:47 -040016
Daniel Hellstromc2f02da2008-03-28 09:47:00 +010017PLATFORM_CPPFLAGS += -DCONFIG_SPARC -D__sparc__