kumquat-buildroot/toolchain/toolchain-external
Thomas Petazzoni 96f8d0bb46 toolchain/toolchain-external: fix call to check_kernel_headers_version
The external toolchain configure step calls the
check_kernel_headers_version make function to compare the kernel
headers version declared in the configuration with the actual kernel
headers of the toolchain.

This function takes 4 arguments, but due to a missing comma what
should be the first two arguments are both passed into the first
argument. Due to this, when check_kernel_headers_version does:

	if ! support/scripts/check-kernel-headers.sh $(1) $(2) $(3) \
		$(if $(BR2_TOOLCHAIN_HEADERS_LATEST),$(4),strict); \

Then:

  $(1) contains "$(BUILD_DIR) $$(call toolchain_find_sysroot,$$(TOOLCHAIN_EXTERNAL_CC))"
  $(2) contains "$$(call qstrip,$$(BR2_TOOLCHAIN_HEADERS_AT_LEAST))"
  $(3) contains "$$(if $$(BR2_TOOLCHAIN_EXTERNAL_CUSTOM),loose,strict))"

So from the point of view of check-kernel-headers.sh, it already has
four arguments, and therefore the additional argument passed by:

   $(if $(BR2_TOOLCHAIN_HEADERS_LATEST),$(4),strict); \

is ignored, defeating the $(BR2_TOOLCHAIN_HEADERS_LATEST) test.

The practical consequence is that a toolchain that has 5.4 kernel
headers but declared as using 5.3 kernel headers does not abort the
build, because the check is considered "loose" while it should be
"strict".

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-03-21 15:39:24 +01:00
..
toolchain-external-andes-nds32 toolchain/toolchain-external/toolchain-external-andes-nds32: add missing dependencies/select 2019-05-31 00:06:52 +02:00
toolchain-external-arm-aarch64 toolchain/toolchain-external: update Arm AArch64 toolchain 9.2-2019.12 2020-01-04 16:30:26 +01:00
toolchain-external-arm-aarch64-be toolchain-external: update Arm AArch64 BE toolchain 9.2-2019.12 2020-01-08 09:31:48 +01:00
toolchain-external-arm-arm toolchain/toolchain-external: update Arm ARM toolchain 9.2-2019.12 2020-01-04 16:30:24 +01:00
toolchain-external-codescape-img-mips toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-codescape-mti-mips toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-codesourcery-aarch64 toolchain/external: hide versions too old for the current arch 2017-11-24 22:16:19 +01:00
toolchain-external-codesourcery-amd64 toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-codesourcery-arm arch/arm: armv8 is really armv8a 2017-11-24 23:01:41 +01:00
toolchain-external-codesourcery-mips toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-codesourcery-niosII toolchain-external: bump CodeSourcery NIOSII to 2018.05 2018-05-30 22:51:29 +02:00
toolchain-external-custom toolchain/external: fix SSP help texts for custom toolchains 2020-02-20 23:11:12 +01:00
toolchain-external-linaro-aarch64 toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-linaro-aarch64-be toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-linaro-arm toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-linaro-armeb toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-synopsys-arc toolchain: bump ARC prebuild toolchain to arc-2019.09 2020-01-18 13:14:07 +01:00
Config.in core: allow br2-external trees to provide pre-configured toolchains 2019-08-04 00:13:37 +02:00
pkg-toolchain-external.mk toolchain/toolchain-external: fix call to check_kernel_headers_version 2020-03-21 15:39:24 +01:00
toolchain-external.mk Fix makefile include order by using sort/wildcard. 2017-11-24 00:08:23 +01:00