* Respect user's CFLAGS/CPPFLAGS/LDFLAGS
* Respect $(MAKE)
* Remove CPPFLAGS from link rules
Note: for in-tree built test binaries, where we build --static,
we do not apply LDFLAGS: we want to limit external
dependencies in general; and users' LDFLAGS have a strong
tendency to conflict with --static for linking.
Work in collaboration with David Seifert (ie, he wrote most of it).
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
I occasionally test libcap against a custom kernel using QEMU.
Now I have a simple exit binary for exiting with status.
From the top level, one can use:
make ktest
However, for more control:
cd kdebug
make test
If you want to look around after the tests run:
make shell
Exit the shell & QEMU with ctrl-D (or exit).
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
The kdebug directory requires qemu to run and expects the kernel
to be compiled with the running architecture. My setup has the kernel
sources as a peer to the libcap directory so kdebug assumes that too.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>