Move the CPU specific includes from
authorPatrick Georgi <patrick.georgi@coresystems.de>
Mon, 12 Apr 2010 15:28:34 +0000 (15:28 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Mon, 12 Apr 2010 15:28:34 +0000 (15:28 +0000)
src/arch/i386/Makefile.inc to the respective CPU directories.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5411 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

17 files changed:
src/arch/i386/Makefile.inc
src/cpu/amd/model_gx1/Makefile.inc
src/cpu/amd/model_lx/Makefile.inc
src/cpu/amd/socket_754/Makefile.inc
src/cpu/amd/socket_939/Makefile.inc
src/cpu/amd/socket_940/Makefile.inc
src/cpu/amd/socket_AM2/Makefile.inc
src/cpu/amd/socket_AM2r2/Makefile.inc
src/cpu/amd/socket_F/Makefile.inc
src/cpu/amd/socket_F_1207/Makefile.inc
src/cpu/amd/socket_S1G1/Makefile.inc
src/cpu/intel/bga956/Makefile.inc
src/cpu/intel/model_106cx/Makefile.inc
src/cpu/intel/model_6ex/Makefile.inc
src/cpu/intel/socket_mFCBGA479/Makefile.inc
src/cpu/via/model_c7/Makefile.inc
src/cpu/x86/car/cache_as_ram.lds [deleted file]

index adc2d92acaca1562c2c6739cdbb4f42c678f6c3a..62ccfcd30d2f2d404dc64040339290d304f6a253 100644 (file)
@@ -117,61 +117,17 @@ ldscripts += $(src)/arch/i386/lib/id.lds
 endif
 
 crt0s += $(src)/cpu/x86/fpu_enable.inc
-ifeq ($(CONFIG_CPU_AMD_GX1),y)
-crt0s += $(src)/cpu/amd/model_gx1/cpu_setup.inc
-crt0s += $(src)/cpu/amd/model_gx1/gx_setup.inc
-endif
 ifeq ($(CONFIG_SSE),y)
 crt0s += $(src)/cpu/x86/sse_enable.inc
 endif
 
-ifeq ($(CONFIG_CPU_AMD_LX),y)
-crt0s += $(src)/cpu/amd/model_lx/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_AMD_SOCKET_F),y)
-crt0s += $(src)/cpu/amd/car/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_AMD_SOCKET_F_1207),y)
-crt0s += $(src)/cpu/amd/car/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_AMD_SOCKET_AM2R2),y)
-crt0s += $(src)/cpu/amd/car/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_AMD_SOCKET_AM2),y)
-crt0s += $(src)/cpu/amd/car/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_AMD_SOCKET_S1G1),y)
-crt0s += $(src)/cpu/amd/car/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_AMD_SOCKET_754),y)
-crt0s += $(src)/cpu/amd/car/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_AMD_SOCKET_939),y)
-crt0s += $(src)/cpu/amd/car/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_AMD_SOCKET_940),y)
-crt0s += $(src)/cpu/amd/car/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_INTEL_ATOM_230),y)
-crt0s += $(src)/cpu/intel/model_106cx/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_INTEL_CORE),y)
-crt0s += $(src)/cpu/intel/model_6ex/cache_as_ram.inc
-endif
-# Use Intel Core (not Core 2) code for CAR init, any CPU might be used.
-ifeq ($(CONFIG_CPU_INTEL_SOCKET_BGA956),y)
-crt0s += $(src)/cpu/intel/model_6ex/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_INTEL_SOCKET_MFCBGA479),y)
-crt0s += $(src)/cpu/x86/car/cache_as_ram.inc
-endif
-ifeq ($(CONFIG_CPU_VIA_C7),y)
-crt0s += $(src)/cpu/via/car/cache_as_ram.inc
-endif
-# who else could use this?
+crt0s += $(cpu_incs)
+
+#
+# FIXME move to CPU_INTEL_SOCKET_MPGA604
+#
 ifeq ($(CONFIG_BOARD_TYAN_S2735),y)
 crt0s += $(src)/cpu/x86/car/cache_as_ram.inc
-ldscripts += $(src)/cpu/x86/car/cache_as_ram.lds
 endif
 
 ifeq ($(CONFIG_LLSHELL),y)
index 04659c41c76895da8dd1c6fb7f3e226fc5b63cb2..f6332082c30cafaff0009b1ee8b1b2714dfe8e5b 100644 (file)
@@ -23,3 +23,6 @@ subdirs-y += ../../x86/lapic
 subdirs-y += ../../x86/cache
 subdirs-y += ../../x86/smm
 driver-y += model_gx1_init.o
+
+cpu_incs += $(src)/cpu/amd/model_gx1/cpu_setup.inc
+cpu_incs += $(src)/cpu/amd/model_gx1/gx_setup.inc
index 1857c89e810f0d8d7e51649c7205bb54f178c52a..66dcd31ffe266872ced4b51199276b1585181d4e 100644 (file)
@@ -6,3 +6,5 @@ subdirs-y += ../../x86/smm
 driver-y += model_lx_init.o
 obj-y += cpubug.o
 obj-y += vsmsetup.o
+
+cpu_incs += $(src)/cpu/amd/model_lx/cache_as_ram.inc
index 5cc64c7a6a9729df1bab43edf1fcdec0705c04e4..917c73e94d116425150d3161749dbe9c60dbb055 100644 (file)
@@ -8,3 +8,5 @@ subdirs-y += ../../x86/lapic
 subdirs-y += ../../x86/cache
 subdirs-y += ../../x86/mtrr
 subdirs-y += ../../x86/pae
+
+cpu_incs += $(src)/cpu/amd/car/cache_as_ram.inc
index 6c18e86a0e1f2efe3f6b1de9dc5bb469134c377a..6963a2237d40a3721b456cf2090ac75c62874933 100644 (file)
@@ -8,3 +8,5 @@ subdirs-y += ../../x86/lapic
 subdirs-y += ../../x86/cache
 subdirs-y += ../../x86/mtrr
 subdirs-y += ../../x86/pae
+
+cpu_incs += $(src)/cpu/amd/car/cache_as_ram.inc
index 07bf83d3ffdd92c70c1d50ca9402a36ae0d6c69b..edcecca881f4dc6c2bb7f79675defba7cd0cecb1 100644 (file)
@@ -8,3 +8,5 @@ subdirs-y += ../../x86/lapic
 subdirs-y += ../../x86/cache
 subdirs-y += ../../x86/mtrr
 subdirs-y += ../../x86/pae
+
+cpu_incs += $(src)/cpu/amd/car/cache_as_ram.inc
index 03aab49dc184c655182f24eaf43dd665bd093523..d58cacaadd3049ccd5b3d9c113fb6f5e1a4ba7d2 100644 (file)
@@ -9,3 +9,5 @@ subdirs-y += ../../x86/cache
 subdirs-y += ../../x86/mtrr
 subdirs-y += ../../x86/pae
 subdirs-y += ../../x86/smm
+
+cpu_incs += $(src)/cpu/amd/car/cache_as_ram.inc
index 873a7e2ba819fef7583cbc16bb412e3c165e4006..80ae498993193de0e081ba88f67880748294aa72 100644 (file)
@@ -9,3 +9,5 @@ subdirs-y += ../../x86/cache
 subdirs-y += ../../x86/pae
 subdirs-y += ../../x86/smm
 subdirs-y += ../../x86/mtrr
+
+cpu_incs += $(src)/cpu/amd/car/cache_as_ram.inc
index e39f45d779f0c97e2457dc6c8817d05fe30b733d..0be473e4ed93e65c474791a69919bc7d97b6038a 100644 (file)
@@ -9,3 +9,5 @@ subdirs-y += ../../x86/cache
 subdirs-y += ../../x86/mtrr
 subdirs-y += ../../x86/pae
 subdirs-y += ../../x86/smm
+
+cpu_incs += $(src)/cpu/amd/car/cache_as_ram.inc
index 1ca8a1d3f6a86b375860e89ffe120e080f302861..ae60d0de35adeb49b118bb5bd85a2b76ab964108 100644 (file)
@@ -9,3 +9,5 @@ subdirs-y += ../../x86/cache
 subdirs-y += ../../x86/mtrr
 subdirs-y += ../../x86/pae
 subdirs-y += ../../x86/smm
+
+cpu_incs += $(src)/cpu/amd/car/cache_as_ram.inc
index 4fadc9b038b00c1a2dd3680357701d083d3647d1..f255b543d3a5352e793fee00dba08c76eea66e71 100644 (file)
@@ -10,3 +10,4 @@ subdirs-y += ../../x86/pae
 subdirs-y += ../../x86/smm
 subdirs-y += ../../x86/mtrr
 
+cpu_incs += $(src)/cpu/amd/car/cache_as_ram.inc
index 8a33d49c93993492db2590baa110e9bbfca8f4bb..f4dc9d1a826247258852dd1d5af55d8072566274 100644 (file)
@@ -8,3 +8,5 @@ subdirs-y += ../../x86/smm
 subdirs-y += ../microcode
 subdirs-y += ../hyperthreading
 
+# Use Intel Core (not Core 2) code for CAR init, any CPU might be used.
+cpu_incs += $(src)/cpu/intel/model_6ex/cache_as_ram.inc
index a943f73c41c9c45f30eeddeb91f2e73e49ee624b..2c991ff7b4da75176cc0bcf52edf99019c8c600d 100644 (file)
@@ -1 +1,3 @@
 driver-y += model_106cx_init.o
+
+cpu_incs += $(src)/cpu/intel/model_106cx/cache_as_ram.inc
index e4676ea0bfe89af6987d6bb53ae9f430e4414aa3..f9a3c53f5a93961461e38086477813a8b9e8e031 100644 (file)
@@ -1 +1,3 @@
 driver-y += model_6ex_init.o
+
+cpu_incs += $(src)/cpu/intel/model_6ex/cache_as_ram.inc
index 4bdbab5e99f6a7d42fd31ec755ef4b1dc068f742..af503c8c4a5cc901c16d263ca27f218e2eb67d4f 100644 (file)
@@ -6,3 +6,5 @@ subdirs-y += ../../x86/lapic
 subdirs-y += ../../x86/cache
 subdirs-y += ../../x86/smm
 subdirs-y += ../microcode
+
+cpu_incs += $(src)/cpu/x86/car/cache_as_ram.inc
index 06fcb129dc43fedb342cd38472bde28e84412590..a3a42e347b5f6d24e6e411d046f2a30f679c215e 100644 (file)
@@ -6,3 +6,5 @@ subdirs-y += ../../x86/smm
 subdirs-y += ../../intel/microcode
 
 driver-y += model_c7_init.o
+
+cpu_incs += $(src)/cpu/via/car/cache_as_ram.inc
diff --git a/src/cpu/x86/car/cache_as_ram.lds b/src/cpu/x86/car/cache_as_ram.lds
deleted file mode 100644 (file)
index 48d77fa..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2004 Stefan Reinauer
- *
- * 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; version 2 of the License.
- *
- * 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
- */
-
-SECTIONS {
-       .init . : {
-               _init = .;
-               *(.init.text);
-               *(.init.rodata);
-               *(.init.rodata.*);
-               . = ALIGN(16);
-               _einit = .;
-       }
-}