From a2964a605c2e4311305c84e98050b5f85c3e35c2 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 18 May 2007 15:20:11 +0000 Subject: [PATCH] (trivial) add example of how to add stage0 for other cpu types to LBv3 Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@318 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/Kconfig | 16 ++++++++++++---- arch/x86/Makefile | 6 +++++- mainboard/emulation/Kconfig | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index df5eeab340..1e17b26a52 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -32,12 +32,20 @@ config ARCH help This is the name of the respective subdirectory in arch/. -config CAR_TYPE_I586 +config CPU_I586 boolean help - This option selects the reset vector and Cache-as-RAM (CAR) - implementation for a mainboard. See arch/x86/Makefile for - more hints on possible values. + CPU type. At the moment this option selects the reset vector and + Cache-as-RAM (CAR) implementation for a mainboard. See + arch/x86/Makefile for more hints on possible values. + It is usually set in mainboard/*/Kconfig. + +config CPU_AMD_GEODELX + boolean + help + CPU type. At the moment this option selects the reset vector and + Cache-as-RAM (CAR) implementation for a mainboard. See + arch/x86/Makefile for more hints on possible values. It is usually set in mainboard/*/Kconfig. config OPTION_TABLE diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 8b92e8a89c..d5f6bec9fe 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -66,10 +66,14 @@ STAGE0_LIB_OBJ = uart8250.o mem.o elfboot.o lar.o delay.o vtxprintf.o \ vsprintf.o console.o STAGE0_ARCH_X86_OBJ = cachemain.o serial.o archelfboot.o speaker.o udelay_io.o mc146818rtc.o -ifeq ($(CONFIG_CAR_TYPE_I586),y) +ifeq ($(CONFIG_CPU_I586),y) STAGE0_CAR_OBJ = stage0_i586.o +else +ifeq ($(CONFIG_CPU_AMD_GEODELX),y) + STAGE0_CAR_OBJ = stage0_amd_geodelx.o else STAGE0_CAR_OBJ = stage0_i586.o +endif endif diff --git a/mainboard/emulation/Kconfig b/mainboard/emulation/Kconfig index 0c464b5278..345f903468 100644 --- a/mainboard/emulation/Kconfig +++ b/mainboard/emulation/Kconfig @@ -5,7 +5,7 @@ choice config BOARD_EMULATION_QEMU_X86 bool "QEMU x86" select ARCH_X86 - select CAR_TYPE_I586 + select CPU_I586 select OPTION_TABLE select NORTHBRIDGE_INTEL_I440BXEMULATION select SOUTHBRIDGE_INTEL_I82371EB