summaryrefslogtreecommitdiff
path: root/arch/openrisc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/Kconfig18
-rw-r--r--arch/openrisc/config.mk2
2 files changed, 19 insertions, 1 deletions
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
new file mode 100644
index 0000000000..cc54a2eec1
--- /dev/null
+++ b/arch/openrisc/Kconfig
@@ -0,0 +1,18 @@
+menu "OpenRISC architecture"
+ depends on OPENRISC
+
+config SYS_ARCH
+ string
+ default "openrisc"
+
+choice
+ prompt "Target select"
+
+config TARGET_OPENRISC_GENERIC
+ bool "Support openrisc-generic"
+
+endchoice
+
+source "board/openrisc/openrisc-generic/Kconfig"
+
+endmenu
diff --git a/arch/openrisc/config.mk b/arch/openrisc/config.mk
index 9902b9adba..cd95f24b1f 100644
--- a/arch/openrisc/config.mk
+++ b/arch/openrisc/config.mk
@@ -11,6 +11,6 @@ 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
+PLATFORM_CPPFLAGS += -D__OR1K__ -ffixed-r10
CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000