Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2007 |
| 3 | # Daniel Hellstrom, Gaisler Research, daniel@gaisler.com |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 6 | # |
| 7 | |
Masahiro Yamada | 9b6e2c3 | 2014-02-28 14:33:30 +0900 | [diff] [blame] | 8 | ifeq ($(CROSS_COMPILE),) |
| 9 | CROSS_COMPILE := sparc-elf- |
| 10 | endif |
Mike Frysinger | 1ea6bcd | 2009-06-14 23:33:14 -0400 | [diff] [blame] | 11 | |
Masahiro Yamada | 026f9cf | 2014-03-05 16:59:40 +0900 | [diff] [blame] | 12 | gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`) |
| 13 | |
Masahiro Yamada | 9e41403 | 2014-02-04 17:24:24 +0900 | [diff] [blame] | 14 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \ |
Masahiro Yamada | a0a15b4 | 2014-03-05 16:59:39 +0900 | [diff] [blame] | 15 | -T $(srctree)/examples/standalone/sparc.lds |
Mike Frysinger | 262ae0a | 2009-09-03 23:12:47 -0400 | [diff] [blame] | 16 | |
Masahiro Yamada | 90f984e | 2014-07-30 14:08:23 +0900 | [diff] [blame] | 17 | PLATFORM_CPPFLAGS += -D__sparc__ |
Masahiro Yamada | c2a1d5d | 2014-10-30 15:30:56 +0900 | [diff] [blame] | 18 | |
| 19 | PLATFORM_RELFLAGS += -fPIC |