]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Fix standalone powerpc build
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Mar 2017 04:11:44 +0000 (15:11 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Mar 2017 04:11:44 +0000 (15:11 +1100)
commitfdf238ac7c5e448f9a6e1c78a9d50dbc056c7c65
treead01e70917b4cb4d183c5bf551ae227e5354bc7f
parent4435abc0cd08afcad03a3afe245fe0d6ffe21c39
selftests/powerpc: Fix standalone powerpc build

The changes to enable building with a separate output directory, in
commit 3bb9f730b61c ("selftests: enable O and KBUILD_OUTPUT") broke
building the powerpc selftests on their own, eg:

 $ cd tools/testing/selftests/powerpc; make

It was partially fixed in commit 2cb6d270b473 ("selftests: lib.mk Fix
individual test builds"), which defined OUTPUT for standalone tests. But
that only defines OUTPUT within the Makefile, the value is not exported
so sub-shells can't see it. We could export OUTPUT, but it's actually
cleaner to just expand the value of OUTPUT before we invoke the shell.

Fixes: 3bb9f730b61c ("selftests: enable O and KBUILD_OUTPUT")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/Makefile