selftests/powerpc: Pass make context to children
authorBenjamin Gray <bgray@linux.ibm.com>
Tue, 28 Feb 2023 00:07:08 +0000 (11:07 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:49 +0000 (14:56 +0200)
commit763f029f8c0f3f4662312709b34ab8240e50ef13
tree966619037844b12a43a8d9ada827a11057667d29
parentb9dc3d6b761d857d6dbd97fdedb13c2f9d6b4a40
selftests/powerpc: Pass make context to children

[ Upstream commit 4ecd0868c5138238dec8a1549bb6ff8e5b48208b ]

Make supports passing the 'jobserver' (parallel make support) to child
invocations of make when either
1. The target command uses $(MAKE) directly
2. The command starts with '+'

This context is not passed through expansions that result in $(MAKE), so
the macros used in several places fail to pass on the jobserver context.
Warnings are also raised by the child mentioning this.

Prepend macros lines that invoke $(MAKE) with '+' to allow passing the
jobserver context to these children.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230228000709.124727-3-bgray@linux.ibm.com
Stable-dep-of: 58b33e78a317 ("selftests/powerpc: Fix emit_tests to work with run_kselftest.sh")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/pmu/Makefile