From 2a5cf5e7237cd9b6e190f90bf680960b8c0f510f Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 1 Mar 2014 15:53:02 +0100 Subject: [PATCH] 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 --- package/linux-headers/linux-headers.mk | 9 +++++++++ 1 file changed, 9 insertions(+) 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)) -- 2.30.2