blob: d615f294fed48cb60d9141ee338bff1d944214aa [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
Masahiro Yamada90f984e2014-07-30 14:08:23 +090017PLATFORM_CPPFLAGS += -D__sparc__
Masahiro Yamadac2a1d5d2014-10-30 15:30:56 +090018
19PLATFORM_RELFLAGS += -fPIC