[coreboot] [RFC][PATCH]Added architecture ARM and option for cross-compile

Hamo hamo.by at gmail.com
Mon Apr 18 03:50:59 CEST 2011

This patch added a new architecture option in general setup menu, and
after we choice the
ARM architecture, we can define the cross-compiler-prefix. Since
coreboot now depends on
X86 architecture, we couldn't build an ARM coreboot now.

Signed-off-by: Yang Bai <hamo.by at gmail.com>

diff --git a/Makefile b/Makefile
index ac7115d..cae3870 100644
--- a/Makefile
+++ b/Makefile
@@ -101,6 +101,12 @@ else

 include $(HAVE_DOTCONFIG)

+ifneq ($(CONFIG_ARCH_X86),y)
 ifneq ($(INNER_SCANBUILD),y)
 CC:=clang -m32
diff --git a/src/Kconfig b/src/Kconfig
index 05b4adb..abaa9a5 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -23,12 +23,37 @@ menu "General setup"

 config EXPERT
 	bool "Expert mode"
+	default n
 	  This allows you to select certain advanced configuration options.

 	  Warning: Only enable this option if you really know what you are
 	  doing! You have been warned!

+	prompt "Architecture"
+	default ARCH_X86
+	help
+	  This option is used to set the architecture of Coreboot.
+config ARCH_X86
+	bool "X86"
+config ARCH_ARM
+	bool "ARM"
+	depends on EXPERT
+	string "Cross-compiler tool prefix"
+	default ""
+	depends on !ARCH_X86
+	depends on COMPILER_GCC
+	help
+	  Same as running 'make CROSS_COMPILE=prefix-' but stored for
+	  default make runs in this kernel build directory.  You don't
+	  need to set this unless you want the configured kernel build
+	  directory to select the cross-compiler automatically.
 	string "Local version string"
@@ -102,12 +127,6 @@ endmenu

 source src/mainboard/Kconfig

-# This option is used to set the architecture of a mainboard to X86.
-# It is usually set in mainboard/*/Kconfig.
-config ARCH_X86
-	bool
-	default n
 if ARCH_X86
 source src/arch/x86/Kconfig

More information about the coreboot mailing list