From: Yann E. MORIN Date: Sat, 1 Mar 2014 14:53:02 +0000 (+0100) Subject: toolchain/internal: check kernel headers version for manually-specified version X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a5cf5e7237cd9b6e190f90bf680960b8c0f510f;p=buildroot.git toolchain/internal: check kernel headers version for manually-specified version Ensure the kernel headers version matches exactly the one manually specified by the user. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Arnout Vandecappelle Cc: Thomas De Schampheleire Signed-off-by: Thomas Petazzoni --- diff --git a/package/linux-headers/linux-headers.mk b/package/linux-headers/linux-headers.mk index 49fd9ca6d4..2361e40ac7 100644 --- a/package/linux-headers/linux-headers.mk +++ b/package/linux-headers/linux-headers.mk @@ -37,4 +37,13 @@ define LINUX_HEADERS_INSTALL_STAGING_CMDS headers_install) endef +ifeq ($(BR2_KERNEL_HEADERS_VERSION),y) +define LINUX_HEADERS_CHECK_VERSION + $(call check_kernel_headers_version,\ + "$(TARGET_CC) $(TOOLCHAIN_EXTERNAL_CFLAGS)",\ + $(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST))) +endef +LINUX_HEADERS_POST_INSTALL_STAGING_HOOKS += LINUX_HEADERS_CHECK_VERSION +endif + $(eval $(generic-package))