Stefan Kristiansson | 952db94 | 2011-11-26 19:04:51 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2011 |
| 3 | # Julius Baxter <julius@opencores.org> |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Stefan Kristiansson | 952db94 | 2011-11-26 19:04:51 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Masahiro Yamada | f0ac9e0 | 2014-02-28 14:33:30 +0900 | [diff] [blame] | 8 | ifeq ($(CROSS_COMPILE),) |
| 9 | CROSS_COMPILE := or32-elf- |
| 10 | endif |
Stefan Kristiansson | 952db94 | 2011-11-26 19:04:51 +0000 | [diff] [blame] | 11 | |
| 12 | # r10 used for global object pointer, already set in OR32 GCC but just to be |
| 13 | # clear |
| 14 | PLATFORM_CPPFLAGS += -DCONFIG_OPENRISC -D__OR1K__ -ffixed-r10 |
| 15 | |
| 16 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000 |
Stefan Kristiansson | d098f95 | 2013-05-01 09:32:46 +0000 | [diff] [blame] | 17 | |
| 18 | LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds |