summaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2009-08-12 15:00:51 +0000
committerRonald G. Minnich <rminnich@gmail.com>2009-08-12 15:00:51 +0000
commit0588d19abef62dad63a7794a37bdd6a71c526d9e (patch)
tree1c507caa1ffed6ceb73d3e13fc9b766a713d16e2 /src/cpu/x86
parent38cd29ebd7282333650cf11ed50c7f2fd4031e80 (diff)
downloadcoreboot-0588d19abef62dad63a7794a37bdd6a71c526d9e.tar.xz
Kconfig!
Works on Kontron, qemu, and serengeti. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> tested on abuild only. Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4534 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/Kconfig11
-rw-r--r--src/cpu/x86/cache/Makefile.inc1
-rw-r--r--src/cpu/x86/fpu/Makefile.inc1
-rw-r--r--src/cpu/x86/lapic/Makefile.inc4
-rw-r--r--src/cpu/x86/mmx/Makefile.inc1
-rw-r--r--src/cpu/x86/mtrr/Makefile.inc1
-rw-r--r--src/cpu/x86/smm/Makefile.inc45
-rw-r--r--src/cpu/x86/sse/Makefile.inc1
-rw-r--r--src/cpu/x86/tsc/Makefile.inc7
9 files changed, 72 insertions, 0 deletions
diff --git a/src/cpu/x86/Kconfig b/src/cpu/x86/Kconfig
new file mode 100644
index 0000000000..b036baf1f5
--- /dev/null
+++ b/src/cpu/x86/Kconfig
@@ -0,0 +1,11 @@
+config SERIAL_CPU_INIT
+ bool
+ default y
+
+config XIP_ROM_BASE
+ hex
+ default 0xfffe0000
+
+config XIP_ROM_BASE
+ hex
+ default 0x2000
diff --git a/src/cpu/x86/cache/Makefile.inc b/src/cpu/x86/cache/Makefile.inc
new file mode 100644
index 0000000000..75679e586b
--- /dev/null
+++ b/src/cpu/x86/cache/Makefile.inc
@@ -0,0 +1 @@
+obj-y += cache.o
diff --git a/src/cpu/x86/fpu/Makefile.inc b/src/cpu/x86/fpu/Makefile.inc
new file mode 100644
index 0000000000..792d600548
--- /dev/null
+++ b/src/cpu/x86/fpu/Makefile.inc
@@ -0,0 +1 @@
+#
diff --git a/src/cpu/x86/lapic/Makefile.inc b/src/cpu/x86/lapic/Makefile.inc
new file mode 100644
index 0000000000..128deb2834
--- /dev/null
+++ b/src/cpu/x86/lapic/Makefile.inc
@@ -0,0 +1,4 @@
+obj-y += lapic.o
+obj-y += lapic_cpu_init.o
+obj-y += secondary.o
+
diff --git a/src/cpu/x86/mmx/Makefile.inc b/src/cpu/x86/mmx/Makefile.inc
new file mode 100644
index 0000000000..792d600548
--- /dev/null
+++ b/src/cpu/x86/mmx/Makefile.inc
@@ -0,0 +1 @@
+#
diff --git a/src/cpu/x86/mtrr/Makefile.inc b/src/cpu/x86/mtrr/Makefile.inc
new file mode 100644
index 0000000000..b68873e5a6
--- /dev/null
+++ b/src/cpu/x86/mtrr/Makefile.inc
@@ -0,0 +1 @@
+obj-y += mtrr.o
diff --git a/src/cpu/x86/smm/Makefile.inc b/src/cpu/x86/smm/Makefile.inc
new file mode 100644
index 0000000000..6a566017ea
--- /dev/null
+++ b/src/cpu/x86/smm/Makefile.inc
@@ -0,0 +1,45 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2008 coresystems GmbH
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+##
+
+##if CONFIG_HAVE_SMI_HANDLER
+## object smmrelocate.S
+##
+## smmobject smmhandler.S
+## smmobject smihandler.o
+##
+## makerule smm.o
+## depends "$(SMM-OBJECTS) $(TOP)/src/console/printk.o $(TOP)/src/console/vtxprintf.o $(LIBGCC_FILE_NAME)"
+## action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ $^"
+## end
+##
+## makerule smm
+## depends "smm.o $(TOP)/src/cpu/x86/smm/smm.ld ldoptions"
+## action "$(CC) $(DISTRO_LFLAGS) -nostdlib -nostartfiles -static -o smm.elf -T $(TOP)/src/cpu/x86/smm/smm.ld smm.o"
+## action "$(CONFIG_CROSS_COMPILE)nm -n smm.elf | sort > smm.map"
+## action "$(OBJCOPY) -O binary smm.elf smm"
+## end
+##
+## makerule smm_bin.c
+## depends "smm"
+## action "(echo 'unsigned char smm[] = {'; od -vtx1 smm | sed -e 's,^[0-9]* *,,' -e 's:[0-9a-f][0-9a-f] :0x&,:g' -e 's:[0-9a-f][0-9a-f]$$:0x&,:'; echo '}; unsigned int smm_len = '; wc -c smm |awk '{print $$1;}' ; echo ';') > smm_bin.c"
+## end
+##
+## object ./smm_bin.o
+##end
diff --git a/src/cpu/x86/sse/Makefile.inc b/src/cpu/x86/sse/Makefile.inc
new file mode 100644
index 0000000000..792d600548
--- /dev/null
+++ b/src/cpu/x86/sse/Makefile.inc
@@ -0,0 +1 @@
+#
diff --git a/src/cpu/x86/tsc/Makefile.inc b/src/cpu/x86/tsc/Makefile.inc
new file mode 100644
index 0000000000..93bd13720e
--- /dev/null
+++ b/src/cpu/x86/tsc/Makefile.inc
@@ -0,0 +1,7 @@
+obj-y += delay_tsc.o
+
+# default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=0
+# if CONFIG_UDELAY_TSC
+# default CONFIG_HAVE_INIT_TIMER=1
+# object delay_tsc.o
+# end