aboutsummaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-03-08 12:32:40 -0700
committerMartin Roth <martinroth@google.com>2016-03-11 18:48:06 +0100
commit6116f369e98afef29e284c6148414d8c5832689d (patch)
treed3cfa494c9fac42d11437fd2cb2fe3d02a4ad76d /payloads/libpayload
parent00e49aed52cbc32cf8cdab8dbf1eeb96e27ea336 (diff)
codebase: Change makefile $(shell pwd) commands to $(CURDIR)
- Change the makefile command $(shell pwd) to $(CURDIR) to find the current directory without going out to the shell. Change-Id: I4890eba6129630acd2883b92de77308d39949443 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/13967 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/Makefile.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc
index c10718f2fe..a449f7abcf 100644
--- a/payloads/libpayload/Makefile.inc
+++ b/payloads/libpayload/Makefile.inc
@@ -75,22 +75,22 @@ lib: $$(library-targets) $(obj)/head.o
extract_nth=$(word $(1), $(subst |, ,$(2)))
#######################################################################
-# Add handler for special include files
+# Add handler for special include files
$(call add-special-class,includes)
includes-handler= \
$(if $(wildcard $(1)$(call extract_nth,1,$(2))), \
$(eval includes += $(1)$(2)))
$(obj)/libpayload.a: $(foreach class,$(libraries),$$($(class)-objs))
- printf " AR $(subst $(shell pwd)/,,$(@))\n"
+ printf " AR $(subst $(CURDIR)/,,$(@))\n"
$(AR) rc $@ $^
$(obj)/%.a: $$(%-objs)
- printf " AR $(subst $(shell pwd)/,,$(@))\n"
+ printf " AR $(subst $(CURDIR)/,,$(@))\n"
$(AR) rc $@ $^
$(obj)/head.o: $(obj)/arch/$(ARCHDIR-y)/head.head.o.o
- printf " CP $(subst $(shell pwd)/,,$(@))\n"
+ printf " CP $(subst $(CURDIR)/,,$(@))\n"
cp $^ $@
install: real-target