summaryrefslogtreecommitdiffstats
path: root/qemu/roms/u-boot/arch/openrisc/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/roms/u-boot/arch/openrisc/config.mk')
-rw-r--r--qemu/roms/u-boot/arch/openrisc/config.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/qemu/roms/u-boot/arch/openrisc/config.mk b/qemu/roms/u-boot/arch/openrisc/config.mk
new file mode 100644
index 000000000..9902b9adb
--- /dev/null
+++ b/qemu/roms/u-boot/arch/openrisc/config.mk
@@ -0,0 +1,16 @@
+#
+# (C) Copyright 2011
+# Julius Baxter <julius@opencores.org>
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+
+ifeq ($(CROSS_COMPILE),)
+CROSS_COMPILE := or32-elf-
+endif
+
+# r10 used for global object pointer, already set in OR32 GCC but just to be
+# clear
+PLATFORM_CPPFLAGS += -DCONFIG_OPENRISC -D__OR1K__ -ffixed-r10
+
+CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000