selftests: gpio: Find libmount with pkg-config if available
authorDaniel Díaz <daniel.diaz@linaro.org>
Tue, 16 Oct 2018 21:46:59 +0000 (16:46 -0500)
committerShuah Khan <shuah@kernel.org>
Tue, 27 Nov 2018 21:20:36 +0000 (14:20 -0700)
commit694f1f926c725a8955c1c156ad6d3c4e1b853bd8
tree68de5244b599d994c8126f89bd335675ff879b93
parent7492902e8d22b568463897fa967c0886764cf034
selftests: gpio: Find libmount with pkg-config if available

If pkg-config is available, use it to define the CFLAGS and
LDLIBS needed for libmount; else, use the current hard-coded
paths and options.

Using pkg-config is very helpful for cross-compilation
environments, and is sometimes readily available on developer
boxes to ensure we get the right compiler/linker options for
the given package.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>
tools/testing/selftests/gpio/Makefile