[Buildroot] [PATCH 1/1] check-kernel-headers: allow safe version mismatches

Vincent Fazio vfazio at xes-inc.com
Thu Dec 5 20:25:54 UTC 2019

Previously, if toolchain headers were versioned ahead of the latest
selectable Buildroot toolchain header version, packages could not be
built because of an explicit equality check. This forced the user to
either advance the Buildroot repository or to rebuild their toolchain
with a selectable, but older, version of headers.

Now, we allow a toolchain's headers to outpace the latest selectable
Buildroot toolchain header version. The header version dependencies in
package configurations use "at least" version semantics, so newer
toolchains still meet the requirement.

Suggested-by: Aaron Sierra <asierra at xes-inc.com>
Signed-off-by: Vincent Fazio <vfazio at xes-inc.com>
 support/scripts/check-kernel-headers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/scripts/check-kernel-headers.sh b/support/scripts/check-kernel-headers.sh
index 9d23c00feb..093df46510 100755
--- a/support/scripts/check-kernel-headers.sh
+++ b/support/scripts/check-kernel-headers.sh
@@ -33,7 +33,7 @@ int main(int argc __attribute__((unused)),
          char** argv __attribute__((unused)))
     if((LINUX_VERSION_CODE & ~0xFF)
-        != KERNEL_VERSION(${HDR_M},${HDR_m},0))
+        < KERNEL_VERSION(${HDR_M},${HDR_m},0))
         printf("Incorrect selection of kernel headers: ");
         printf("expected %d.%d.x, got %d.%d.x\n", ${HDR_M}, ${HDR_m},

More information about the buildroot mailing list