blob: d615f294fed48cb60d9141ee338bff1d944214aa [file] [log] [blame]
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01001#
2# (C) Copyright 2007
3# Daniel Hellstrom, Gaisler Research, daniel@gaisler.com
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01006#
7
Masahiro Yamadaf0ac9e02014-02-28 14:33:30 +09008ifeq ($(CROSS_COMPILE),)
9CROSS_COMPILE := sparc-elf-
10endif
Mike Frysinger8378ba42009-06-14 23:33:14 -040011
Masahiro Yamada958fe8f2014-03-05 16:59:40 +090012gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
13
Masahiro Yamada59f15f22014-02-04 17:24:24 +090014CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \
Masahiro Yamadaa06c7cd2014-03-05 16:59:39 +090015 -T $(srctree)/examples/standalone/sparc.lds
Mike Frysinger5b660442009-09-03 23:12:47 -040016
Masahiro Yamada4869aee2014-07-30 14:08:23 +090017PLATFORM_CPPFLAGS += -D__sparc__
Masahiro Yamada156be262014-10-30 15:30:56 +090018
19PLATFORM_RELFLAGS += -fPIC