mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
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>
This commit is contained in:
committed by
Thomas Petazzoni
parent
cf64b689a6
commit
6136765b23
@@ -158,13 +158,12 @@ copy_toolchain_sysroot = \
|
||||
# Check the specified kernel headers version actually matches the
|
||||
# version in the toolchain.
|
||||
#
|
||||
# $1: sysroot directory
|
||||
# $2: kernel version string, in the form: X.Y
|
||||
# $1: build directory
|
||||
# $2: sysroot directory
|
||||
# $3: kernel version string, in the form: X.Y
|
||||
#
|
||||
check_kernel_headers_version = \
|
||||
if ! support/scripts/check-kernel-headers.sh $(1) $(2); then \
|
||||
exit 1; \
|
||||
fi
|
||||
support/scripts/check-kernel-headers.sh $(1) $(2) $(3)
|
||||
|
||||
#
|
||||
# Check the specific gcc version actually matches the version in the
|
||||
|
||||
Reference in New Issue
Block a user