/branches/18.06.1/include/kernel.mk |
@@ -59,16 +59,10 @@ |
|
LINUX_KERNEL:=$(KERNEL_BUILD_DIR)/vmlinux |
|
ifneq (,$(findstring -rc,$(LINUX_VERSION))) |
LINUX_SOURCE:=linux-$(LINUX_VERSION).tar.gz |
else |
LINUX_SOURCE:=linux-$(LINUX_VERSION).tar.xz |
endif |
|
ifneq (,$(findstring -rc,$(LINUX_VERSION))) |
LINUX_SITE:=https://git.kernel.org/torvalds/t |
else ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),) |
LINUX_SITE:=@KERNEL/linux/kernel/v$(word 1,$(subst ., ,$(KERNEL_BASE))).x |
TESTING:=$(if $(findstring -rc,$(LINUX_VERSION)),/testing,) |
ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),) |
LINUX_SITE:=@KERNEL/linux/kernel/v$(word 1,$(subst ., ,$(KERNEL_BASE))).x$(TESTING) |
else |
LINUX_UNAME_VERSION:=$(strip $(shell cat $(LINUX_DIR)/include/config/kernel.release 2>/dev/null)) |
endif |
@@ -103,7 +97,7 @@ |
|
KERNEL_MAKE = $(MAKE) $(KERNEL_MAKEOPTS) |
|
KERNEL_MAKE_FLAGS = \ |
KERNEL_MAKE_FLAGS := \ |
HOSTCFLAGS="$(HOST_CFLAGS) -Wall -Wmissing-prototypes -Wstrict-prototypes" \ |
CROSS_COMPILE="$(KERNEL_CROSS)" \ |
ARCH="$(LINUX_KARCH)" \ |
@@ -243,7 +237,7 @@ |
exit 1; \ |
fi; \ |
done; |
$(call ModuleAutoLoad,$(1),$$(1),$(filter-out 0-,$(word 1,$(AUTOLOAD))-),$(filter-out 0,$(word 2,$(AUTOLOAD))),$(sort $(wordlist 3,99,$(AUTOLOAD)))) |
$(call ModuleAutoLoad,$(1),$$(1),$(filter-out 0-,$(word 1,$(AUTOLOAD))-),$(filter-out 0,$(word 2,$(AUTOLOAD))),$(wordlist 3,99,$(AUTOLOAD))) |
$(call KernelPackage/$(1)/install,$$(1)) |
endef |
$(if $(CONFIG_PACKAGE_kmod-$(1)), |
@@ -259,8 +253,7 @@ |
endif |
$$(eval $$(call BuildPackage,kmod-$(1))) |
|
$$(IPKG_kmod-$(1)): $$(wildcard $$(call version_filter,$$(FILES))) |
|
$$(IPKG_kmod-$(1)): $$(wildcard $$(FILES)) |
endef |
|
version_filter=$(if $(findstring @,$(1)),$(shell $(SCRIPT_DIR)/package-metadata.pl version_filter $(KERNEL_PATCHVER) $(1)),$(1)) |