From 88d0bca0c103f1e8f2e0006948e0cf4860a35a21 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 1 Mar 2014 15:53:00 +0100 Subject: [PATCH] package/linux-headers: select appropriate 'AT_LEAST_XXX' header version Select the appropriate BR2_TOOLCHAIN_HEADERS_AT_LEAST_XXX options for the internal toolchain backend. For the manualy-specified version, we bring up the choice that sets the _AT_LEAST_XXX symbols. [Thomas: rename symbols from BR2_PACKAGE_HOST_LINUX_HEADERS_ to BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_ to clearly indicate that they are used to specify the version of custom headers.] Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Arnout Vandecappelle Cc: Thomas De Schampheleire Cc: Paul Cercueil Signed-off-by: Thomas Petazzoni --- package/linux-headers/Config.in.host | 82 ++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host index fcecd62c11..8d306bdc95 100644 --- a/package/linux-headers/Config.in.host +++ b/package/linux-headers/Config.in.host @@ -17,42 +17,53 @@ choice config BR2_KERNEL_HEADERS_3_0 bool "Linux 3.0.x kernel headers" depends on !BR2_arc + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 config BR2_KERNEL_HEADERS_3_2 bool "Linux 3.2.x kernel headers" depends on !BR2_arc + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 config BR2_KERNEL_HEADERS_3_4 bool "Linux 3.4.x kernel headers" depends on !BR2_arc + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 config BR2_KERNEL_HEADERS_3_6 bool "Linux 3.6.x kernel headers" depends on BR2_DEPRECATED_SINCE_2013_05 && !BR2_arc + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6 config BR2_KERNEL_HEADERS_3_7 bool "Linux 3.7.x kernel headers" depends on BR2_DEPRECATED_SINCE_2013_05 && !BR2_arc + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 config BR2_KERNEL_HEADERS_3_8 bool "Linux 3.8.x kernel headers" depends on BR2_DEPRECATED_SINCE_2013_08 && !BR2_arc + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8 config BR2_KERNEL_HEADERS_3_9 bool "Linux 3.9.x kernel headers" depends on BR2_DEPRECATED_SINCE_2013_11 + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 config BR2_KERNEL_HEADERS_3_10 bool "Linux 3.10.x kernel headers" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 config BR2_KERNEL_HEADERS_3_11 bool "Linux 3.11.x kernel headers" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11 config BR2_KERNEL_HEADERS_3_12 bool "Linux 3.12.x kernel headers" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 config BR2_KERNEL_HEADERS_3_13 bool "Linux 3.13.x kernel headers" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13 config BR2_KERNEL_HEADERS_VERSION bool "Manually specified Linux version" @@ -65,6 +76,77 @@ config BR2_DEFAULT_KERNEL_VERSION Specify the version you want to use. E.G.: 3.6.10 +choice + bool "Custom kernel headers series" + depends on BR2_KERNEL_HEADERS_VERSION + default BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_REALLY_OLD + help + Set to the kernel headers series you manually set above. + + This is used to hide/show some packages that have strict + requirements on the version of kernel headers. + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_13 + bool "3.13.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_12 + bool "3.12.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_11 + bool "3.11.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10 + bool "3.10.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_9 + bool "3.9.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_8 + bool "3.8.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_7 + bool "3.7.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_6 + bool "3.6.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_5 + bool "3.5.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_4 + bool "3.4.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_3 + bool "3.3.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_2 + bool "3.2.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_1 + bool "3.1.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_0 + bool "3.0.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 + +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_REALLY_OLD + bool "2.6.x" + +endchoice + config BR2_DEFAULT_KERNEL_HEADERS string default "3.0.101" if BR2_KERNEL_HEADERS_3_0 -- 2.30.2