Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
config BR2_PACKAGE_LINUX_HEADERS
|
||||
bool
|
||||
@@ -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.78" if BR2_KERNEL_HEADERS_3_2
|
||||
default "3.4.110" if BR2_KERNEL_HEADERS_3_4
|
||||
default "3.10.98" if BR2_KERNEL_HEADERS_3_10
|
||||
default "3.12.55" if BR2_KERNEL_HEADERS_3_12
|
||||
default "3.14.62" 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.6" if BR2_KERNEL_HEADERS_4_3
|
||||
default "4.4.3" if BR2_KERNEL_HEADERS_4_4
|
||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
@@ -0,0 +1,137 @@
|
||||
################################################################################
|
||||
#
|
||||
# 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 = $(call qstrip,$(BR2_LINUX_KERNEL_VERSION))
|
||||
|
||||
# Compute LINUX_HEADERS_SOURCE and LINUX_HEADERS_SITE from the configuration
|
||||
ifeq ($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y)
|
||||
LINUX_HEADERS_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION))
|
||||
LINUX_HEADERS_SITE = $(patsubst %/,%,$(dir $(LINUX_HEADERS_TARBALL)))
|
||||
LINUX_HEADERS_SOURCE = $(notdir $(LINUX_HEADERS_TARBALL))
|
||||
BR_NO_CHECK_HASH_FOR += $(LINUX_HEADERS_SOURCE)
|
||||
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_LOCAL),y)
|
||||
LINUX_HEADERS_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH))
|
||||
LINUX_HEADERS_SITE_METHOD = local
|
||||
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
|
||||
LINUX_HEADERS_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
||||
LINUX_HEADERS_SITE_METHOD = git
|
||||
# use same git tarball as linux kernel
|
||||
LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.gz
|
||||
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_HG),y)
|
||||
LINUX_HEADERS_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
||||
LINUX_HEADERS_SITE_METHOD = hg
|
||||
# use same hg tarball as linux kernel
|
||||
LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.gz
|
||||
else
|
||||
LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.xz
|
||||
ifeq ($(BR2_LINUX_KERNEL_CUSTOM_VERSION),y)
|
||||
BR_NO_CHECK_HASH_FOR += $(LINUX_HEADERS_SOURCE)
|
||||
endif
|
||||
# In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order
|
||||
# to use the $(word) function. We support versions such as 4.0, 3.1,
|
||||
# 2.6.32, 2.6.32-rc1, 3.0-rc6, etc.
|
||||
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
|
||||
# release candidates are in testing/ subdir
|
||||
ifneq ($(findstring -rc,$(LINUX_HEADERS_VERSION)),)
|
||||
LINUX_HEADERS_SITE := $(LINUX_HEADERS_SITE)/testing
|
||||
endif # -rc
|
||||
endif
|
||||
|
||||
LINUX_HEADERS_PATCHES = $(call qstrip,$(BR2_LINUX_KERNEL_PATCH))
|
||||
|
||||
# We rely on the generic package infrastructure to download and apply
|
||||
# remote patches (downloaded from ftp, http or https). For local
|
||||
# patches, we can't rely on that infrastructure, because there might
|
||||
# be directories in the patch list (unlike for other packages).
|
||||
LINUX_HEADERS_PATCH = $(filter ftp://% http://% https://%,$(LINUX_HEADERS_PATCHES))
|
||||
|
||||
define LINUX_HEADERS_APPLY_LOCAL_PATCHES
|
||||
for p in $(filter-out ftp://% http://% https://%,$(LINUX_HEADERS_PATCHES)) ; do \
|
||||
if test -d $$p ; then \
|
||||
$(APPLY_PATCHES) $(@D) $$p \*.patch || exit 1 ; \
|
||||
else \
|
||||
$(APPLY_PATCHES) $(@D) `dirname $$p` `basename $$p` || exit 1; \
|
||||
fi \
|
||||
done
|
||||
endef
|
||||
|
||||
LINUX_HEADERS_POST_PATCH_HOOKS += LINUX_HEADERS_APPLY_LOCAL_PATCHES
|
||||
|
||||
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
|
||||
|
||||
endif # ! BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
|
||||
LINUX_HEADERS_LICENSE = GPLv2
|
||||
LINUX_HEADERS_LICENSE_FILES = COPYING
|
||||
|
||||
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 $(@D); \
|
||||
$(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 $(@D); \
|
||||
$(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