Import buildroot 2016.02.01
This commit is contained in:
2
firmware/buildroot/package/linux-headers/Config.in
Normal file
2
firmware/buildroot/package/linux-headers/Config.in
Normal file
@@ -0,0 +1,2 @@
|
||||
config BR2_PACKAGE_LINUX_HEADERS
|
||||
bool
|
||||
223
firmware/buildroot/package/linux-headers/Config.in.host
Normal file
223
firmware/buildroot/package/linux-headers/Config.in.host
Normal file
@@ -0,0 +1,223 @@
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS
|
||||
bool
|
||||
|
||||
comment "Kernel Header Options"
|
||||
|
||||
choice
|
||||
prompt "Kernel Headers"
|
||||
default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL
|
||||
default BR2_KERNEL_HEADERS_4_4
|
||||
help
|
||||
Select the version of kernel header files you wish to use.
|
||||
You must select the correct set of header files to match
|
||||
the kernel you intend to use on your target system.
|
||||
|
||||
config BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
bool "Same as kernel"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_2
|
||||
bool "Linux 3.2.x kernel headers"
|
||||
depends on !BR2_arc && !BR2_nios2
|
||||
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 && !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_10
|
||||
bool "Linux 3.10.x kernel headers"
|
||||
depends on !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_12
|
||||
bool "Linux 3.12.x kernel headers"
|
||||
depends on !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_14
|
||||
bool "Linux 3.14.x kernel headers"
|
||||
depends on !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_17
|
||||
bool "Linux 3.17.x kernel headers"
|
||||
depends on BR2_DEPRECATED_SINCE_2015_05
|
||||
depends on !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_18
|
||||
bool "Linux 3.18.x kernel headers"
|
||||
depends on !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_19
|
||||
bool "Linux 3.19.x kernel headers"
|
||||
depends on BR2_DEPRECATED_SINCE_2015_08
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_0
|
||||
bool "Linux 4.0.x kernel headers"
|
||||
depends on BR2_DEPRECATED_SINCE_2015_08
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_1
|
||||
bool "Linux 4.1.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_2
|
||||
bool "Linux 4.2.x kernel headers"
|
||||
depends on BR2_DEPRECATED_SINCE_2016_02
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_3
|
||||
bool "Linux 4.3.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_4
|
||||
bool "Linux 4.4.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
|
||||
|
||||
config BR2_KERNEL_HEADERS_VERSION
|
||||
bool "Manually specified Linux version"
|
||||
endchoice
|
||||
|
||||
config BR2_DEFAULT_KERNEL_VERSION
|
||||
string "linux version"
|
||||
depends on BR2_KERNEL_HEADERS_VERSION
|
||||
help
|
||||
Specify the version you want to use.
|
||||
E.G.: 3.6.10
|
||||
|
||||
choice
|
||||
bool "Custom kernel headers series"
|
||||
depends on BR2_KERNEL_HEADERS_VERSION || BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
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_4_4
|
||||
bool "4.4.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_3
|
||||
bool "4.3.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_2
|
||||
bool "4.2.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1
|
||||
bool "4.1.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_0
|
||||
bool "4.0.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_19
|
||||
bool "3.19.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18
|
||||
bool "3.18.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_17
|
||||
bool "3.17.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_16
|
||||
bool "3.16.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_15
|
||||
bool "3.15.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_14
|
||||
bool "3.14.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
|
||||
|
||||
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.2.77" if BR2_KERNEL_HEADERS_3_2
|
||||
default "3.4.110" if BR2_KERNEL_HEADERS_3_4
|
||||
default "3.10.96" if BR2_KERNEL_HEADERS_3_10
|
||||
default "3.12.54" if BR2_KERNEL_HEADERS_3_12
|
||||
default "3.14.61" if BR2_KERNEL_HEADERS_3_14
|
||||
default "3.17.8" if BR2_KERNEL_HEADERS_3_17
|
||||
default "3.18.27" if BR2_KERNEL_HEADERS_3_18
|
||||
default "3.19.8" if BR2_KERNEL_HEADERS_3_19
|
||||
default "4.0.9" if BR2_KERNEL_HEADERS_4_0
|
||||
default "4.1.18" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.2.8" if BR2_KERNEL_HEADERS_4_2
|
||||
default "4.3.5" if BR2_KERNEL_HEADERS_4_3
|
||||
default "4.4.2" if BR2_KERNEL_HEADERS_4_4
|
||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
86
firmware/buildroot/package/linux-headers/linux-headers.mk
Normal file
86
firmware/buildroot/package/linux-headers/linux-headers.mk
Normal file
@@ -0,0 +1,86 @@
|
||||
################################################################################
|
||||
#
|
||||
# linux-headers
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# This package is used to provide Linux kernel headers for the
|
||||
# internal toolchain backend.
|
||||
|
||||
ifeq ($(BR2_KERNEL_HEADERS_AS_KERNEL),y)
|
||||
|
||||
LINUX_HEADERS_VERSION = none
|
||||
LINUX_HEADERS_SOURCE =
|
||||
|
||||
LINUX_HEADERS_LICENSE = $(LINUX_LICENSE)
|
||||
LINUX_HEADERS_LICENSE_FILES = $(LINUX_LICENSE_FILES)
|
||||
|
||||
LINUX_HEADERS_PATCH_DEPENDENCIES = linux
|
||||
LINUX_HEADERS_REAL_DIR = $(LINUX_DIR)
|
||||
|
||||
else # ! BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
|
||||
LINUX_HEADERS_VERSION = $(call qstrip,$(BR2_DEFAULT_KERNEL_HEADERS))
|
||||
ifeq ($(findstring x2.6.,x$(LINUX_HEADERS_VERSION)),x2.6.)
|
||||
LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v2.6
|
||||
else ifeq ($(findstring x3.,x$(LINUX_HEADERS_VERSION)),x3.)
|
||||
LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v3.x
|
||||
else ifeq ($(findstring x4.,x$(LINUX_HEADERS_VERSION)),x4.)
|
||||
LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v4.x
|
||||
endif
|
||||
LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.xz
|
||||
|
||||
LINUX_HEADERS_LICENSE = GPLv2
|
||||
LINUX_HEADERS_LICENSE_FILES = COPYING
|
||||
|
||||
LINUX_HEADERS_REAL_DIR = $(@D)
|
||||
|
||||
endif # ! BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
|
||||
LINUX_HEADERS_INSTALL_STAGING = YES
|
||||
|
||||
# linux-headers is part of the toolchain so disable the toolchain dependency
|
||||
LINUX_HEADERS_ADD_TOOLCHAIN_DEPENDENCY = NO
|
||||
|
||||
# For some architectures (eg. Arc, Cris, Hexagon, ia64, parisc,
|
||||
# score and xtensa), the Linux buildsystem tries to call the
|
||||
# cross-compiler, although it is not needed at all.
|
||||
# This results in seemingly errors like:
|
||||
# [...]/scripts/gcc-version.sh: line 26: arc-linux-uclibc-gcc: command not found
|
||||
# Those can be safely ignored.
|
||||
|
||||
# This step is required to have a separate linux headers location for
|
||||
# uClibc building. This way uClibc doesn't modify linux headers on installation
|
||||
# of "its" headers
|
||||
define LINUX_HEADERS_CONFIGURE_CMDS
|
||||
(cd $(LINUX_HEADERS_REAL_DIR); \
|
||||
$(TARGET_MAKE_ENV) $(MAKE) \
|
||||
ARCH=$(KERNEL_ARCH) \
|
||||
HOSTCC="$(HOSTCC)" \
|
||||
HOSTCFLAGS="$(HOSTCFLAGS)" \
|
||||
HOSTCXX="$(HOSTCXX)" \
|
||||
INSTALL_HDR_PATH=$(@D)/usr \
|
||||
headers_install)
|
||||
endef
|
||||
|
||||
define LINUX_HEADERS_INSTALL_STAGING_CMDS
|
||||
(cd $(LINUX_HEADERS_REAL_DIR); \
|
||||
$(TARGET_MAKE_ENV) $(MAKE) \
|
||||
ARCH=$(KERNEL_ARCH) \
|
||||
HOSTCC="$(HOSTCC)" \
|
||||
HOSTCFLAGS="$(HOSTCFLAGS)" \
|
||||
HOSTCXX="$(HOSTCXX)" \
|
||||
INSTALL_HDR_PATH=$(STAGING_DIR)/usr \
|
||||
headers_install)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_KERNEL_HEADERS_VERSION)$(BR2_KERNEL_HEADERS_AS_KERNEL),y)
|
||||
define LINUX_HEADERS_CHECK_VERSION
|
||||
$(call check_kernel_headers_version,\
|
||||
$(STAGING_DIR),\
|
||||
$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)))
|
||||
endef
|
||||
LINUX_HEADERS_POST_INSTALL_STAGING_HOOKS += LINUX_HEADERS_CHECK_VERSION
|
||||
endif
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user