[Buildroot] [PATCH v3] toolchain: generate check-headers program under $(BUILD_DIR)

Peter Korsgaard peter at korsgaard.com
Mon Sep 30 16:36:21 UTC 2019


>>>>> "unixmania" == unixmania  <unixmania at gmail.com> writes:

 > From: Carlos Santos <unixmania at gmail.com>
 > 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 at gmail.com>
 > ---
 > CC: Cerem Cem ASLAN <ceremcem at ceremcem.net>
 > CC: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 > ---
 > Changes v1->v2:
 > - Move the change that introduces a trap to remove the temporary file to
 >   a separate patch.
 > - Improve the commit message.
 > Changes v2->v3:
 > - Move the SOB line above the cut line.

Committed to 2019.02.x, 2019.05.x and 2019.08.x, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list