blob: be59f5819009f7a87a25d948e0f3c2bf5a4516de [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
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +010017PLATFORM_CPPFLAGS += -DCONFIG_SPARC -D__sparc__