[Buildroot] [PATCH] support/scripts/check-kernel-headers.sh: do not print error for loose checks
Peter Korsgaard
peter at korsgaard.com
Mon Apr 6 15:19:12 UTC 2020
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at bootlin.com> writes:
> The C program inside check-kernel-headers.sh has two checking mode: a
> strict and a loose one.
> In strict mode, we want the kernel headers version declared by the
> user to match exactly the one of the toolchain.
> In loose mode, we want the kernel headers version of the toolchain to
> be greater than or equal to the one declared by the user: this is used
> when we have a toolchain that has newer headers than the latest
> version known by Buildroot.
> However, in loose mode, we continue to show the "Incorrect kernel
> headers version" message, even though we then return a zero error
> code. This is very confusing: you see an error displayed on the
> terminal, but the build goes on.
> We fix that by first doing the loose check first, and returning 0 if
> it succeeds. And then we move on with the strict check where we want
> the version to be identical.
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Committed to 2020.02.x, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list