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),) |
Guillaume REMBERT | 8d83055 | 2015-11-08 14:37:15 +0000 | [diff] [blame] | 9 | CROSS_COMPILE := or1k-elf- |
Masahiro Yamada | f0ac9e0 | 2014-02-28 14:33:30 +0900 | [diff] [blame] | 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 |
Masahiro Yamada | 4869aee | 2014-07-30 14:08:23 +0900 | [diff] [blame] | 14 | PLATFORM_CPPFLAGS += -D__OR1K__ -ffixed-r10 |
Stefan Kristiansson | 952db94 | 2011-11-26 19:04:51 +0000 | [diff] [blame] | 15 | |
| 16 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000 |