toolchain: generate check-headers program under $(BUILD_DIR)
authorCarlos Santos <unixmania@gmail.com>
Tue, 24 Sep 2019 11:46:11 +0000 (08:46 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 25 Sep 2019 20:07:24 +0000 (22:07 +0200)
commit6136765b23abd9faba610dd54ed276a777811575
treee3fc2ac455af77d920357f967eb7279a3fcb3afa
parentcf64b689a61c5506f6dfd3c60559639046ef8edd
toolchain: generate check-headers program under $(BUILD_DIR)

Some installations mount /tmp with the 'noexec' option, which prevents
running the program generated there to check the kernel headers.

Avoid the problem by generating the program under $(BUILD_DIR), passed
as the first argument to check-kernel-headers.sh.

We could globally export a TMPDIR environment variable with some path
under $(BUILD_DIR) but such solution would be too intrusive, depriving
the user from the freedom to set TMPDIR at his will (or needs).

Fixes: https://bugs.busybox.net/show_bug.cgi?id=12241
Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/linux-headers/linux-headers.mk
support/scripts/check-kernel-headers.sh
toolchain/helpers.mk
toolchain/toolchain-external/pkg-toolchain-external.mk