Patchwork [1/2] BUILD: add config.h dependency

login
register
about
Submitter Sven Schnelle
Date 2011-03-27 10:02:03
Message ID <1301220124-14191-2-git-send-email-svens@stackframe.org>
Download mbox | patch
Permalink /patch/2812/
State Accepted
Commit r6467
Headers show

Comments

Sven Schnelle - 2011-03-27 10:02:03
Signed-off-by: Sven Schnelle <svens@stackframe.org>
---
 Makefile.inc              |    2 +-
 src/arch/x86/Makefile.inc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Alexandru Gagniuc - 2011-03-27 10:36:50
On 03/27/2011 01:02 PM, Sven Schnelle wrote:
> Signed-off-by: Sven Schnelle <svens@stackframe.org>
> ---
Acked-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Patrick Georgi - 2011-03-29 08:18:26
Am Sonntag, den 27.03.2011, 12:02 +0200 schrieb Sven Schnelle:
> Signed-off-by: Sven Schnelle <svens@stackframe.org>
Acked-by: Patrick Georgi <patrick.georgi@secunet.com>

Patch

diff --git a/Makefile.inc b/Makefile.inc
index 54d472a..3f553c6 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -61,7 +61,7 @@  romstage-c-deps:=$$(OPTION_TABLE_H)
 #######################################################################
 # Add handler to compile ACPI's ASL
 define ramstage-objs_asl_template
-$(obj)/$(1).ramstage.o: src/$(1).asl
+$(obj)/$(1).ramstage.o: src/$(1).asl $(obj)/config.h
 	@printf "    IASL       $$(subst $(top)/,,$$(@))\n"
 	$(CPP) -MMD -MT $$(@) -D__ACPI__ -P -include $(abspath $(obj)/config.h) -I$(src) -I$(src)/mainboard/$(MAINBOARDDIR) $$< -o $$(basename $$@).asl
 	iasl -p $$(obj)/$(1) -tc $$(basename $$@).asl
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index afdcb9e..98498e0 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -227,7 +227,7 @@  $(obj)/mainboard/$(MAINBOARDDIR)/ap_romstage.o: $(src)/mainboard/$(MAINBOARDDIR)
 	@printf "    CC         $(subst $(obj)/,,$(@))\n"
 	$(CC) -MMD $(CFLAGS) -I$(src) -I. -I$(obj) -c $(src)/mainboard/$(MAINBOARDDIR)/ap_romstage.c -o $@
 
-$(obj)/mainboard/$(MAINBOARDDIR)/romstage.pre.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(OPTION_TABLE_H) $(obj)/build.h
+$(obj)/mainboard/$(MAINBOARDDIR)/romstage.pre.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(OPTION_TABLE_H) $(obj)/build.h $(obj)/config.h
 	@printf "    CC         romstage.inc\n"
 	$(CC) -MMD $(CFLAGS) -D__PRE_RAM__ -I$(src) -I. -I$(obj) -c -S $< -o $@