linux/tools/testing/selftests/powerpc
Harish 896066aa06 selftests/powerpc: Fix build failure in ebb tests
We use OUTPUT directory as TMPOUT for checking no-pie option.

Since commit f2f02ebd8f ("kbuild: improve cc-option to clean up all
temporary files") when building powerpc/ from selftests directory, the
OUTPUT directory points to powerpc/pmu/ebb/ and gets removed when
checking for -no-pie option in try-run routine, subsequently build
fails with the following:

  $ make -C powerpc
  ...
  TARGET=ebb; BUILD_TARGET=$OUTPUT/$TARGET; mkdir -p $BUILD_TARGET; make OUTPUT=$BUILD_TARGET -k -C $TARGET all
  make[2]: Entering directory '/home/linux-master/tools/testing/selftests/powerpc/pmu/ebb'
  make[2]: *** No rule to make target 'Makefile'.
  make[2]: Failed to remake makefile 'Makefile'.
  make[2]: *** No rule to make target 'ebb.c', needed by '/home/linux-master/tools/testing/selftests/powerpc/pmu/ebb/reg_access_test'.
  make[2]: *** No rule to make target 'ebb_handler.S', needed by '/home/linux-master/tools/testing/selftests/powerpc/pmu/ebb/reg_access_test'.
  make[2]: *** No rule to make target 'trace.c', needed by '/home/linux-master/tools/testing/selftests/powerpc/pmu/ebb/reg_access_test'.
  make[2]: *** No rule to make target 'busy_loop.S', needed by '/home/linux-master/tools/testing/selftests/powerpc/pmu/ebb/reg_access_test'.
  make[2]: Target 'all' not remade because of errors.

Fix this by adding a suffix to the OUTPUT directory so that the
failure is avoided.

Fixes: 9686813f6e ("selftests/powerpc: Fix try-run when source tree is not writable")
Signed-off-by: Harish <harish@linux.ibm.com>
[mpe: Mention that commit that triggered the breakage]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200625165721.264904-1-harish@linux.ibm.com
2020-06-26 12:53:09 +10:00
..
alignment .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
benchmarks powerpc updates for 5.7 2020-04-05 11:12:59 -07:00
cache_shape .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
copyloops .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
dscr powerpc updates for 5.7 2020-04-05 11:12:59 -07:00
eeh selftests/eeh: Skip ahci adapters 2020-04-03 00:09:53 +11:00
include selftests/powerpc: Add a test of spectre_v2 mitigations 2019-10-30 15:43:57 +11:00
lib treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
math .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
mm powerpc updates for 5.7 2020-04-05 11:12:59 -07:00
nx-gzip selftests/powerpc: Add README for GZIP engine tests 2020-04-21 22:51:34 +10:00
pmu selftests/powerpc: Fix build failure in ebb tests 2020-06-26 12:53:09 +10:00
primitives .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
ptrace .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
scripts treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
security .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
signal powerpc: Use trap metadata to prevent double restart rather than zeroing trap 2020-05-15 11:58:54 +10:00
stringloops .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
switch_endian .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
syscalls .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
tm powerpc updates for 5.7 #2 2020-04-09 11:01:42 -07:00
vphn .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
harness.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
Makefile selftests/powerpc: Add NX-GZIP engine compress testcase 2020-04-21 22:51:34 +10:00
utils.c selftests/powerpc: Add a test of spectre_v2 mitigations 2019-10-30 15:43:57 +11:00