summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@secunet.com>2011-03-08 20:49:18 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2011-03-08 20:49:18 +0000
commit57205c7e43e1ec3d4d62ea86e33c7acb7dbad81d (patch)
treefaf3d8d31671ad0b9413345a874a1d82b11dabc0 /Makefile.inc
parent943b8b599758016380939b76394ab1b2cf913258 (diff)
downloadcoreboot-57205c7e43e1ec3d4d62ea86e33c7acb7dbad81d.tar.gz
coreboot-57205c7e43e1ec3d4d62ea86e33c7acb7dbad81d.tar.bz2
coreboot-57205c7e43e1ec3d4d62ea86e33c7acb7dbad81d.zip
Add option_table.h as dependency for all C based object files if option tables are used.
This is to make sure that the file exists when it is needed. While this isn't the case for every C source file, it doesn't hurt either to create the file a bit sooner than strictly necessary. Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Acked-by: Jonathan Kollasch <jakllsch@kollasch.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6438 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 1d2d0dcf90d0..b87cec7d71d6 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -54,6 +54,9 @@ romstage-c-ccopts:=-D__PRE_RAM__
romstage-S-ccopts:=-DASSEMBLY -D__PRE_RAM__
driver-S-ccopts:=-DASSEMBLY
+ramstage-c-deps:=$$(OPTION_TABLE_H)
+romstage-c-deps:=$$(OPTION_TABLE_H)
+
#######################################################################
# Add handler to compile ACPI's ASL
define ramstage-objs_asl_template
@@ -174,7 +177,7 @@ $(objutil)/%.o: $(objutil)/%.c
@printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
$(HOSTCC) -MMD -I$(subst $(objutil)/,util/,$(dir $<)) -I$(dir $<) $(HOSTCFLAGS) -c -o $@ $<
-$(obj)/%.ramstage.o: $(obj)/%.c $(obj)/config.h
+$(obj)/%.ramstage.o: $(obj)/%.c $(obj)/config.h $(OPTION_TABLE_H)
@printf " CC $(subst $(obj)/,,$(@))\n"
$(CC) -MMD $(CFLAGS) -c -o $@ $<