summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2005-07-26 18:27:13 +0000
committerLi-Ta Lo <ollie@lanl.gov>2005-07-26 18:27:13 +0000
commit09952c1970c27b48a118fa67deea52abdafe8d5a (patch)
tree519436b285ff75eb8a23f4ad13252816ca6b8d5f /src/arch
parent1748bf28a75166e09963d4252cef793c7bff1af6 (diff)
move x86 CAR related stuff to arch/i386/Config.lb
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1987 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/Config.lb16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/arch/i386/Config.lb b/src/arch/i386/Config.lb
index bb5202bc45..e9b426cc2d 100644
--- a/src/arch/i386/Config.lb
+++ b/src/arch/i386/Config.lb
@@ -1,4 +1,5 @@
uses CONFIG_SMP
+uses CONFIG_USE_INIT
init init/crt0.S.lb
ldscript init/ldscript.lb
@@ -29,6 +30,21 @@ end
addaction clean "rm -f romimage payload.*"
+if CONFIG_USE_INIT
+makerule init.o
+ depends "$(INIT-OBJECTS)"
+ action "$(LD) -melf_i386 -r -o init.pre.o $(INIT-OBJECTS)"
+ action "$(OBJCOPY) --rename-section .text=.init.text --rename-section .data=.init.data --rename-section .rodata=.init.rodata --rename-section .rodata.str1.1=.init.rodata.str1.1 init.pre.o init.o"
+end
+
+makerule linuxbios
+ depends "crt0.o init.o linuxbios_ram.rom ldscript.ld"
+ action "$(CC) -nostdlib -nostartfiles -static -o $@ -T ldscript.ld crt0.o init.o"
+ action "$(CROSS_COMPILE)nm -n linuxbios | sort > linuxbios.map"
+end
+
+end
+
dir lib
dir boot
if CONFIG_SMP