kumquat-buildroot/toolchain
Vincent Fazio 338e62bd5d toolchain: allow using custom headers newer than latest known ones
When Buildroot is released, it knows up to a certain kernel header
version, and no later. However, it is possible that an external
toolchain will be used, that uses headers newer than the latest version
Buildroot knows about.

This may also happen when testing a development, an rc-class, or a newly
released kernel, either in an external toolchain, or with an internal
toolchain with custom headers (same-as-kernel, custom version, custom
git, custom tarball).

In the current state, Buildroot would refuse to use such toolchains,
because the test is for strict equality.

We'd like to make that situation possible, but we also want the user not
to be lenient at the same time, and select the right headers version
when it is known.

So, we add a new Kconfig blind option that the latest kernel headers
version selects. This options is then used to decide whether we do a
strict or loose check of the kernel headers.

Suggested-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
[yann.morin.1998@free.fr:
  - only do a loose check for the latest version
  - expand commit log
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Tested-by: Vincent Fazio <vfazio@xes-inc.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2020-02-08 20:25:10 +01:00
..
toolchain toolchain/toolchain: set TOOLCHAIN_INSTALL_STAGING only once 2019-10-27 14:56:52 +01:00
toolchain-buildroot toolchain/toolchain-buildroot: allow ARC big endian glibc builds 2019-12-06 22:16:23 +01:00
toolchain-external toolchain: allow using custom headers newer than latest known ones 2020-02-08 20:25:10 +01:00
Config.in toolchain: allow using custom headers newer than latest known ones 2020-02-08 20:25:10 +01:00
helpers.mk toolchain: allow using custom headers newer than latest known ones 2020-02-08 20:25:10 +01:00
toolchain-wrapper.c toolchain/wrapper: also dump args it was called with 2019-08-18 00:19:57 +02:00
toolchain-wrapper.mk toolchain/toolchain-wrapper: handle __{BASE_,}FILE__ macro for reproducibility 2020-01-06 23:24:52 +01:00
toolchain.mk toolchain: move glibc nsswitch.conf handling to a post-target hook 2018-10-21 01:50:35 +02:00