Patchwork [2/3] Fix iasl with "." in paths

login
register
about
Submitter Patrick Georgi
Date 2011-05-20 11:54:44
Message ID <1305892703.2575.1.camel@linux-0a8x.site>
Download mbox | patch
Permalink /patch/2980/
State Accepted
Commit r6603
Headers show

Comments

Patrick Georgi - 2011-05-20 11:54:44
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
---
 Makefile.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Stefan Reinauer - 2011-05-20 20:27:16
* Patrick Georgi <patrick.georgi@secunet.com> [110520 13:54]:
> 
> Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>

Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>

Patch

diff --git a/Makefile.inc b/Makefile.inc
index 0ef9377..2bd7b72 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -64,7 +64,7 @@  define ramstage-objs_asl_template
 $(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
-	iasl -p $$(obj)/$(1) -tc $$(basename $$@).asl
+	cd $$(dir $$@); iasl -p $$(abspath $$(obj)/$(1)) -tc $$(notdir $$(basename $$@)).asl
 	mv $$(obj)/$(1).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