selftests: Fix build failures when invoked from kselftest target
authorShuah Khan <shuahkh@osg.samsung.com>
Wed, 18 Mar 2015 17:57:39 +0000 (11:57 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 19 Mar 2015 15:54:55 +0000 (09:54 -0600)
commit67d8712dcc70aa16d8e14a52eb73870e3cbddfc2
tree777a01d85382b31943ab9ed9d1688fe4bbac06ba
parent9a0b57451ae8142c74d65bddb6d7765818babbed
selftests: Fix build failures when invoked from kselftest target

Several tests that rely on implicit build rules fail to build,
when invoked from the main Makefile kselftest target. These
failures are due to --no-builtin-rules and --no-builtin-variables
options set in the inherited MAKEFLAGS.

--no-builtin-rules eliminates the use of built-in implicit rules
and --no-builtin-variables is for not defining built-in variables.
These two options override the use of implicit rules resulting in
build failures. In addition, inherited LDFLAGS result in build
failures and there is no need to define LDFLAGS.  Clear LDFLAGS
and MAKEFLAG when make is invoked from the main Makefile kselftest
target. Fixing this at selftests Makefile avoids changing the main
Makefile and keeps this change self contained at selftests level.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/Makefile
This page took 0.025486 seconds and 5 git commands to generate.