Author: oxygene Date: Wed Jun 1 21:54:16 2011 New Revision: 6616 URL: https://tracker.coreboot.org/trac/coreboot/changeset/6616
Log: Really fix iasl filename issues in our build system
There's a remaining issue that iasl cuts of "..*$" from output paths, even if that substring contains "/" (ie. across directories)
Signed-off-by: Patrick Georgi patrick@georgi-clan.de Acked-by: Patrick Georgi patrick@georgi-clan.de
Modified: trunk/Makefile.inc
Modified: trunk/Makefile.inc ============================================================================== --- trunk/Makefile.inc Wed Jun 1 21:29:48 2011 (r6615) +++ trunk/Makefile.inc Wed Jun 1 21:54:16 2011 (r6616) @@ -64,8 +64,8 @@ $(obj)/$(1).ramstage.o: src/$(1).asl $(obj)/config.h @printf " IASL $$(subst $(top)/,,$$(@))\n" $(CC) -x assembler-with-cpp -E -MMD -MT $$(@) -D__ACPI__ -P -include $(abspath $(obj)/config.h) -I$(src) -I$(src)/mainboard/$(MAINBOARDDIR) $$< -o $$(basename $$@).asl - cd $$(dir $$@); iasl -p $$(abspath $$(obj)/$(1)) -tc $$(notdir $$(basename $$@)).asl - mv $$(obj)/$(1).hex $$(basename $$@).c + cd $$(dir $$@); iasl -p $$(notdir $$@) -tc $$(notdir $$(basename $$@)).asl + mv $$(basename $$@).hex $$(basename $$@).c $(CC) $$(CFLAGS) $$(if $$(subst dsdt,,$$(basename $$(notdir $(1)))), -DAmlCode=AmlCode_$$(basename $$(notdir $(1)))) -c -o $$@ $$(basename $$@).c # keep %.o: %.c rule from catching the temporary .c file after a make clean mv $$(basename $$@).c $$(basename $$@).hex