[coreboot] [patch] Rename the intermediate file created by iasl

Zheng Bao fishbaoz at hotmail.com
Sun Apr 25 12:41:38 CEST 2010

For the mainboard with AMD Family 10, if we make clean and make again,
it will fail. why?

After make clean, .c files created by iasl are still left in the build
folder, it will match the rule of
 $(obj)/%.o: $(obj)/%.c $(obj)/config.h
  @printf "    CC         $(subst $(obj)/,,$(@))\n"
  $(CC) -MMD $(CFLAGS) -c -o $@ $<
it will miss the rule which should be applied.
 define objs_asl_template

So we move the .c file back to .hex (or other suffix? or delete?).
This patch will work after make distclean, otherwise nobody will rename
the .c.

Signed-off-by: Zheng Bao <zheng.bao at amd.com>

Index: Makefile
--- Makefile (revision 5489)
+++ Makefile (working copy)
@@ -226,6 +226,7 @@
  iasl -p $$(basename $$@) -tc $$(basename $$@).asl
  mv $$(basename $$@).hex $$(basename $$@).c
  $(CC) $$(CFLAGS) $$(if $$(subst dsdt,,$$(basename $$(notdir $$@))), -DAmlCode=AmlCode_$$(basename $$(notdir $$@))) -c -o $$@ $$(basename $$@).c
+ mv $$(basename $$@).c $$(basename $$@).hex
 # macro to define template macros that are used by use_template macro

Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100425/e1b45a05/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rename_asl_intermediate.patch
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100425/e1b45a05/attachment.ksh>

More information about the coreboot mailing list