Makefile: Use CURDIR instead of PWD

Fixes setup of BASE_DIR git repositories when used like: make -C
system-images update

Related: SYS#3967
This commit is contained in:
Pau Espin 2017-10-25 19:34:18 +02:00
parent 8030258191
commit e72638bdc7
1 changed files with 2 additions and 2 deletions

View File

@ -112,10 +112,10 @@ build.%: | git/poky
# Append entries to conf/local.conf. Common first, machine second... filter # Append entries to conf/local.conf. Common first, machine second... filter
$(Q)$(foreach file,$(CFG_FILES), \ $(Q)$(foreach file,$(CFG_FILES), \
cat $(file) | sed s,BASE_DIR,$(PWD), >> $@/conf/local.conf;) cat $(file) | sed s,BASE_DIR,${CURDIR}, >> $@/conf/local.conf;)
@echo "require conf/distro/include/sysmocom-defaults.conf" >> $@/conf/local.conf @echo "require conf/distro/include/sysmocom-defaults.conf" >> $@/conf/local.conf
$(Q)cat cfg/bblayers.conf | sed s,BASE_DIR,$(PWD), > $@/conf/bblayers.conf $(Q)cat cfg/bblayers.conf | sed s,BASE_DIR,${CURDIR}, > $@/conf/bblayers.conf
# generic git pull --rebase rule. Let's assume this is matching poky-update # generic git pull --rebase rule. Let's assume this is matching poky-update