]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/futex: Fix build error with OUTPUT variable
authorDarren Hart <dvhart@infradead.org>
Fri, 24 Mar 2017 16:18:54 +0000 (09:18 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 11 Apr 2017 15:40:51 +0000 (09:40 -0600)
commit5abc0eaaa9de48e3f7ec788317b234ca9aa51603
treed8e4a6ff699056e85c3c911311b575524ff474c9
parente8474b3e35ef88ee11985a155a4628fe11cc187b
selftests/futex: Fix build error with OUTPUT variable

The use of $$OUTPUT in the target shell commands resulted in an empty
string followed by an absolute path for which mkdir failed:

$ make -C tools/testing/selftests/futex
make: Entering directory '/home/dvhart/source/linux/linux-pdx86/tools/testing/selftests/futex'
Makefile:36: warning: overriding recipe for target 'clean'
../lib.mk:55: warning: ignoring old recipe for target 'clean'
for DIR in functional; do \
BUILD_TARGET=$OUTPUT/$DIR; \
mkdir $BUILD_TARGET  -p; \
make OUTPUT=$BUILD_TARGET -C $DIR all;\
done
mkdir: cannot create directory â€˜/functional’: Permission denied

Replace $$OUTPUT with $(OUTPUT) when referring to the Makefile OUTPUT
variable. The above make command now completes successfully.

Fixes: b2cb842c5a40 ("selftests: enable O and KBUILD_OUTPUT")
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Cc: linux-kselftest@vger.kernel.org
Cc: bamvor.zhangjian@huawei.com
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/futex/Makefile