From 0f9f061b35cb7deaac2528bc77e7bd1c63bf2ddb Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 19 May 2021 23:49:50 -0400 Subject: [PATCH] Makefile: Use CURDIR instead of PWD Use $(CURDIR) instead of $(PWD) to refer to the current directory, as the PWD variable comes from the shell environment and may not always be set. Signed-off-by: Kevin O'Connor --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 39e01f82..a2e95785 100644 --- a/Makefile +++ b/Makefile @@ -91,10 +91,10 @@ $(OUT)board-link: $(KCONFIG_CONFIG) $(Q)echo "#$(CONFIG_BOARD_DIRECTORY)" > $@.temp $(Q)if ! cmp -s $@.temp $@; then rm -f $(OUT)*.d $(patsubst %,$(OUT)%/*.d,$(dirs-y)) ; mv $@.temp $@ ; fi $(Q)rm -f $(OUT)board - $(Q)ln -sf $(PWD)/src/$(CONFIG_BOARD_DIRECTORY) $(OUT)board + $(Q)ln -sf $(CURDIR)/src/$(CONFIG_BOARD_DIRECTORY) $(OUT)board $(Q)mkdir -p $(OUT)board-generic $(Q)rm -f $(OUT)board-generic/board - $(Q)ln -sf $(PWD)/src/generic $(OUT)board-generic/board + $(Q)ln -sf $(CURDIR)/src/generic $(OUT)board-generic/board include $(OUT)board-link