blob: bfdb71f0befabe70c2afc3963efac26100eb2f4a [file] [log] [blame]
Stefan Kristiansson272f84b2011-11-26 19:04:51 +00001#
2# (C) Copyright 2011
3# Julius Baxter <julius@opencores.org>
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Kristiansson272f84b2011-11-26 19:04:51 +00006#
7
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +09008ifeq ($(CROSS_COMPILE),)
Guillaume REMBERT87da2692015-11-08 14:37:15 +00009CROSS_COMPILE := or1k-elf-
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +090010endif
Stefan Kristiansson272f84b2011-11-26 19:04:51 +000011
12# r10 used for global object pointer, already set in OR32 GCC but just to be
13# clear
Masahiro Yamada90f984e2014-07-30 14:08:23 +090014PLATFORM_CPPFLAGS += -D__OR1K__ -ffixed-r10
Stefan Kristiansson272f84b2011-11-26 19:04:51 +000015
16CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000