selftests: Fix memfd to support relocatable build (O=objdir)
authorShuah Khan <skhan@linuxfoundation.org>
Wed, 25 Mar 2020 23:17:09 +0000 (17:17 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 26 Mar 2020 21:29:30 +0000 (15:29 -0600)
commitd3fd949abd3e3005dab7ccb185c3c8bc0ad639f1
tree3db36c0b64d0b1d4fc70c72eedaa39283eb8498b
parent860f0a7792a5abcaae047a114a8b24807ce0880f
selftests: Fix memfd to support relocatable build (O=objdir)

Fix memfd to support relocatable build (O=objdir). This calls out
source files necessary to build tests and simplfies the dependency
enforcement.

Tested the following:

Note that cross-build for fuse_mnt has dependency on -lfuse.

make all
make clean
make kselftest-install O=/arm64_build/ ARCH=arm64 HOSTCC=gcc \
CROSS_COMPILE=aarch64-linux-gnu- TARGETS=memfd

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/memfd/Makefile