2008-03-28 08:47:00 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2007
|
|
|
|
# Daniel Hellstrom, Gaisler Research, daniel@gaisler.com
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2008-03-28 08:47:00 +00:00
|
|
|
#
|
|
|
|
|
2014-02-28 05:33:30 +00:00
|
|
|
ifeq ($(CROSS_COMPILE),)
|
|
|
|
CROSS_COMPILE := sparc-elf-
|
|
|
|
endif
|
2009-06-15 03:33:14 +00:00
|
|
|
|
2014-03-05 07:59:40 +00:00
|
|
|
gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
|
|
|
|
|
2014-02-04 08:24:24 +00:00
|
|
|
CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \
|
2014-03-05 07:59:39 +00:00
|
|
|
-T $(srctree)/examples/standalone/sparc.lds
|
2009-09-04 03:12:47 +00:00
|
|
|
|
2014-07-30 05:08:23 +00:00
|
|
|
PLATFORM_CPPFLAGS += -D__sparc__
|
2014-10-30 06:30:56 +00:00
|
|
|
|
|
|
|
PLATFORM_RELFLAGS += -fPIC
|