Stefan Kristiansson | 272f84b | 2011-11-26 19:04:51 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2011 |
| 3 | # Julius Baxter <julius@opencores.org> |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Stefan Kristiansson | 272f84b | 2011-11-26 19:04:51 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Masahiro Yamada | 9b6e2c3 | 2014-02-28 14:33:30 +0900 | [diff] [blame] | 8 | ifeq ($(CROSS_COMPILE),) |
Guillaume REMBERT | 87da269 | 2015-11-08 14:37:15 +0000 | [diff] [blame] | 9 | CROSS_COMPILE := or1k-elf- |
Masahiro Yamada | 9b6e2c3 | 2014-02-28 14:33:30 +0900 | [diff] [blame] | 10 | endif |
Stefan Kristiansson | 272f84b | 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 |
Masahiro Yamada | 90f984e | 2014-07-30 14:08:23 +0900 | [diff] [blame] | 14 | PLATFORM_CPPFLAGS += -D__OR1K__ -ffixed-r10 |
Stefan Kristiansson | 272f84b | 2011-11-26 19:04:51 +0000 | [diff] [blame] | 15 | |
| 16 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000 |