From 6116f369e98afef29e284c6148414d8c5832689d Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Tue, 8 Mar 2016 12:32:40 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/13967 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Paul Menzel --- payloads/bayou/Makefile | 2 +- payloads/bayou/util/pbuilder/lzma/Makefile | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'payloads/bayou') diff --git a/payloads/bayou/Makefile b/payloads/bayou/Makefile index 454e8bb2db..7a4b08b484 100644 --- a/payloads/bayou/Makefile +++ b/payloads/bayou/Makefile @@ -20,7 +20,7 @@ CONFIG_BUILTIN_LAR=y PBUILDER_CONFIG=bayou.xml BUILTIN_LAR=builtin.lar -export src := $(shell pwd) +export src := $(CURDIR) export obj := $(src)/build LIBPAYLOAD_DIR := $(obj)/libpayload diff --git a/payloads/bayou/util/pbuilder/lzma/Makefile b/payloads/bayou/util/pbuilder/lzma/Makefile index 5004fd8f98..02c0b34ec1 100644 --- a/payloads/bayou/util/pbuilder/lzma/Makefile +++ b/payloads/bayou/util/pbuilder/lzma/Makefile @@ -30,29 +30,29 @@ $(obj)/util/lzma/: $(Q)mkdir -p $(obj)/util/lzma/ $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Compress/LZMA/%.cpp - $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n" + $(Q)printf " HOSTCXX $(subst $(CURDIR)/,,$(@))\n" $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $< $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Compress/LZ/%.cpp - $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n" + $(Q)printf " HOSTCXX $(subst $(CURDIR)/,,$(@))\n" $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $< $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Compress/RangeCoder/%.cpp - $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n" + $(Q)printf " HOSTCXX $(subst $(CURDIR)/,,$(@))\n" $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $< $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Decompress/%.cpp - $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n" + $(Q)printf " HOSTCXX $(subst $(CURDIR)/,,$(@))\n" $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $< $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Common/%.cpp - $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n" + $(Q)printf " HOSTCXX $(subst $(CURDIR)/,,$(@))\n" $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $< $(obj)/util/lzma/%.o: $(src)/util/lzma/C/Common/%.cpp - $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n" + $(Q)printf " HOSTCXX $(subst $(CURDIR)/,,$(@))\n" $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $< $(obj)/util/lzma/%.o: $(src)/util/lzma/%.cc - $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n" + $(Q)printf " HOSTCXX $(subst $(CURDIR)/,,$(@))\n" $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $< -- cgit v1.2.3