mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 07:43:32 +08:00
c39a2e1d6c
The headers and kernels where changed to XZ format on commit
98b5cc3eb4
, but the headers reverted back
to bz2 on the packaging of the toolchain.
This causes double kernel downloads when the versions match, so switch
back the headers to XZ.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
32 lines
926 B
Makefile
32 lines
926 B
Makefile
################################################################################
|
|
#
|
|
# linux-headers
|
|
#
|
|
################################################################################
|
|
|
|
# This package is used to provide Linux kernel headers for the
|
|
# internal toolchain backend.
|
|
|
|
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
|
|
LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v3.x/
|
|
endif
|
|
LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.xz
|
|
|
|
LINUX_HEADERS_INSTALL_STAGING = YES
|
|
|
|
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
|
|
|
|
$(eval $(generic-package))
|