summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-02-28 12:50:32 +0000
committerStefan Reinauer <stepan@openbios.org>2009-02-28 12:50:32 +0000
commit21c8b5ab5cf0bf9c48a68305213cc81b5af0cde5 (patch)
tree69a78e8075856842ee8ea9bd1fff295d1c077270 /src
parent3c7f46b42215502ecaee54c85f6d08dce9e21279 (diff)
With this patch the v2 build system will create a directory hierarchy
similar to what v3 does. This is required to have two source files with the same name but in different directories. (As in, two different SuperIOs on board, with a superio.c each) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3961 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/config/Config.lb4
-rw-r--r--src/cpu/x86/smm/Config.lb4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/config/Config.lb b/src/config/Config.lb
index 85f1632b93..d341b1fbcc 100644
--- a/src/config/Config.lb
+++ b/src/config/Config.lb
@@ -45,8 +45,8 @@ end
makerule coreboot_ram.o
- depends "$(DRIVER) coreboot.a $(LIBGCC_FILE_NAME)"
- action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ c_start.o $(DRIVER) coreboot.a $(LIBGCC_FILE_NAME)"
+ depends "$(TOP)/src/arch/$(ARCH)/lib/c_start.o $(DRIVER) coreboot.a $(LIBGCC_FILE_NAME)"
+ action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ $^"
end
makerule coreboot_ram
diff --git a/src/cpu/x86/smm/Config.lb b/src/cpu/x86/smm/Config.lb
index 8edbabdf3d..652cb2de7f 100644
--- a/src/cpu/x86/smm/Config.lb
+++ b/src/cpu/x86/smm/Config.lb
@@ -27,8 +27,8 @@ if HAVE_SMI_HANDLER
smmobject smihandler.o
makerule smm.o
- depends "$(SMM-OBJECTS) printk.o vtxprintf.o $(LIBGCC_FILE_NAME)"
- action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ $(SMM-OBJECTS) printk.o vtxprintf.o $(LIBGCC_FILE_NAME)"
+ 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