Patchwork [3/3] Fix building into relative paths

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

Comments

Patrick Georgi - 2011-05-20 11:54:52
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
---
 Makefile.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Stefan Reinauer - 2011-05-20 19:48:12
* 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>

> ---
>  Makefile.inc |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>

Patch

diff --git a/Makefile.inc b/Makefile.inc
index 2bd7b72..76bfc26 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -179,7 +179,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 $(OPTION_TABLE_H)
+$(abspath $(obj))/%.ramstage.o: $(obj)/%.c $(obj)/config.h $(OPTION_TABLE_H)
 	@printf "    CC         $(subst $(obj)/,,$(@))\n"
 	$(CC) -MMD $(CFLAGS) -c -o $@ $<