kumquat-buildroot/linux
Cyril Bur 8143721c3e linux: build and install kernel selftests
This patch adds the ability to compile and install the kernel
selftests into the target at /usr/lib/kselftests. The rationale behind
/usr/lib is that the selftests have subdirectories where they are
installed which makes them unsuitable to be placed in /usr/sbin as
this would result in /usr/sbin/kselftests/x/y/z. While the selftests
aren't libraries either, they don't achieve much as a standalone
binary so they can be considered to be a 'library of tests' making
/usr/lib sensible.

The selftests require that the kernel headers be installed into the
kernel build tree as some of the selftests have a hardcoded CFLAGS to
include kernel headers (CFLAGS += -I../../../../usr/include/). This is
most easily achieved by using the make ... headers_install inside the
kernel build dir.

This is likely to be a rarely used debugging/performance feature for
development and unlikely to be used in a production configuration.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Thomas:
 - remove bash as a build dependency, it is only a runtime dependency.
 - fix typo in the Config.in help text, and rewrap
 - add missing 'depends on BR2_USE_MMU' dependency for the comment.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-03-20 22:04:47 +01:00
..
0001-timeconst.pl-Eliminate-Perl-warning.patch.conditional linux: add conditional patch for timeconst.pl 2016-02-10 08:12:57 +01:00
Config.ext.in linux-ext: add fbtft hint for linux kernel >= v4.0 2015-09-27 23:19:37 +02:00
Config.in linux: bump default to version 4.5 2016-03-14 13:12:46 +01:00
Config.tools.in linux: build and install kernel selftests 2016-03-20 22:04:47 +01:00
linux-ext-fbtft.mk
linux-ext-rtai.mk
linux-ext-xenomai.mk
linux-tool-cpupower.mk linux-tools: add cpupower 2015-07-14 23:22:58 +02:00
linux-tool-perf.mk linux/perf: conditionally enable support for gz/xz compression 2016-03-19 14:38:14 +01:00
linux-tool-selftests.mk linux: build and install kernel selftests 2016-03-20 22:04:47 +01:00
linux.mk linux: add conditional patch for timeconst.pl 2016-02-10 08:12:57 +01:00