summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-08-03 13:45:08 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-08-03 14:13:17 +0200
commitc6a72670b54e13d3ab3a6056d7c4f4c503cf0d78 (patch)
tree51c776165e7abb4f1336a93edc519461786496fe
parent6debfdc194f5192706120783d133fbb99271eccc (diff)
rework kernel module infrastructure
Instead of maintaining mk/modules.mk which defines compilations of related kernel modules to pack together into a single package, follow an automatic approach: For every kernel module found in the modules installation directory, create a single package. There are a few caveats to cover: === Module Loading Order === Upon bootup, module loading is ordered based on the number-prefixed files in /etc/modules.d/. The correct number was previously managed in mk/modules.mk on a per-collection basis. The new approach is to have levels which modules are to be assigned to. Level 0 contains modules with no dependencies at all. Level 1 contains modules which have only level 0 dependencies, and so on. This information is determined at compile-time by make-module-ipkgs.sh. === Module Installation to Target RootFS === Since module packages are created automatically from the modules the script finds, ADK build system has no knowledge about the connection between what the user has selected in menuconfig and the actual module packages. Therefore the earlier approach to install selected packages into rootfs does not hold anymore. Instead, use wildcards to find all packages in firmware directory prefixed by 'kmod-' and install them all (hopefully doing the right thing). === Kernel Version === KERNEL_VERSION now contains KERNEL_RELEASE already By creating a localversion file, make KERNEL_RELEASE part of the kernel's version number (so KERNEL_VERSION is correct in most situations) Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--docs/adding-boards.txt18
-rw-r--r--mk/kernel-build.mk28
-rw-r--r--mk/kernel-vars.mk1
-rw-r--r--mk/kernel-ver.mk48
-rw-r--r--mk/kernel.mk78
-rw-r--r--mk/linux.mk2
-rw-r--r--mk/modules-3.12.mk5
-rw-r--r--mk/modules-3.14.mk8
-rw-r--r--mk/modules-3.18.mk8
-rw-r--r--mk/modules-4.0.mk6
-rw-r--r--mk/modules-4.1.mk6
-rw-r--r--mk/modules.mk1875
-rw-r--r--package/glibc/Makefile2
-rw-r--r--package/musl/Makefile2
-rw-r--r--package/uclibc-ng/Makefile2
-rw-r--r--package/uclibc/Makefile2
-rw-r--r--scripts/make-module-ipkgs.sh100
-rw-r--r--target/aarch64/Makefile2
-rw-r--r--target/alpha/Makefile2
-rw-r--r--target/arc/Makefile2
-rw-r--r--target/arm/Makefile2
-rw-r--r--target/avr32/Makefile2
-rw-r--r--target/bfin/Makefile2
-rw-r--r--target/c6x/Makefile2
-rw-r--r--target/cris/Makefile2
-rw-r--r--target/h8300/Makefile2
-rw-r--r--target/hppa/Makefile2
-rw-r--r--target/m68k/Makefile2
-rw-r--r--target/metag/Makefile2
-rw-r--r--target/microblaze/Makefile2
-rw-r--r--target/mips/Makefile2
-rw-r--r--target/mips64/Makefile2
-rw-r--r--target/nios2/Makefile2
-rw-r--r--target/or1k/Makefile2
-rw-r--r--target/ppc/Makefile2
-rw-r--r--target/ppc64/Makefile2
-rw-r--r--target/sh/Makefile2
-rw-r--r--target/sparc/Makefile2
-rw-r--r--target/sparc64/Makefile2
-rw-r--r--target/tile/Makefile2
-rw-r--r--target/x86/Makefile2
-rw-r--r--target/x86_64/Makefile2
-rw-r--r--target/xtensa/Makefile2
-rw-r--r--toolchain/kernel-headers/Makefile16
44 files changed, 160 insertions, 2099 deletions
diff --git a/docs/adding-boards.txt b/docs/adding-boards.txt
index 2c2e80f23..b04552fb5 100644
--- a/docs/adding-boards.txt
+++ b/docs/adding-boards.txt
@@ -122,21 +122,7 @@ config ADK_KERNEL_MMC_BCM2835
------------------------
We use the symbol prefix ADK_KERNEL instead of CONFIG. Otherwise the symbols are
-matching the kernel symbol names.
+matching the kernel symbol names.
Get again into the menu based system, enable the driver you added and recompile.
-If your driver is available as kernel module use tristate and add an entry to
-mk/modules.mk.
-
-An entry might look like this:
-------------------------
-$(eval $(call KMOD_template,SND_BCM2708_SOC_I2S,snd-bcm2708-soc-i2s,\
- $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-bcm2708-i2s \
-,60, kmod-snd-soc))
-------------------------
-
-If the user choose the I2S driver for Raspberry PI 2, it creates a kmod package
-containing the file kernel/sound/soc/bcm/snd-soc-bcm2708-i2s.ko and generate
-a dependency to kmod-snd-soc when a package management (ipkg/opkg) is used.
-Furthermore a file with load instructions is created in /etc/modules.d/snd-bcm2708-soc-i2s
-on the target.
+If your driver is available as kernel module use tristate.
diff --git a/mk/kernel-build.mk b/mk/kernel-build.mk
index 029d3802d..d26d51e85 100644
--- a/mk/kernel-build.mk
+++ b/mk/kernel-build.mk
@@ -31,16 +31,17 @@ else
ADK_DEPMOD:=true
endif
-$(LINUX_DIR)/.prepared: $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION)/.patched
+$(LINUX_DIR)/.prepared: $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_FILE_VER)/.patched
$(TRACE) target/kernel-prepare
- ln -sf $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) $(LINUX_DIR)
+ ln -sf $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_FILE_VER) $(LINUX_DIR)
mkdir -p $(LINUX_BUILD_DIR)/kmod-control
touch $@
-$(LINUX_DIR)/.config: $(LINUX_DIR)/.prepared $(BUILD_DIR)/.kernelconfig $(ADK_TOPDIR)/mk/modules.mk
+$(LINUX_DIR)/.config: $(LINUX_DIR)/.prepared $(BUILD_DIR)/.kernelconfig
$(TRACE) target/$(ADK_TARGET_ARCH)-kernel-configure
-for f in $(TARGETS);do if [ -f $$f ];then rm $$f;fi;done
$(CP) $(BUILD_DIR)/.kernelconfig $(LINUX_DIR)/mini.config
+ echo "-${KERNEL_RELEASE}" >${LINUX_DIR}/localversion
${KERNEL_MAKE_ENV} $(MAKE) -C "${LINUX_DIR}" ${KERNEL_MAKE_OPTS} KCONFIG_ALLCONFIG=mini.config allnoconfig $(MAKE_TRACE)
touch -c $(LINUX_DIR)/.config
@@ -59,24 +60,23 @@ $(LINUX_BUILD_DIR)/modules: $(LINUX_DIR)/$(KERNEL_FILE)
modules_install $(MAKE_TRACE)
$(TRACE) target/$(ADK_TARGET_ARCH)-create-packages
@mkdir -p ${PACKAGE_DIR}
-ifneq ($(strip $(TARGETS)),)
- $(MAKE) $(TARGETS)
-endif
-
-$(INSTALL_TARGETS): $(LINUX_BUILD_DIR)/modules
+ ${BASH} ${SCRIPT_DIR}/make-module-ipkgs.sh \
+ "${ADK_TARGET_CPU_ARCH}" \
+ "${KERNEL_VERSION}" \
+ "${LINUX_BUILD_DIR}" \
+ "${PKG_BUILD}" \
+ "${PACKAGE_DIR}"
prepare:
compile: $(LINUX_BUILD_DIR)/modules
-install: compile $(INSTALL_TARGETS)
-ifneq ($(strip $(INSTALL_TARGETS)),)
+install: compile
$(TRACE) target/${ADK_TARGET_ARCH}-modules-install
ifeq ($(ADK_TARGET_PACKAGE_IPKG)$(ADK_TARGET_PACKAGE_OPKG),y)
- $(PKG_INSTALL) $(INSTALL_TARGETS) $(MAKE_TRACE)
+ $(PKG_INSTALL) $(wildcard ${PACKAGE_DIR}/kmod-*) $(MAKE_TRACE)
else
- $(foreach pkg,$(INSTALL_TARGETS),$(shell $(PKG_INSTALL) $(pkg)))
-endif
+ $(foreach pkg,$(wildcard ${PACKAGE_DIR}/kmod-*),$(shell $(PKG_INSTALL) $(pkg)))
endif
clean:
rm -rf $(LINUX_BUILD_DIR)
- rm -f $(TARGETS)
+ rm -f $(wildcard ${PACKAGE_DIR}/kmod-*) $(wildcard ${PACKAGE_DIR}/kernel_*)
diff --git a/mk/kernel-vars.mk b/mk/kernel-vars.mk
index 7e4704927..ee1ce803b 100644
--- a/mk/kernel-vars.mk
+++ b/mk/kernel-vars.mk
@@ -23,3 +23,4 @@ KERNEL_MAKE_OPTS+= LOADADDR=0x40008000
endif
KERNEL_MAKE_ENV:= PATH="${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:$$PATH"
+LINUX_BUILD_DIR:= $(BUILD_DIR)/linux-$(ADK_TARGET_ARCH)
diff --git a/mk/kernel-ver.mk b/mk/kernel-ver.mk
index cd2f2acfe..cda9f1014 100644
--- a/mk/kernel-ver.mk
+++ b/mk/kernel-ver.mk
@@ -1,53 +1,65 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+#
+# On the various kernel version variables:
+#
+# KERNEL_FILE_VER: version numbering used for tarball and contained top level
+# directory (e.g. linux-4.1.2.tar.bz2 -> linux-4.1.2) (not
+# necessary equal to kernel's version, e.g. linux-3.19
+# contains kernel version 3.19.0)
+# KERNEL_RELEASE: OpenADK internal versioning
+# KERNEL_VERSION: final kernel version how we want to identify a specific kernel
+
ifeq ($(ADK_KERNEL_VERSION_GIT),y)
-KERNEL_VERSION:= $(ADK_KERNEL_HASH)
-KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
+KERNEL_FILE_VER:= $(ADK_KERNEL_HASH)
KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
endif
ifeq ($(ADK_KERNEL_VERSION_4_1_3),y)
-KERNEL_VERSION:= 4.1.3
-KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
+KERNEL_FILE_VER:= 4.1.3
KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
KERNEL_HASH:= 96dd2c30984408a8a2211463618c3564514239f1e4335f6bc461c4b9a9bae30b
endif
ifeq ($(ADK_KERNEL_VERSION_3_18_16),y)
-KERNEL_VERSION:= 3.18.16
-KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
+KERNEL_FILE_VER:= 3.18.16
KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
KERNEL_HASH:= d98e8dc54cdb0d0cdf42533413f4079c983899a5dbd5a46c4c62ea5715184530
endif
ifeq ($(ADK_KERNEL_VERSION_3_14_45),y)
-KERNEL_VERSION:= 3.14.45
-KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
+KERNEL_FILE_VER:= 3.14.45
KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
KERNEL_HASH:= 8c745b47b3ae0631b2e59423dc255dccbc64d599f9183b390b442dd500e5cb49
endif
ifeq ($(ADK_KERNEL_VERSION_3_12_44),y)
-KERNEL_VERSION:= 3.12.44
-KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
+KERNEL_FILE_VER:= 3.12.44
KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
KERNEL_HASH:= 08a64346a8dcb7e938b2a8a34fc94ac0207b8e2ab5884e761458c6151359de15
endif
ifeq ($(ADK_KERNEL_VERSION_3_10_81),y)
-KERNEL_VERSION:= 3.10.81
-KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
+KERNEL_FILE_VER:= 3.10.81
KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
KERNEL_HASH:= cf8e4c6e67783aa65ab52eda043054945f4d0da0cf739ad90841f4e4354fea43
endif
ifeq ($(ADK_KERNEL_VERSION_3_4_108),y)
-KERNEL_VERSION:= 3.4.108
-KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
+KERNEL_FILE_VER:= 3.4.108
KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
KERNEL_HASH:= 55c65bc82a6168625ffc8145a644515e77047684f30f7382456948619763be75
endif
ifeq ($(ADK_KERNEL_VERSION_3_2_69),y)
-KERNEL_VERSION:= 3.2.69
-KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
+KERNEL_FILE_VER:= 3.2.69
KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
KERNEL_HASH:= a331bf981114f0959a543c47210dd455c47971017d3ee74fa72d14bb8754473b
endif
ifeq ($(ADK_KERNEL_VERSION_2_6_32_67),y)
-KERNEL_VERSION:= 2.6.32.67
-KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
+KERNEL_FILE_VER:= 2.6.32.67
KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
KERNEL_HASH:= b472eb8758404dcbbcdb0fdce60b98e60aadcb4408c485faef5ab7a29cf994b0
endif
diff --git a/mk/kernel.mk b/mk/kernel.mk
deleted file mode 100644
index 8eb8ec2d1..000000000
--- a/mk/kernel.mk
+++ /dev/null
@@ -1,78 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(ADK_TOPDIR)/mk/kernel-ver.mk
-
-LINUX_KMOD_SUFFIX=ko
-MODULES_SUBDIR := lib/modules/$(KERNEL_MOD_VERSION)
-LINUX_BUILD_DIR := $(BUILD_DIR)/linux-$(ADK_TARGET_ARCH)
-KMOD_BUILD_DIR := $(LINUX_BUILD_DIR)/linux-modules
-MODULES_DIR := $(LINUX_BUILD_DIR)/modules/$(MODULES_SUBDIR)
-TARGET_MODULES_DIR := $(LINUX_TARGET_DIR)/$(MODULES_SUBDIR)
-
-INSTALL_TARGETS:= $(KERNEL_PKG)
-NOINSTALL_TARGETS:=
-TARGETS:=
-
-ifneq ($(ADK_RUNTIME_DEV_UDEV),y)
-# KMOD_template (not used for udev which autoloads modules)
-#
-# Adds a target for creating a package containing
-# the specified (kernel-provided) modules.
-# Parameters:
-# 1: the config symbol name (without leading 'ADK_KERNEL_')
-# this _must_ be equal to the kernel config symbol name
-# 2: the name for the package, should be unique
-# 3: actual modules to add; absolute path inside $(MODULES_DIR)
-# OMIT THE KERNEL-SPECIFIC EXTENSION!
-# 4: order of module loading at system startup; the modules in $(3) are (in their order)
-# added to this file, if $(6) is non-empty
-# 5: the kmod packages this package depends on
-#
-define KMOD_template
-
-IDEPENDK_$(1):=kernel ($(KERNEL_VERSION)) $(foreach pkg,$(5),", $(pkg)")
-
-PKG_$(1) := $(PACKAGE_DIR)/kmod-$(2)_$(KERNEL_VERSION)-$(KERNEL_RELEASE)_$(ADK_TARGET_CPU_ARCH).$(PKG_SUFFIX)
-I_$(1) := $(KMOD_BUILD_DIR)/ipkg/$(2)
-
-ifeq ($${ADK_TARGET_KERNEL_CUSTOMISING},y)
-ifeq ($$(ADK_KERNEL_$(1)),m)
-TARGETS+=$$(PKG_$(1))
-INSTALL_TARGETS+=$$(PKG_$(1))
-endif
-endif
-
-$$(PKG_$(1)):
- rm -rf $$(I_$(1))
- @mkdir -p $$(I_$(1))
- echo "Package: kmod-$(2)" > $(LINUX_BUILD_DIR)/kmod-control/kmod-$(2).control
- echo "Priority: optional" >> $(LINUX_BUILD_DIR)/kmod-control/kmod-$(2).control
- echo "Section: sys" >> $(LINUX_BUILD_DIR)/kmod-control/kmod-$(2).control
- echo "Description: kernel module $(2)" >> $(LINUX_BUILD_DIR)/kmod-control/kmod-$(2).control
- ${BASH} ${SCRIPT_DIR}/make-ipkg-dir.sh $$(I_$(1)) \
- $(LINUX_BUILD_DIR)/kmod-control/kmod-$(2).control \
- $(KERNEL_VERSION)-$(KERNEL_RELEASE) $(ADK_TARGET_CPU_ARCH)
- echo "Depends: $$(IDEPENDK_$(1))" >> $$(I_$(1))/CONTROL/control
-ifneq ($(strip $(3)),)
- mkdir -p $$(I_$(1))/lib/modules/$(KERNEL_MOD_VERSION)
- $(CP) $(foreach mod,$(3),$(mod).$(LINUX_KMOD_SUFFIX)) $$(I_$(1))/lib/modules/$(KERNEL_MOD_VERSION)
-ifneq ($(4),)
- mkdir -p $$(I_$(1))/etc/modules.d
- for module in $(notdir $(3)); do \
- echo $$$$module >> $$(I_$(1))/etc/modules.d/$(4)-$(2); \
- done
- echo "#!/bin/sh" >> $$(I_$(1))/CONTROL/postinst
- echo "if [ -z \"\$$$${IPKG_INSTROOT}\" ]; then" >> $$(I_$(1))/CONTROL/postinst
- echo ". /etc/functions.sh" >> $$(I_$(1))/CONTROL/postinst
- echo "load_modules /etc/modules.d/$(4)-$(2)" >> $$(I_$(1))/CONTROL/postinst
- echo "fi" >> $$(I_$(1))/CONTROL/postinst
- chmod 0755 $$(I_$(1))/CONTROL/postinst
-endif
-endif
- $${RSTRIP} $${I_$(1)} $(MAKE_TRACE)
- $(PKG_BUILD) $$(I_$(1)) $(PACKAGE_DIR) $(MAKE_TRACE)
-endef
-endif
-
-include $(BUILD_DIR)/.kernelconfig
diff --git a/mk/linux.mk b/mk/linux.mk
index 9d18f35f0..9ac7d824d 100644
--- a/mk/linux.mk
+++ b/mk/linux.mk
@@ -7,7 +7,7 @@ ifeq ($(ADK_KERNEL_VERSION_GIT),y)
PKG_VERSION:= $(ADK_KERNEL_HASH)
PKG_SITES:= $(ADK_KERNEL_REPO)
else
-PKG_VERSION:= $(KERNEL_VERSION)
+PKG_VERSION:= $(KERNEL_FILE_VER)
PKG_HASH:= $(KERNEL_HASH)
PKG_SITES:= ${MASTER_SITE_KERNEL:=kernel/v4.x/} \
${MASTER_SITE_KERNEL:=kernel/v3.x/} \
diff --git a/mk/modules-3.12.mk b/mk/modules-3.12.mk
deleted file mode 100644
index f00746f4c..000000000
--- a/mk/modules-3.12.mk
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-USBMODULES:=drivers/usb/usb-common drivers/usb/core/usbcore
-USBUDC:=gadget/udc
diff --git a/mk/modules-3.14.mk b/mk/modules-3.14.mk
deleted file mode 100644
index 7a901ca5d..000000000
--- a/mk/modules-3.14.mk
+++ /dev/null
@@ -1,8 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-USBMODULES:=drivers/usb/usb-common drivers/usb/core/usbcore
-USBUDC:=gadget
-NF_NAT_MASQ:=net/ipv4/netfilter/nf_nat_ipv4
-NF_REJECT:=net/ipv4/netfilter/ipt_REJECT
-LOCKD:=fs/lockd/lockd
diff --git a/mk/modules-3.18.mk b/mk/modules-3.18.mk
deleted file mode 100644
index 46da18a74..000000000
--- a/mk/modules-3.18.mk
+++ /dev/null
@@ -1,8 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-USBMODULES:=drivers/usb/common/usb-common drivers/usb/core/usbcore
-USBUDC:=gadget/udc
-NF_NAT_MASQ:=net/ipv4/netfilter/nf_nat_ipv4 net/ipv4/netfilter/nf_nat_masquerade_ipv4
-NF_REJECT:=net/ipv4/netfilter/ipt_REJECT net/ipv4/netfilter/nf_reject_ipv4
-LOCKD:=fs/nfs_common/grace fs/lockd/lockd
diff --git a/mk/modules-4.0.mk b/mk/modules-4.0.mk
deleted file mode 100644
index 425c180ac..000000000
--- a/mk/modules-4.0.mk
+++ /dev/null
@@ -1,6 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-USBMODULES+=drivers/usb/common/usb-common
-USBMODULES+=drivers/usb/core/usbcore
-USBUDC:=gadget/udc
diff --git a/mk/modules-4.1.mk b/mk/modules-4.1.mk
deleted file mode 100644
index 425c180ac..000000000
--- a/mk/modules-4.1.mk
+++ /dev/null
@@ -1,6 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-USBMODULES+=drivers/usb/common/usb-common
-USBMODULES+=drivers/usb/core/usbcore
-USBUDC:=gadget/udc
diff --git a/mk/modules.mk b/mk/modules.mk
deleted file mode 100644
index eed6144a4..000000000
--- a/mk/modules.mk
+++ /dev/null
@@ -1,1875 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-ifeq ($(ADK_KERNEL_VERSION_4_1),y)
-include $(ADK_TOPDIR)/mk/modules-4.1.mk
-endif
-
-ifeq ($(ADK_KERNEL_VERSION_4_0),y)
-include $(ADK_TOPDIR)/mk/modules-4.0.mk
-endif
-
-ifeq ($(ADK_KERNEL_VERSION_3_19),y)
-include $(ADK_TOPDIR)/mk/modules-3.19.mk
-endif
-
-ifeq ($(ADK_KERNEL_VERSION_3_18),y)
-include $(ADK_TOPDIR)/mk/modules-3.18.mk
-endif
-
-ifeq ($(ADK_KERNEL_VERSION_3_14),y)
-include $(ADK_TOPDIR)/mk/modules-3.14.mk
-endif
-
-ifeq ($(ADK_KERNEL_VERSION_3_12),y)
-include $(ADK_TOPDIR)/mk/modules-3.12.mk
-endif
-
-#
-# Virtualization
-#
-
-$(eval $(call KMOD_template,KVM,kvm,\
- $(MODULES_DIR)/kernel/arch/${ARCH}/kvm/kvm \
-,90))
-
-$(eval $(call KMOD_template,KVM_AMD,kvm-adm,\
- $(MODULES_DIR)/kernel/arch/${ARCH}/kvm/kvm-amd \
-,95))
-
-$(eval $(call KMOD_template,KVM_INTEL,kvm-intel,\
- $(MODULES_DIR)/kernel/arch/${ARCH}/kvm/kvm-intel \
-,95))
-
-#
-# Serial ATA devices
-#
-
-$(eval $(call KMOD_template,SATA_AHCI,sata-ahci,\
- $(MODULES_DIR)/kernel/drivers/ata/libahci \
- $(MODULES_DIR)/kernel/drivers/ata/ahci \
-,10))
-
-#
-# Ethernet network devices
-#
-
-$(eval $(call KMOD_template,NE2K_PCI,ne2k-pci,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/8390/8390 \
- $(MODULES_DIR)/kernel/drivers/net/ethernet/8390/ne2k-pci \
-,20))
-
-$(eval $(call KMOD_template,8139CP,8139cp,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/realtek/8139cp \
-,20))
-
-$(eval $(call KMOD_template,8139TOO,8139too,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/realtek/8139too \
-,20))
-
-$(eval $(call KMOD_template,E100,e100,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/intel/e100 \
-,20))
-
-$(eval $(call KMOD_template,E1000,e1000,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/intel/e1000/e1000 \
-,20))
-
-$(eval $(call KMOD_template,SKY2,sky2,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/marvell/sky2 \
-,20))
-
-$(eval $(call KMOD_template,R8169,r8169,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/realtek/r8169 \
-,20))
-
-$(eval $(call KMOD_template,FEC,fec,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/freescale/fec \
-,20))
-
-$(eval $(call KMOD_template,SMC91X,smc91x,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/smsc/smc91x \
-,20))
-
-$(eval $(call KMOD_template,VIA_RHINE,via-rhine,\
- $(MODULES_DIR)/kernel/drivers/net/ethernet/via/via-rhine \
-,20))
-
-#
-# Wireless network devices
-#
-
-$(eval $(call KMOD_template,RFKILL,rfkill,\
- $(MODULES_DIR)/kernel/net/rfkill/rfkill \
-,10))
-
-$(eval $(call KMOD_template,CFG80211,cfg80211,\
- $(MODULES_DIR)/kernel/net/wireless/cfg80211 \
-,14))
-
-$(eval $(call KMOD_template,MAC80211,mac80211,\
- $(MODULES_DIR)/kernel/net/mac80211/mac80211 \
-,15, kmod-cfg80211 kmod-crypto-arc4 kmod-crypto-ecb))
-
-$(eval $(call KMOD_template,BRCMFMAC,brcmfmac,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/brcm80211/brcmutil/brcmutil \
- $(MODULES_DIR)/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac \
-,20))
-
-$(eval $(call KMOD_template,ATH6KL,ath6kl,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/ath/ath6kl/ath6kl_core \
- $(MODULES_DIR)/kernel/drivers/net/wireless/ath/ath6kl/ath6kl_sdio \
-,20))
-
-$(eval $(call KMOD_template,ATH5K,ath5k,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/ath/ath \
- $(MODULES_DIR)/kernel/drivers/net/wireless/ath/ath5k/ath5k \
-,20, kmod-leds-class))
-
-$(eval $(call KMOD_template,P54_COMMON,p54-common,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/p54/p54common \
-,68))
-
-$(eval $(call KMOD_template,RTL8187,rtl8187,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187 \
-,70))
-
-$(eval $(call KMOD_template,B43,b43,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/b43/b43 \
-,70))
-
-$(eval $(call KMOD_template,HOSTAP,hostap,\
- $(MODULES_DIR)/kernel/net/wireless/lib80211_crypt_ccmp \
- $(MODULES_DIR)/kernel/net/wireless/lib80211_crypt_tkip \
- $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap \
-,70))
-
-$(eval $(call KMOD_template,HOSTAP_CS,hostap-cs,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap_cs \
-,75))
-
-$(eval $(call KMOD_template,P54_USB,p54-usb,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/p54/p54usb \
-,70))
-
-$(eval $(call KMOD_template,RT2X00,rt2x00,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2x00lib \
-,17))
-
-$(eval $(call KMOD_template,RT2X00_LIB_PCI,rt2x00pci,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2x00pci \
-,18))
-
-$(eval $(call KMOD_template,RT2X00_LIB_USB,rt2x00usb,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2x00usb \
-,18))
-
-$(eval $(call KMOD_template,RT2400PCI,rt2400pci,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2400pci \
-,20, kmod-leds-class kmod-rt2x00 rt2x00pci))
-
-$(eval $(call KMOD_template,RT2500PCI,rt2500pci,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2500pci \
-,20, kmod-leds-class kmod-rt2x00 kmod-rt2x00pci))
-
-$(eval $(call KMOD_template,RT2800USB,rt2800usb,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2800lib \
- $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2800usb \
-,20, kmod-rt2x00 kmod-rt2x00usb))
-
-$(eval $(call KMOD_template,RT61PCI,rt61pci,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt61pci \
-,20, kmod-leds-class kmod-rt2x00 rt2x00pci))
-
-$(eval $(call KMOD_template,RTL8192CU,rtl8192cu,\
- $(MODULES_DIR)/kernel/drivers/net/wireless/rtlwifi/rtlwifi \
- $(MODULES_DIR)/kernel/drivers/net/wireless/rtlwifi/rtl_usb \
- $(MODULES_DIR)/kernel/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common \
- $(MODULES_DIR)/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu \
-,20))
-
-#
-# Networking
-#
-
-$(eval $(call KMOD_template,ATM,atm,\
- $(MODULES_DIR)/kernel/net/atm/atm \
-,50))
-
-$(eval $(call KMOD_template,ATM_BR2684,atm-br2684,\
- $(MODULES_DIR)/kernel/net/atm/br2684 \
-,51))
-
-$(eval $(call KMOD_template,VLAN_8021Q,vlan-8021q,\
- $(MODULES_DIR)/kernel/net/8021q/8021q \
-,5))
-
-$(eval $(call KMOD_template,BRIDGE,bridge,\
- $(MODULES_DIR)/kernel/net/llc/llc \
- $(MODULES_DIR)/kernel/net/802/stp \
- $(MODULES_DIR)/kernel/net/bridge/bridge \
-,10))
-
-$(eval $(call KMOD_template,NET_IPGRE,net-ipgre,\
- $(MODULES_DIR)/kernel/net/ipv4/ip_gre \
-,50))
-
-$(eval $(call KMOD_template,INET_TUNNEL,inet-tunnel,\
- $(MODULES_DIR)/kernel/net/ipv4/tunnel4 \
-,20))
-
-$(eval $(call KMOD_template,NET_IP_TUNNEL,net-ip-tunnel,\
- $(MODULES_DIR)/kernel/net/ipv4/ip_tunnel \
-,30))
-
-$(eval $(call KMOD_template,NET_IPIP,net-ipip,\
- $(MODULES_DIR)/kernel/net/ipv4/ipip \
-,60))
-
-$(eval $(call KMOD_template,IPV6,ipv6,\
- $(MODULES_DIR)/kernel/net/ipv6/ipv6 \
-,09))
-
-$(eval $(call KMOD_template,IPV6_SIT,ipv6-sit,\
- $(MODULES_DIR)/kernel/net/ipv6/sit \
-,35))
-
-$(eval $(call KMOD_template,PPP,ppp,\
- $(MODULES_DIR)/kernel/drivers/net/slip/slhc \
- $(MODULES_DIR)/kernel/drivers/net/ppp/ppp_generic \
- $(MODULES_DIR)/kernel/drivers/net/ppp/ppp_async \
-,50))
-
-$(eval $(call KMOD_template,PPP_MPPE,ppp-mppe,\
- $(MODULES_DIR)/kernel/drivers/net/ppp/ppp_mppe \
-,55))
-
-$(eval $(call KMOD_template,PPPOATM,pppoatm,\
- $(MODULES_DIR)/kernel/net/atm/pppoatm \
-,60))
-
-$(eval $(call KMOD_template,PPPOE,pppoe,\
- $(MODULES_DIR)/kernel/drivers/net/ppp/pppoe \
- $(MODULES_DIR)/kernel/drivers/net/ppp/pppox \
-,60))
-
-$(eval $(call KMOD_template,TUN,tun,\
- $(MODULES_DIR)/kernel/drivers/net/tun \
-,20))
-
-$(eval $(call KMOD_template,BONDING,bonding,\
- $(MODULES_DIR)/kernel/drivers/net/bonding/bonding \
-,20))
-
-#
-# Traffic scheduling
-#
-
-$(eval $(call KMOD_template,NET_SCH_CBQ,net-sch-cbq,\
- $(MODULES_DIR)/kernel/net/sched/sch_cbq \
-,40))
-
-$(eval $(call KMOD_template,NET_SCH_HTB,net-sch-htb,\
- $(MODULES_DIR)/kernel/net/sched/sch_htb \
-,40))
-
-$(eval $(call KMOD_template,NET_SCH_HFSC,net-sch-hfsc,\
- $(MODULES_DIR)/kernel/net/sched/sch_hfsc \
-,40))
-
-$(eval $(call KMOD_template,NET_SCH_ATM,net-sch-atm,\
- $(MODULES_DIR)/kernel/net/sched/sch_atm \
-,40))
-
-$(eval $(call KMOD_template,NET_SCH_PRIO,net-sch-prio,\
- $(MODULES_DIR)/kernel/net/sched/sch_prio \
-,40))
-
-$(eval $(call KMOD_template,NET_SCH_RED,net-sch-red,\
- $(MODULES_DIR)/kernel/net/sched/sch_red \
-,40))
-
-$(eval $(call KMOD_template,NET_SCH_SFQ,net-sch-sfq,\
- $(MODULES_DIR)/kernel/net/sched/sch_sfq \
-,40))
-
-# busybox netapps crash, when module loaded
-#$(eval $(call KMOD_template,NET_SCH_TEQL,net-sched-teql,\
-# $(MODULES_DIR)/kernel/net/sched/sch_teql \
-#,40))
-
-$(eval $(call KMOD_template,NET_SCH_TBF,net-sch-tbf,\
- $(MODULES_DIR)/kernel/net/sched/sch_tbf \
-,40))
-
-$(eval $(call KMOD_template,NET_SCH_GRED,net-sch-gred,\
- $(MODULES_DIR)/kernel/net/sched/sch_gred \
-,40))
-
-$(eval $(call KMOD_template,NET_SCH_DSMARK,net-sch-dsmark,\
- $(MODULES_DIR)/kernel/net/sched/sch_dsmark \
-,40))
-
-$(eval $(call KMOD_template,NET_SCH_INGRESS,net-sch-ingress,\
- $(MODULES_DIR)/kernel/net/sched/sch_ingress \
-,40))
-
-#
-# classifications
-#
-
-$(eval $(call KMOD_template,NET_CLS_BASIC,net-cls-basic,\
- $(MODULES_DIR)/kernel/net/sched/cls_basic \
-,40))
-
-$(eval $(call KMOD_template,NET_CLS_TCINDEX,net-cls-tcindex,\
- $(MODULES_DIR)/kernel/net/sched/cls_tcindex \
-,40))
-
-$(eval $(call KMOD_template,NET_CLS_ROUTE4,net-cls-route4,\
- $(MODULES_DIR)/kernel/net/sched/cls_route \
-,40))
-
-$(eval $(call KMOD_template,NET_CLS_FW,net-cls-fw,\
- $(MODULES_DIR)/kernel/net/sched/cls_fw \
-,40))
-
-$(eval $(call KMOD_template,NET_CLS_U32,net-cls-u32,\
- $(MODULES_DIR)/kernel/net/sched/cls_u32 \
-,40))
-
-#
-# actions
-#
-
-$(eval $(call KMOD_template,NET_ACT_POLICE,net-act-police,\
- $(MODULES_DIR)/kernel/net/sched/act_police \
-,45))
-
-$(eval $(call KMOD_template,NET_ACT_GACT,net-act-gact,\
- $(MODULES_DIR)/kernel/net/sched/act_gact \
-,45))
-
-$(eval $(call KMOD_template,NET_ACT_MIRRED,net-act-mirred,\
- $(MODULES_DIR)/kernel/net/sched/act_mirred \
-,45))
-
-$(eval $(call KMOD_template,NET_ACT_IPT,net-act-ipt,\
- $(MODULES_DIR)/kernel/net/sched/act_ipt \
-,45))
-
-$(eval $(call KMOD_template,NET_ACT_PEDIT,net-act-pedit,\
- $(MODULES_DIR)/kernel/net/sched/act_pedit \
-,45))
-
-#
-# IPsec
-#
-
-$(eval $(call KMOD_template,XFRM_ALGO,xfrm-algo,\
- $(MODULES_DIR)/kernel/net/xfrm/xfrm_algo \
-,59))
-
-$(eval $(call KMOD_template,NET_KEY,net-key,\
- $(MODULES_DIR)/kernel/net/key/af_key \
-,60))
-
-$(eval $(call KMOD_template,XFRM_USER,xfrm-user,\
- $(MODULES_DIR)/kernel/net/xfrm/xfrm_user \
-,61))
-
-$(eval $(call KMOD_template,INET_AH,inet-ah,\
- $(MODULES_DIR)/kernel/net/ipv4/ah4 \
-,65))
-
-$(eval $(call KMOD_template,INET_ESP,inet-esp,\
- $(MODULES_DIR)/kernel/net/ipv4/esp4 \
-,65))
-
-$(eval $(call KMOD_template,INET_IPCOMP,inet-ipcomp,\
- $(MODULES_DIR)/kernel/net/ipv4/xfrm4_tunnel \
- $(MODULES_DIR)/kernel/net/xfrm/xfrm_ipcomp \
- $(MODULES_DIR)/kernel/net/ipv4/ipcomp \
-,70))
-
-$(eval $(call KMOD_template,INET_XFRM_MODE_TRANSPORT,inet-xfrm-mode-transport,\
- $(MODULES_DIR)/kernel/net/ipv4/xfrm4_mode_transport \
-,75))
-
-$(eval $(call KMOD_template,INET_XFRM_MODE_TUNNEL,inet-xfrm-mode-tunnel,\
- $(MODULES_DIR)/kernel/net/ipv4/xfrm4_mode_tunnel \
-,75))
-
-$(eval $(call KMOD_template,INET_XFRM_MODE_BEET,inet-xfrm-mode-beet,\
- $(MODULES_DIR)/kernel/net/ipv4/xfrm4_mode_beet \
-,75))
-
-##
-## Filtering / Firewalling
-##
-
-#
-# Ethernet Bridging firewall
-#
-
-$(eval $(call KMOD_template,BRIDGE_NF_EBTABLES,bridge-nf-ebtables,\
- $(MODULES_DIR)/kernel/net/bridge/netfilter/ebtables \
-,55))
-
-$(eval $(call KMOD_template,BRIDGE_EBT_BROUTE,bridge-ebt-broute,\
- $(MODULES_DIR)/kernel/net/bridge/netfilter/ebtable_broute \
-,60))
-
-$(eval $(call KMOD_template,BRIDGE_EBT_T_FILTER,bridge-ebt-t-filter,\
- $(MODULES_DIR)/kernel/net/bridge/netfilter/ebtable_filter \
-,60))
-
-$(eval $(call KMOD_template,BRIDGE_EBT_T_NAT,bridge-ebt-t-nat,\
- $(MODULES_DIR)/kernel/net/bridge/netfilter/ebtable_nat \
-,60))
-
-$(eval $(call KMOD_template,BRIDGE_EBT_802_3,bridge-ebt-802-3,\
- $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_802_3 \
-,65))
-
-$(eval $(call KMOD_template,BRIDGE_EBT_AMONG,bridge-ebt-among,\
- $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_among \
-,65))
-
-$(eval $(call KMOD_template,BRIDGE_EBT_ARP,bridge-ebt-arp,\
- $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_arpreply \
-,65))
-
-$(eval $(call KMOD_template,BRIDGE_EBT_IP,bridge-ebt-ip,\
- $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_ip \
-,65))
-
-$(eval $(call KMOD_template,BRIDGE_EBT_REDIRECT,bridge-ebt-redirect,\
- $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_redirect \
-,65))
-
-#
-# Netfilter Core
-#
-
-$(eval $(call KMOD_template,NETFILTER_XTABLES,netfilter-xtables,\
- $(MODULES_DIR)/kernel/net/netfilter/x_tables \
- $(MODULES_DIR)/kernel/net/netfilter/xt_tcpudp \
-,41))
-
-$(eval $(call KMOD_template,NETFILTER_XT_TARGET_CLASSIFY,netfiler-xt-target-classify,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_CLASSIFY \
-,50))
-
-CONNMARK:=xt_connmark
-MARK:=xt_mark
-
-$(eval $(call KMOD_template,NETFILTER_XT_TARGET_CONNMARK,netfilter-xt-target-connmark,\
- $(MODULES_DIR)/kernel/net/netfilter/$(CONNMARK) \
-,50))
-
-$(eval $(call KMOD_template,NETFILTER_XT_TARGET_MARK,netfilter-xt-target-mark,\
- $(MODULES_DIR)/kernel/net/netfilter/$(MARK) \
-,50))
-
-$(eval $(call KMOD_template,NETFILTER_XT_TARGET_CHECKSUM,netfilter-xt-target-checksum,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_CHECKSUM \
-,50))
-
-$(eval $(call KMOD_template,NETFILTER_XT_TARGET_NFQUEUE,netfilter-xt-target-nfqueue,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_NFQUEUE \
-,50))
-
-$(eval $(call KMOD_template,NETFILTER_XT_TARGET_TCPMSS,netfilter-xt-target-tcpmss,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_TCPMSS \
-,50))
-
-$(eval $(call KMOD_template,NETFILTER_XT_TARGET_NOTRACK,netfilter-xt-target-notrack,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_NOTRACK \
-,50))
-
-$(eval $(call KMOD_template,NETFILTER_XT_TARGET_LOG,netfilter-xt-target-log,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_LOG \
-,60))
-
-#
-# IP: Netfilter
-#
-
-$(eval $(call KMOD_template,NF_CONNTRACK,nf-conntrack,\
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack \
- $(MODULES_DIR)/kernel/net/netfilter/xt_conntrack \
-,41))
-
-$(eval $(call KMOD_template,NF_NAT,nf-nat,\
- $(MODULES_DIR)/kernel/net/netfilter/nf_nat \
-,42))
-
-$(eval $(call KMOD_template,NETFILTER_XT_NAT,netfilter-xt-nat,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_nat \
-,43))
-
-$(eval $(call KMOD_template,NF_CONNTRACK_IPV4,nf-conntrack-ipv4,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_defrag_ipv4 \
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_conntrack_ipv4 \
-,46))
-
-$(eval $(call KMOD_template,NF_NAT_IPV4,nf-nat-ipv4,\
- $(foreach mod, $(NF_NAT_MASQ),$(MODULES_DIR)/kernel/$(mod)) \
-,50))
-
-$(eval $(call KMOD_template,IP_NF_NAT,ip-nf-nat,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_nat \
-,60))
-
-$(eval $(call KMOD_template,NF_CONNTRACK_FTP,nf-conntrack-ftp,\
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_ftp \
- $(MODULES_DIR)/kernel/net/netfilter/nf_nat_ftp \
-,55))
-
-$(eval $(call KMOD_template,NF_CONNTRACK_IRC,nf-conntrack-irc,\
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_irc \
- $(MODULES_DIR)/kernel/net/netfilter/nf_nat_irc \
-,55))
-
-$(eval $(call KMOD_template,NF_CONNTRACK_NETBIOS_NS,nf-conntrack-netbios-ns,\
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_broadcast \
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_netbios_ns \
-,55))
-
-$(eval $(call KMOD_template,NF_CONNTRACK_TFTP,nf-conntrack-tftp,\
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_tftp \
- $(MODULES_DIR)/kernel/net/netfilter/nf_nat_tftp \
-,55))
-
-$(eval $(call KMOD_template,NF_CONNTRACK_PPTP,nf-conntrack-pptp,\
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_proto_gre \
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_pptp \
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_proto_gre \
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_pptp \
-,55))
-
-$(eval $(call KMOD_template,NF_CONNTRACK_H323,nf-conntrack-h323,\
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_h323 \
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_h323 \
-,55))
-
-$(eval $(call KMOD_template,NF_CONNTRACK_SIP,nf-conntrack-sip,\
- $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_sip \
- $(MODULES_DIR)/kernel/net/netfilter/nf_nat_sip \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_IPTABLES,ip-nf-iptables,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ip_tables \
-,49))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_IPRANGE,ip-nf-match-iprange,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_iprange \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_TOS,ip-nf-match-tos,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_tos \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_RECENT,ip-nf-match-recent,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_recent \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_ECN,ip-nf-match-ecn,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ecn \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_AH,ip-nf-match-ah,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ah \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_TTL,ip-nf-match-ttl,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ttl \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_OWNER,ip-nf-match-owner,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_owner \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_ADDRTYPE,ip-nf-match-addrtype,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_addrtype \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_HASHLIMIT,ip-nf-match-hashlimit,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_hashlimit \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_STATE,ip-nf-match-state,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_state \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_MATCH_MULTIPORT,ip-nf-match-multiport,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_multiport \
-,55))
-
-#
-# Filtering
-#
-
-$(eval $(call KMOD_template,IP_NF_FILTER,ip-nf-filter,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_filter \
-,55))
-
-$(eval $(call KMOD_template,IP_NF_TARGET_REJECT,ip-nf-target-reject,\
- $(foreach mod, $(NF_REJECT),$(MODULES_DIR)/kernel/$(mod)) \
-,60))
-
-$(eval $(call KMOD_template,IP_NF_TARGET_TCPMSS,ip-nf-target-tcpmss,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_TCPMSS \
-,60))
-
-$(eval $(call KMOD_template,IP_NF_TARGET_MASQUERADE,ip-nf-target-masquerade,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_MASQUERADE \
-,65))
-
-$(eval $(call KMOD_template,IP_NF_TARGET_REDIRECT,ip-nf-target-redirect,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_REDIRECT \
-,65))
-
-$(eval $(call KMOD_template,IP_NF_TARGET_NETMAP,ip-nf-target-netmap,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_NETMAP \
-,65))
-
-#
-# Mangle
-#
-
-$(eval $(call KMOD_template,IP_NF_MANGLE,ip-nf-mangle,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_mangle \
-,60))
-
-$(eval $(call KMOD_template,IP_NF_TARGET_TOS,ip-nf-target-tos,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_TOS \
-,65))
-
-$(eval $(call KMOD_template,IP_NF_TARGET_ECN,ip-nf-target-ecn,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ECN \
-,65))
-
-$(eval $(call KMOD_template,IP_NF_TARGET_TTL,ip-nf-target-ttl,\
- $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_TTL \
-,65))
-
-#
-# IPv6: Netfilter
-#
-
-$(eval $(call KMOD_template,NF_CONNTRACK_IPV6,nf-conntrack-ipv6,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/nf_defrag_ipv6 \
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/nf_conntrack_ipv6 \
-,50))
-
-$(eval $(call KMOD_template,IP6_NF_IPTABLES,ip6-nf-iptables,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6_tables \
-,50))
-
-$(eval $(call KMOD_template,IP6_NF_MATCH_AH,ip6-nf-match-ah,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_ah \
-,55))
-
-$(eval $(call KMOD_template,IP6_NF_MATCH_EUI64,ip6-nf-match-eui64,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_eui64 \
-,55))
-
-$(eval $(call KMOD_template,IP6_NF_MATCH_FRAG,ip6-nf-match-frag,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_frag \
-,55))
-
-$(eval $(call KMOD_template,IP6_NF_MATCH_OPTS,ip6-nf-match-opts,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_hbh \
-,55))
-
-$(eval $(call KMOD_template,IP6_NF_MATCH_IPV6HEADER,ip6-nf-match-ipv6header,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_ipv6header \
-,55))
-
-$(eval $(call KMOD_template,IP6_NF_MATCH_MH,ip6-nf-match-mh,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_mh \
-,55))
-
-$(eval $(call KMOD_template,IP6_NF_MATCH_RT,ip6-nf-match-rt,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_rt \
-,55))
-
-#
-# IPv6: Filtering
-#
-
-$(eval $(call KMOD_template,IP6_NF_FILTER,ip6-nf-filter,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6table_filter \
-,55))
-
-$(eval $(call KMOD_template,IP6_NF_TARGET_REJECT,ip6-nf-target-reject,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/nf_reject_ipv6 \
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_REJECT \
-,60))
-
-#
-# IPv6: Mangle
-#
-
-$(eval $(call KMOD_template,IP6_NF_MANGLE,ip6-nf-mangle,\
- $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6table_mangle \
-,60))
-
-#
-# IPVS
-#
-
-IPVSPATH=$(MODULES_DIR)/kernel/net/netfilter/ipvs
-
-$(eval $(call KMOD_template,IP_VS,ip-vs,\
- $(IPVSPATH)/ip_vs \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_RR,ip-vs-rr,\
- $(IPVSPATH)/ip_vs_rr \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_WRR,ip-vs-wrr,\
- $(IPVSPATH)/ip_vs_wrr \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_LC,ip-vs-lc,\
- $(IPVSPATH)/ip_vs_lc \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_WLC,ip-vs-wlc,\
- $(IPVSPATH)/ip_vs_wlc \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_LBLC,ip-vs-lblc,\
- $(IPVSPATH)/ip_vs_lblc \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_LBLCR,ip-vs-lblcr,\
- $(IPVSPATH)/ip_vs_lblcr \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_DH,ip-vs-dh,\
- $(IPVSPATH)/ip_vs_dh \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_SH,ip-vs-sh,\
- $(IPVSPATH)/ip_vs_sh \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_SED,ip-vs-sed,\
- $(IPVSPATH)/ip_vs_sed \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_NQ,ip-vs-nq,\
- $(IPVSPATH)/ip_vs_nq \
-,55))
-
-$(eval $(call KMOD_template,IP_VS_FTP,ip-vs-ftp,\
- $(IPVSPATH)/ip_vs_ftp \
-,55))
-
-#
-# Block devices
-#
-
-$(eval $(call KMOD_template,BLK_DEV_DRBD,blk-dev-drbd,\
- $(MODULES_DIR)/kernel/lib/lru_cache \
- $(MODULES_DIR)/kernel/drivers/block/drbd/drbd \
-,20))
-
-$(eval $(call KMOD_template,BLK_DEV_LOOP,blk-dev-loop,\
- $(MODULES_DIR)/kernel/drivers/block/loop \
-,20))
-
-$(eval $(call KMOD_template,BLK_DEV_NBD,blk-dev-nbd,\
- $(MODULES_DIR)/kernel/drivers/block/nbd \
-,20))
-
-#$(eval $(call KMOD_template,SCSI,scsi,\
-# $(MODULES_DIR)/kernel/drivers/scsi/scsi_mod \
-#,20))
-
-$(eval $(call KMOD_template,BLK_DEV_SD,blk-dev-sd,\
- $(MODULES_DIR)/kernel/drivers/scsi/sd_mod \
-,25))
-
-$(eval $(call KMOD_template,BLK_DEV_SR,blk-dev-sr,\
- $(MODULES_DIR)/kernel/drivers/cdrom/cdrom \
- $(MODULES_DIR)/kernel/drivers/scsi/sr_mod \
-,25))
-
-#
-# RAID
-#
-
-$(eval $(call KMOD_template,RAID6_PQ,raid-pq,\
- $(MODULES_DIR)/kernel/lib/raid6/raid6_pq \
-,20))
-
-$(eval $(call KMOD_template,BLK_DEV_MD,blk-dev-md,\
- $(MODULES_DIR)/kernel/drivers/md/md-mod \
-,30))
-
-$(eval $(call KMOD_template,MD_RAID0,md-raid0,\
- $(MODULES_DIR)/kernel/drivers/md/raid0 \
-,35))
-
-$(eval $(call KMOD_template,MD_RAID1,md-raid1,\
- $(MODULES_DIR)/kernel/drivers/md/raid1 \
-,35))
-
-$(eval $(call KMOD_template,MD_RAID456,md-raid456,\
- $(MODULES_DIR)/kernel/crypto/async_tx/async_tx \
- $(MODULES_DIR)/kernel/crypto/async_tx/async_xor \
- $(MODULES_DIR)/kernel/crypto/async_tx/async_memcpy \
- $(MODULES_DIR)/kernel/crypto/async_tx/async_raid6_recov \
- $(MODULES_DIR)/kernel/crypto/async_tx/async_pq \
- $(MODULES_DIR)/kernel/drivers/md/raid456 \
-,35, kmod-raid-pq kmod-xor-blocks))
-
-#
-# Device Mapper
-#
-
-$(eval $(call KMOD_template,BLK_DEV_DM,blk-dev-dm,\
- $(MODULES_DIR)/kernel/drivers/md/dm-mod \
-,35))
-
-$(eval $(call KMOD_template,DM_CRYPT,dm-crypt,\
- $(MODULES_DIR)/kernel/drivers/md/dm-crypt \
-,40))
-
-$(eval $(call KMOD_template,DM_MIRROR,dm-mirror,\
- $(MODULES_DIR)/kernel/drivers/md/dm-log \
- $(MODULES_DIR)/kernel/drivers/md/dm-region-hash \
- $(MODULES_DIR)/kernel/drivers/md/dm-mirror \
-,40))
-
-$(eval $(call KMOD_template,DM_SNAPSHOT,dm-snapshot,\
- $(MODULES_DIR)/kernel/drivers/md/dm-snapshot \
-,40))
-
-#
-# Crypto
-#
-
-$(eval $(call KMOD_template,CRYPTO,crypto,\
- $(MODULES_DIR)/kernel/crypto/crypto \
-,01))
-
-$(eval $(call KMOD_template,CRYPTO_ALGAPI2,crypto-algapi,\
- $(MODULES_DIR)/kernel/crypto/crypto_algapi \
-,02))
-
-$(eval $(call KMOD_template,CRYPTO_PCOMP2,crypto-pcomp,\
- $(MODULES_DIR)/kernel/crypto/pcompress \
-,03))
-
-$(eval $(call KMOD_template,CRYPTO_AEAD2,crypto-aead,\
- $(MODULES_DIR)/kernel/crypto/aead \
-,03))
-
-$(eval $(call KMOD_template,CRYPTO_HASH2,crypto-hash,\
- $(MODULES_DIR)/kernel/crypto/crypto_hash \
-,04))
-
-$(eval $(call KMOD_template,CRYPTO_BLKCIPHER2,crypto-blkcipher,\
- $(MODULES_DIR)/kernel/crypto/crypto_blkcipher \
-,05))
-
-$(eval $(call KMOD_template,CRYPTO_RNG2,crypto-rng,\
- $(MODULES_DIR)/kernel/crypto/rng \
- $(MODULES_DIR)/kernel/crypto/krng \
-,06))
-
-$(eval $(call KMOD_template,CRYPTO_WORKQUEUE,crypto-wq,\
- $(MODULES_DIR)/kernel/crypto/crypto_wq \
-,07))
-
-$(eval $(call KMOD_template,CRYPTO_MANAGER2,crypto-manager,\
- $(MODULES_DIR)/kernel/crypto/cryptomgr \
- $(MODULES_DIR)/kernel/crypto/eseqiv \
- $(MODULES_DIR)/kernel/crypto/chainiv \
-,08))
-
-$(eval $(call KMOD_template,CRYPTO_DEV_GEODE,crypto-dev-geode,\
- $(MODULES_DIR)/kernel/drivers/crypto/geode-aes \
-,20))
-
-$(eval $(call KMOD_template,XOR_BLOCKS,xor-blocks,\
- $(MODULES_DIR)/kernel/crypto/xor \
-,10))
-
-$(eval $(call KMOD_template,CRYPTO_AUTHENC,crypto-authenc,\
- $(MODULES_DIR)/kernel/crypto/authenc \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_HMAC,crypto-hmac,\
- $(MODULES_DIR)/kernel/crypto/hmac \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_CTS,crypto-cts,\
- $(MODULES_DIR)/kernel/crypto/cts \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_XCBC,crypto-xcbc,\
- $(MODULES_DIR)/kernel/crypto/xcbc \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_NULL,crypto-null,\
- $(MODULES_DIR)/kernel/crypto/crypto_null \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_MD4,crypto-md4,\
- $(MODULES_DIR)/kernel/crypto/md4 \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_MD5,crypto-md5,\
- $(MODULES_DIR)/kernel/crypto/md5 \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_SHA1,crypto-sha1,\
- $(MODULES_DIR)/kernel/crypto/sha1_generic \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_SHA256,crypto-sha256,\
- $(MODULES_DIR)/kernel/crypto/sha256_generic \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_SHA512,crypto-sha512,\
- $(MODULES_DIR)/kernel/crypto/sha512_generic \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_WP512,crypto-wp512,\
- $(MODULES_DIR)/kernel/crypto/wp512 \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_TGR192,crypto-tgr192,\
- $(MODULES_DIR)/kernel/crypto/tgr192 \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_SEQIV,crypto-seqiv,\
- $(MODULES_DIR)/kernel/crypto/seqiv \
-,5))
-
-$(eval $(call KMOD_template,CRYPTO_CTR,crypto-ctr,\
- $(MODULES_DIR)/kernel/crypto/ctr \
-,10))
-
-$(eval $(call KMOD_template,CRYPTO_CCM,crypto-ccm,\
- $(MODULES_DIR)/kernel/crypto/ccm \
-,10))
-
-$(eval $(call KMOD_template,CRYPTO_GCM,crypto-gcm,\
- $(MODULES_DIR)/kernel/crypto/gcm \
-,10))
-
-$(eval $(call KMOD_template,CRYPTO_ECB,crypto-ecb,\
- $(MODULES_DIR)/kernel/crypto/ecb \
-,10))
-
-$(eval $(call KMOD_template,CRYPTO_CBC,crypto-cbc,\
- $(MODULES_DIR)/kernel/crypto/cbc \
-,10))
-
-$(eval $(call KMOD_template,CRYPTO_DES,crypto-des,\
- $(MODULES_DIR)/kernel/crypto/des_generic \
-,10))
-
-$(eval $(call KMOD_template,CRYPTO_BLOWFISH,crypto-blowfish,\
- $(MODULES_DIR)/kernel/crypto/blowfish_common \
- $(MODULES_DIR)/kernel/crypto/blowfish_generic \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_TWOFISH,crypto-twofish,\
- $(MODULES_DIR)/kernel/crypto/twofish_common \
- $(MODULES_DIR)/kernel/crypto/twofish_generic \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_TWOFISH_586,crypto-twofish-586,\
- $(MODULES_DIR)/kernel/arch/x86/crypto/twofish-i586 \
-,12))
-
-$(eval $(call KMOD_template,CRYPTO_SERPENT,crypto-serpent,\
- $(MODULES_DIR)/kernel/crypto/serpent_generic \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_AES,crypto-aes,\
- $(MODULES_DIR)/kernel/crypto/aes_generic \
-,10))
-
-$(eval $(call KMOD_template,CRYPTO_AES_586,crypto-aes-586,\
- $(MODULES_DIR)/kernel/arch/x86/crypto/aes-i586 \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_CAST5,crypto-cast5,\
- $(MODULES_DIR)/kernel/crypto/cast5_generic \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_CAST6,crypto-cast6,\
- $(MODULES_DIR)/kernel/crypto/cast6_generic \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_TEA,crypto-tea,\
- $(MODULES_DIR)/kernel/crypto/tea \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_ARC4,crypto-arc4,\
- $(MODULES_DIR)/kernel/crypto/arc4 \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_KHAZAD,crypto-khazad,\
- $(MODULES_DIR)/kernel/crypto/khazad \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_ANUBIS,crypto-anubis,\
- $(MODULES_DIR)/kernel/crypto/anubis \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_CAMELLIA,crypto-camellia,\
- $(MODULES_DIR)/kernel/crypto/camellia_generic \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_FCRYPT,crypto-fcrypt,\
- $(MODULES_DIR)/kernel/crypto/fcrypt \
-,11))
-
-$(eval $(call KMOD_template,CRYPTO_DEFLATE,crypto-deflate,\
- $(MODULES_DIR)/kernel/crypto/deflate \
-,10, kmod-zlib-deflate kmod-zlib-inflate))
-
-$(eval $(call KMOD_template,CRYPTO_LZO,crypto-lzo,\
- $(MODULES_DIR)/kernel/crypto/lzo \
-,10))
-
-$(eval $(call KMOD_template,CRYPTO_MICHAEL_MIC,crypto-michael-mic,\
- $(MODULES_DIR)/kernel/crypto/michael_mic \
-,11))
-
-$(eval $(call KMOD_template,OCF_CRYPTOSOFT,ocf-cryptosoft,\
- ${MODULES_DIR}/kernel/crypto/ocf/cryptosoft \
-,12))
-
-$(eval $(call KMOD_template,OCF_SAFE,ocf-safe,\
- ${MODULES_DIR}/kernel/crypto/ocf/safe/safe \
-,12))
-
-$(eval $(call KMOD_template,OCF_IXP4XX,ocf-ixp4xx,\
- ${MODULES_DIR}/kernel/crypto/ocf/ixp4xx/ixp4xx \
-,12))
-
-$(eval $(call KMOD_template,OCF_HIFN,ocf-hifn,\
- ${MODULES_DIR}/kernel/crypto/ocf/hifn/hifn7751 \
-,12))
-
-$(eval $(call KMOD_template,OCF_TALITOS,ocf-talitos,\
- ${MODULES_DIR}/kernel/crypto/ocf/talitos/talitos \
-,12))
-
-#
-# Filesystems
-#
-
-#$(eval $(call KMOD_template,AUFS_FS,aufs-fs,\
- $(MODULES_DIR)/kernel/fs/aufs/aufs \
-,30))
-
-$(eval $(call KMOD_template,CIFS,cifs,\
- $(MODULES_DIR)/kernel/fs/cifs/cifs \
-,30))
-
-$(eval $(call KMOD_template,CODA_FS,coda-fs,\
- $(MODULES_DIR)/kernel/fs/coda/coda \
-,30))
-
-$(eval $(call KMOD_template,EXT2_FS,ext2-fs,\
- $(MODULES_DIR)/kernel/fs/ext2/ext2 \
-,30))
-
-$(eval $(call KMOD_template,FS_MBCACHE,fs-mbcache,\
- $(MODULES_DIR)/kernel/fs/mbcache \
-,20))
-
-$(eval $(call KMOD_template,EXT3_FS,ext3-fs,\
- $(MODULES_DIR)/kernel/fs/jbd/jbd \
- $(MODULES_DIR)/kernel/fs/ext3/ext3 \
-,30))
-
-$(eval $(call KMOD_template,JBD2,jbd2,\
- $(MODULES_DIR)/kernel/fs/jbd2/jbd2 \
-,29))
-
-$(eval $(call KMOD_template,EXT4_FS,ext4-fs,\
- $(MODULES_DIR)/kernel/fs/ext4/ext4 \
-,30))
-
-$(eval $(call KMOD_template,FUSE_FS,fuse-fs,\
- $(MODULES_DIR)/kernel/fs/fuse/fuse \
-,30))
-
-$(eval $(call KMOD_template,HFSPLUS_FS,hfsplus-fs,\
- $(MODULES_DIR)/kernel/fs/hfsplus/hfsplus \
-,30))
-
-$(eval $(call KMOD_template,SUNRPC,sunrpc,\
- $(MODULES_DIR)/kernel/net/sunrpc/sunrpc \
-,24))
-
-$(eval $(call KMOD_template,SUNRPC_GSS,sunrpc-gss,\
- $(MODULES_DIR)/kernel/lib/oid_registry \
- $(MODULES_DIR)/kernel/net/sunrpc/auth_gss/auth_rpcgss \
-,25))
-
-$(eval $(call KMOD_template,RPCSEC_GSS_KRB5,rpcsec-gss-krb5,\
- $(MODULES_DIR)/kernel/net/sunrpc/auth_gss/rpcsec_gss_krb5 \
-,26))
-
-$(eval $(call KMOD_template,LOCKD,lockd,\
- $(foreach mod, $(LOCKD),$(MODULES_DIR)/kernel/$(mod)) \
-,27))
-
-ifneq ($(ADK_KERNEL_NFS_FS),y)
-$(eval $(call KMOD_template,NFS_FS,nfs-fs,\
- $(MODULES_DIR)/kernel/fs/nfs/nfs \
-,30, kmod-sunrpc))
-endif
-
-$(eval $(call KMOD_template,NFSD,nfsd,\
- $(MODULES_DIR)/kernel/fs/nfsd/nfsd \
-,30, kmod-sunrpc kmod-lockd))
-
-$(eval $(call KMOD_template,NTFS_FS,ntfs-fs,\
- $(MODULES_DIR)/kernel/fs/ntfs/ntfs \
-,30))
-
-$(eval $(call KMOD_template,VFAT_FS,vfat-fs,\
- $(MODULES_DIR)/kernel/fs/fat/fat \
- $(MODULES_DIR)/kernel/fs/fat/vfat \
-,30))
-
-$(eval $(call KMOD_template,XFS_FS,xfs-fs,\
- $(MODULES_DIR)/kernel/fs/xfs/xfs \
-,30))
-
-$(eval $(call KMOD_template,BTRFS_FS,btrfs-fs,\
- $(MODULES_DIR)/kernel/fs/btrfs/btrfs \
-,30, kmod-raid6-pq kmod-xor-blocks))
-
-$(eval $(call KMOD_template,YAFFS_FS,yaffs-fs,\
- $(MODULES_DIR)/kernel/fs/yaffs2/yaffs \
-,30))
-
-$(eval $(call KMOD_template,REISERFS_FS,reiserfs-fs,\
- $(MODULES_DIR)/kernel/fs/reiserfs/reiserfs \
-,30))
-
-$(eval $(call KMOD_template,ISO9660_FS,iso9660-fs,\
- $(MODULES_DIR)/kernel/fs/isofs/isofs \
-,30))
-
-$(eval $(call KMOD_template,UDF_FS,udf-fs,\
- $(MODULES_DIR)/kernel/fs/udf/udf \
-,30))
-
-#
-# Multimedia
-#
-
-$(eval $(call KMOD_template,USB_VIDEO_CLASS,usb-video-class,\
- $(MODULES_DIR)/kernel/drivers/media/usb/uvc/uvcvideo \
-,70))
-
-$(eval $(call KMOD_template,USB_GSPCA,usb-gspca,\
- $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_main \
-,75))
-
-$(eval $(call KMOD_template,USB_GSPCA_PAC207,usb-gspca-pac207,\
- $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_pac207 \
-,80))
-
-$(eval $(call KMOD_template,USB_GSPCA_PAC7311,usb-gspca-pac7311,\
- $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_pac7311 \
-,80))
-
-$(eval $(call KMOD_template,USB_GSPCA_SPCA561,usb-gspca-spca561,\
- $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_spca561 \
-,80))
-
-$(eval $(call KMOD_template,USB_PWC,usb-pwc,\
- $(MODULES_DIR)/kernel/drivers/media/usb/pwc/pwc \
-,80))
-
-#
-# PCMCIA/CardBus
-#
-
-$(eval $(call KMOD_template,PCCARD,pccard,\
- $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_core \
-,40))
-
-$(eval $(call KMOD_template,YENTA,yenta,\
- $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_rsrc \
- $(MODULES_DIR)/kernel/drivers/pcmcia/yenta_socket \
-,50))
-
-$(eval $(call KMOD_template,PCMCIA,pcmcia,\
- $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia \
-,60))
-
-$(eval $(call KMOD_template,SERIAL_8250_CS,serial-8250-cs,\
- $(MODULES_DIR)/kernel/drivers/tty/serial/8250/serial_cs \
-,70))
-
-#
-# Input
-#
-
-$(eval $(call KMOD_template,KEYBOARD_ATKBD,keyboard-atkbd,\
- $(MODULES_DIR)/kernel/drivers/input/keyboard/atkbd \
-,45))
-
-$(eval $(call KMOD_template,INPUT_MOUSEDEV,input-mousedev,\
- $(MODULES_DIR)/kernel/drivers/input/mousedev \
-,45))
-
-$(eval $(call KMOD_template,INPUT_EVDEV,input-evdev,\
- $(MODULES_DIR)/kernel/drivers/input/evdev \
-,45))
-
-#
-# USB
-#
-$(eval $(call KMOD_template,USB,usb,\
- $(foreach mod, $(USBMODULES),$(MODULES_DIR)/kernel/$(mod)) \
-,50))
-
-$(eval $(call KMOD_template,USB_EHCI_HCD,usb-ehci-hcd,\
- $(MODULES_DIR)/kernel/drivers/usb/host/ehci-hcd \
-,55))
-
-$(eval $(call KMOD_template,USB_MXS_PHY,usb-mxs-phy,\
- $(MODULES_DIR)/kernel/drivers/usb/phy/phy-mxs-usb \
-,56))
-
-$(eval $(call KMOD_template,USB_GADGET,usb-gadget,\
- $(MODULES_DIR)/kernel/drivers/usb/$(USBUDC)/udc-core \
-,57))
-
-$(eval $(call KMOD_template,USB_CHIPIDEA,ci-hdrc,\
- $(MODULES_DIR)/kernel/drivers/usb/chipidea/ci_hdrc \
- $(MODULES_DIR)/kernel/drivers/usb/chipidea/usbmisc_imx \
- $(MODULES_DIR)/kernel/drivers/usb/chipidea/ci_hdrc_imx \
-,58, kmod-usb-gadget kmod-usb-mxs-phy))
-
-$(eval $(call KMOD_template,USB_OHCI_HCD,usb-ohci-hcd,\
- $(MODULES_DIR)/kernel/drivers/usb/host/ohci-hcd \
-,60))
-
-$(eval $(call KMOD_template,USB_UHCI_HCD,usb-uhci-hcd,\
- $(MODULES_DIR)/kernel/drivers/usb/host/uhci-hcd \
-,60))
-
-$(eval $(call KMOD_template,USB_ACM,usb-acm,\
- $(MODULES_DIR)/kernel/drivers/usb/class/cdc-acm \
-,70))
-
-$(eval $(call KMOD_template,USB_HID,usb-hid,\
- $(MODULES_DIR)/kernel/drivers/hid/usbhid/usbhid \
-,70))
-
-$(eval $(call KMOD_template,USB_PRINTER,usb-printer,\
- $(MODULES_DIR)/kernel/drivers/usb/class/usblp \
-,70))
-
-$(eval $(call KMOD_template,USB_SERIAL,usb-serial,\
- $(MODULES_DIR)/kernel/drivers/usb/serial/usbserial \
-,70))
-
-$(eval $(call KMOD_template,USB_SERIAL_SIERRAWIRELESS,usb-serial-sierrawireless,\
- $(MODULES_DIR)/kernel/drivers/usb/serial/sierra \
-,71))
-
-$(eval $(call KMOD_template,USB_SERIAL_BELKIN,usb-serial-belkin,\
- $(MODULES_DIR)/kernel/drivers/usb/serial/belkin_sa \
-,71))
-
-$(eval $(call KMOD_template,USB_SERIAL_FTDI_SIO,usb-serial-ftdi-sio,\
- $(MODULES_DIR)/kernel/drivers/usb/serial/ftdi_sio \
-,71))
-
-$(eval $(call KMOD_template,USB_SERIAL_MCT_U232,usb-serial-mct-u232,\
- $(MODULES_DIR)/kernel/drivers/usb/serial/mct_u232 \
-,71))
-
-$(eval $(call KMOD_template,USB_SERIAL_PL2303,usb-serial-pl2303,\
- $(MODULES_DIR)/kernel/drivers/usb/serial/pl2303 \
-,71))
-
-$(eval $(call KMOD_template,USB_SERIAL_VISOR,usb-serial-visor,\
- $(MODULES_DIR)/kernel/drivers/usb/serial/visor \
-,71))
-
-$(eval $(call KMOD_template,USB_STORAGE,usb-storage,\
- $(MODULES_DIR)/kernel/drivers/usb/storage/usb-storage \
-,75))
-
-$(eval $(call KMOD_template,USB_USBNET,usb-usbnet,\
- $(MODULES_DIR)/kernel/drivers/net/usb/usbnet \
-,74))
-
-$(eval $(call KMOD_template,USB_PEGASUS,usb-pegasus,\
- $(MODULES_DIR)/kernel/drivers/net/usb/pegasus \
-,75))
-
-$(eval $(call KMOD_template,USB_SIERRA_NET,usb-sierra-net,\
- $(MODULES_DIR)/kernel/drivers/net/usb/sierra_net \
-,75,kmod-usb-usbnet))
-
-$(eval $(call KMOD_template,USB_NET_QMI_WWAN,usb-net-qmi-wwan,\
- $(MODULES_DIR)/kernel/drivers/usb/class/cdc-wdm \
- $(MODULES_DIR)/kernel/drivers/net/usb/qmi_wwan \
-,75,kmod-usb-usbnet))
-
-$(eval $(call KMOD_template,USB_HSO,usb-hso,\
- $(MODULES_DIR)/kernel/drivers/net/usb/hso \
-,75))
-
-$(eval $(call KMOD_template,SND_USB_AUDIO,snd-usb-audio,\
- $(MODULES_DIR)/kernel/sound/usb/snd-usbmidi-lib \
- $(MODULES_DIR)/kernel/sound/usb/snd-usb-audio \
-,75))
-
-#
-# Bluetooth
-#
-
-$(eval $(call KMOD_template,IEEE802154_6LOWPAN,ieee802154_6lowpan,\
- $(MODULES_DIR)/kernel/net/ieee802154/6lowpan_iphc \
-,65))
-
-$(eval $(call KMOD_template,BT,bt,\
- $(MODULES_DIR)/kernel/net/bluetooth/bluetooth \
-,70))
-
-$(eval $(call KMOD_template,BT_HCIBCM203X,bt-hcibcm203x,\
- $(MODULES_DIR)/kernel/drivers/bluetooth/bcm203x \
-,75))
-
-$(eval $(call KMOD_template,BT_HCIBTUSB,bt-hcibtusb,\
- $(MODULES_DIR)/kernel/drivers/bluetooth/btusb \
-,76))
-
-$(eval $(call KMOD_template,BT_HCIBTSDIO,bt-hcibtsdio,\
- $(MODULES_DIR)/kernel/drivers/bluetooth/btsdio \
-,76))
-
-$(eval $(call KMOD_template,BT_MRVL,bt-mrvl,\
- $(MODULES_DIR)/kernel/drivers/bluetooth/btmrvl \
-,77))
-
-$(eval $(call KMOD_template,BT_MRVL_SDIO,bt-mrvl-sdio,\
- $(MODULES_DIR)/kernel/drivers/bluetooth/btmrvl_sdio \
-,78))
-
-$(eval $(call KMOD_template,BT_HCIUART,bt-hciuart,\
- $(MODULES_DIR)/kernel/drivers/bluetooth/hci_uart \
-,75))
-
-#$(eval $(call KMOD_template,BT_L2CAP,bt-l2cap,\
- $(MODULES_DIR)/kernel/net/bluetooth/l2cap \
-,80))
-
-#$(eval $(call KMOD_template,BT_SCO,bt-sco,\
- $(MODULES_DIR)/kernel/net/bluetooth/sco \
-,85))
-
-$(eval $(call KMOD_template,BT_BNEP,bt-bnep,\
- $(MODULES_DIR)/kernel/net/bluetooth/bnep/bnep \
-,85))
-
-$(eval $(call KMOD_template,BT_RFCOMM,bt-rfcomm,\
- $(MODULES_DIR)/kernel/net/bluetooth/rfcomm/rfcomm \
-,85))
-
-#
-# Misc devices
-#
-
-$(eval $(call KMOD_template,SOFT_WATCHDOG,soft-watchdog,\
- $(MODULES_DIR)/kernel/drivers/watchdog/softdog \
-,95))
-
-$(eval $(call KMOD_template,FW_LOADER,fw-loader,\
- $(MODULES_DIR)/kernel/drivers/base/firmware_class \
-,01))
-
-$(eval $(call KMOD_template,EEPROM_93CX6,eeprom-93cx6,\
- $(MODULES_DIR)/kernel/drivers/misc/eeprom/eeprom_93cx6 \
-,05))
-
-$(eval $(call KMOD_template,LEDS_CLASS,leds-class,\
- $(MODULES_DIR)/kernel/drivers/leds/led-class \
-,05))
-
-$(eval $(call KMOD_template,LEDS_ALIX2,leds-alix2,\
- $(MODULES_DIR)/kernel/drivers/leds/leds-alix2 \
-,10))
-
-$(eval $(call KMOD_template,LEDS_TRIGGER_TIMER,leds-trigger-timer,\
- $(MODULES_DIR)/kernel/drivers/leds/trigger/ledtrig-timer \
-,20))
-
-$(eval $(call KMOD_template,LEDS_TRIGGER_HEARTBEAT,leds-trigger-heartbeat,\
- $(MODULES_DIR)/kernel/drivers/leds/trigger/ledtrig-heartbeat \
-,20))
-
-$(eval $(call KMOD_template,LEDS_TRIGGER_DEFAULT_ON,leds-trigger-default-on,\
- $(MODULES_DIR)/kernel/drivers/leds/trigger/ledtrig-default-on \
-,20))
-
-$(eval $(call KMOD_template,NETFILTER_XT_TARGET_LED,netfilter-xt-target-led,\
- $(MODULES_DIR)/kernel/net/netfilter/xt_LED \
-,90))
-
-#
-# NLS
-#
-
-$(eval $(call KMOD_template,NLS,nls,\
- $(MODULES_DIR)/kernel/fs/nls/nls_base \
-,10))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_437,nls-codepage-437,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp437 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_737,nls-codepage-737,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp737 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_775,nls-codepage-775,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp775 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_850,nls-codepage-850,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp850 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_852,nls-codepage-852,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp852 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_857,nls-codepage-857,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp857 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_860,nls-codepage-860,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp860 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_861,nls-codepage-861,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp861 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_862,nls-codepage-862,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp862 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_863,nls-codepage-863,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp863 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_864,nls-codepage-864,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp864 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_865,nls-codepage-865,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp865 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_866,nls-codepage-866,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp866 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_869,nls-codepage-869,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp869 \
-,20))
-
-NLS_CODEPAGE_874_MODULES := fs/nls/nls_cp874
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_874,nls-codepage-874,\
- $(foreach mod,$(NLS_CODEPAGE_874_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
-,20))
-
-NLS_CODEPAGE_932_MODULES := fs/nls/nls_cp932
-NLS_CODEPAGE_932_MODULES += fs/nls/nls_euc-jp
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_932,nls-codepage-932,\
- $(foreach mod,$(NLS_CODEPAGE_932_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
-,20))
-
-NLS_CODEPAGE_936_MODULES := fs/nls/nls_cp936
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_936,nls-codepage-936,\
- $(foreach mod,$(NLS_CODEPAGE_936_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
-,20))
-
-NLS_CODEPAGE_949_MODULES := fs/nls/nls_cp949
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_949,nls-codepage-949,\
- $(foreach mod,$(NLS_CODEPAGE_949_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
-,20))
-
-NLS_CODEPAGE_950_MODULES := fs/nls/nls_cp950
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_950,nls-codepage-950,\
- $(foreach mod,$(NLS_CODEPAGE_950_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_1250,nls-codepage-1250,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp1250 \
-,20))
-
-$(eval $(call KMOD_template,NLS_CODEPAGE_1251,nls-codepage-1251,\
- $(MODULES_DIR)/kernel/fs/nls/nls_cp1251 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ASCII,nls-ascii, \
- $(MODULES_DIR)/kernel/fs/nls/nls_ascii \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_1,nls-iso8859-1, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-1 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_2,nls-iso8859-2, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-2 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_3,nls-iso8859-3, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-3 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_4,nls-iso8859-4, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-4 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_5,nls-iso8859-5, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-5 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_6,nls-iso8859-6, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-6 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_7,nls-iso8859-7, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-7 \
-,20))
-
-NLS_ISO8859_8_MODULES := fs/nls/nls_cp1255
-
-$(eval $(call KMOD_template,NLS_ISO8859_8,nls-iso8859-8, \
- $(foreach mod,$(NLS_ISO8859_8_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_9,nls-iso8859-9, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-9 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_13,nls-iso8859-13, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-13 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_14,nls-iso8859-14, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-14 \
-,20))
-
-$(eval $(call KMOD_template,NLS_ISO8859_15,nls-iso8859-15, \
- $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-15 \
-,20))
-
-$(eval $(call KMOD_template,NLS_KOI8_R,nls-koi8-r, \
- $(MODULES_DIR)/kernel/fs/nls/nls_koi8-r \
-,20))
-
-$(eval $(call KMOD_template,NLS_KOI8_U,nls-koi8-u, \
- $(MODULES_DIR)/kernel/fs/nls/nls_koi8-u \
- $(MODULES_DIR)/kernel/fs/nls/nls_koi8-ru \
-,20))
-
-$(eval $(call KMOD_template,NLS_UTF8,nls-utf8, \
- $(MODULES_DIR)/kernel/fs/nls/nls_utf8 \
-,20))
-
-#
-# ISDN
-#
-
-ISDN_MODULES=drivers/isdn/i4l/isdn
-
-$(eval $(call KMOD_template,ISDN,isdn, \
- $(foreach mod,$(ISDN_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
-,60))
-
-$(eval $(call KMOD_template,ISDN_CAPI,isdn-capi, \
- $(MODULES_DIR)/kernel/drivers/isdn/capi/kernelcapi \
- $(MODULES_DIR)/kernel/drivers/isdn/capi/capi \
-,60))
-
-
-$(eval $(call KMOD_template,SLHC,slhc, \
- $(MODULES_DIR)/kernel/$(SLHC) \
-,65))
-
-$(eval $(call KMOD_template,HISAX,hisax, \
- $(MODULES_DIR)/kernel/drivers/isdn/hisax/hisax \
-,70))
-
-MISDN_MODULES=drivers/isdn/hardware/mISDN/mISDN_core
-MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_l1
-MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_l2
-MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_dsp
-MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_dtmf
-MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_isac
-MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_x25dte
-MISDN_MODULES+=drivers/isdn/hardware/mISDN/l3udss1
-
-$(eval $(call KMOD_template,MISDN_DRV,misdn-drv, \
- $(foreach mod, $(MISDN_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
-,75))
-
-$(eval $(call KMOD_template,MISDN_AVM_FRITZ,misdn-avm-fritz, \
- $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/avmfritz \
-,80))
-
-$(eval $(call KMOD_template,MISDN_HFCPCI,misdn-hfcpci, \
- $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/hfcpci \
-,80))
-
-$(eval $(call KMOD_template,MISDN_HFCMULTI,misdn-hfcmulti, \
- $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/hfcmulti \
-,80))
-
-$(eval $(call KMOD_template,MISDN_HFCMINI,misdn-hfcmini, \
- $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/hfcsmini \
-,80))
-
-$(eval $(call KMOD_template,MISDN_XHFC,misdn-xhfc, \
- $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/xhfc \
-,80))
-
-$(eval $(call KMOD_template,MISDN_SPEEDFAX,misdn-speedfax, \
- $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/sedlfax \
-,80))
-
-#
-# Library modules
-#
-
-$(eval $(call KMOD_template,CRC_CCITT,crc-ccitt, \
- $(MODULES_DIR)/kernel/lib/crc-ccitt \
-,01))
-
-$(eval $(call KMOD_template,CRC_ITU_T,crc-itu-t, \
- $(MODULES_DIR)/kernel/lib/crc-itu-t \
-,01))
-
-$(eval $(call KMOD_template,CRC16,crc16, \
- $(MODULES_DIR)/kernel/lib/crc16 \
-,01))
-
-$(eval $(call KMOD_template,LIBCRC32C,libcrc32c, \
- $(MODULES_DIR)/kernel/lib/libcrc32c \
-,01))
-
-#
-# parallel port support
-#
-
-$(eval $(call KMOD_template,LP,lp,\
- $(MODULES_DIR)/kernel/drivers/char/lp \
-,60))
-
-$(eval $(call KMOD_template,PPDEV,ppdev,\
- $(MODULES_DIR)/kernel/drivers/char/ppdev \
-,60))
-
-$(eval $(call KMOD_template,PARPORT,parport,\
- $(MODULES_DIR)/kernel/drivers/parport/parport \
-,50))
-
-$(eval $(call KMOD_template,PARPORT_PC,parport-pc,\
- $(MODULES_DIR)/kernel/drivers/parport/parport_pc \
-,55))
-
-$(eval $(call KMOD_template,PLIP,plip,\
- $(MODULES_DIR)/kernel/drivers/net/plip/plip \
-,60))
-
-#
-# Profiling
-#
-
-$(eval $(call KMOD_template,OPROFILE,oprofile,\
- $(MODULES_DIR)/kernel/arch/$(ADK_TARGET_ARCH)/oprofile/oprofile \
-,10))
-
-#
-# SPI
-#
-
-$(eval $(call KMOD_template,SPI_BITBANG,spi-bitbang,\
- $(MODULES_DIR)/kernel/drivers/spi/spi-bitbang \
-,20))
-
-$(eval $(call KMOD_template,SPI_IMX,spi-imx,\
- $(MODULES_DIR)/kernel/drivers/spi/spi-imx \
-,25))
-
-#
-# I2C
-#
-
-$(eval $(call KMOD_template,I2C_DEV,i2c-dev,\
- $(MODULES_DIR)/kernel/drivers/i2c/i2c-dev \
-,20))
-
-$(eval $(call KMOD_template,I2C_IMX,i2c-imx,\
- $(MODULES_DIR)/kernel/drivers/i2c/busses/i2c-imx \
-,25))
-
-$(eval $(call KMOD_template,SCX200_ACB,scx200-acb,\
- $(MODULES_DIR)/kernel/drivers/i2c/busses/scx200_acb \
-,25))
-
-#
-# VirtIO
-#
-
-$(eval $(call KMOD_template,VIRTIO_BLK,virtio-block,\
- $(MODULES_DIR)/kernel/drivers/block/virtio_blk \
-,20))
-
-$(eval $(call KMOD_template,VIRTIO_NET,virtio-net,\
- $(MODULES_DIR)/kernel/drivers/net/virtio_net \
-,40))
-
-#
-# Lib
-#
-
-$(eval $(call KMOD_template,ZLIB_DEFLATE,zlib-deflate,\
- $(MODULES_DIR)/kernel/lib/zlib_deflate/zlib_deflate \
-,01))
-
-$(eval $(call KMOD_template,ZLIB_INFLATE,zlib-inflate,\
- $(MODULES_DIR)/kernel/lib/zlib_inflate/zlib_inflate \
-,01))
-
-$(eval $(call KMOD_template,LZO_COMPRESS,lzo-compress,\
- $(MODULES_DIR)/kernel/lib/lzo/lzo_compress \
-,01))
-
-$(eval $(call KMOD_template,LZO_DECOMPRESS,lzo-decompress,\
- $(MODULES_DIR)/kernel/lib/lzo/lzo_decompress \
-,01))
-
-#
-# DRM
-#
-
-$(eval $(call KMOD_template,DRM_DW_HDMI_AUDIO,drm-dw-hdmi-audio,\
- $(MODULES_DIR)/kernel/drivers/staging/imx-drm/dw-hdmi-audio \
-,75))
-
-$(eval $(call KMOD_template,DRM_DW_HDMI_CEC,drm-dw-hdmi-cec,\
- $(MODULES_DIR)/kernel/drivers/cec/cec-dev \
- $(MODULES_DIR)/kernel/drivers/staging/imx-drm/dw-hdmi-cec \
-,75))
-
-#
-# Sound
-#
-
-$(eval $(call KMOD_template,SND_SOC_WM8731,snd-soc-wm8731,\
- $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-wm8731 \
-,55))
-
-$(eval $(call KMOD_template,SND_SOC_WM8804,snd-soc-wm8804,\
- $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-wm8804 \
-,55))
-
-$(eval $(call KMOD_template,SND_SOC_PCM5102A,snd-soc-pcm5102a,\
- $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-pcm5102a \
-,55))
-
-$(eval $(call KMOD_template,SND_SOC_PCM512x,snd-soc-pcm512x,\
- $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-pcm512x \
-,55))
-
-$(eval $(call KMOD_template,SND_SOC_PCM512x_I2C,snd-soc-pcm512x-i2c,\
- $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-pcm512x-i2c \
-,56))
-
-$(eval $(call KMOD_template,SND_SOC_PCM512x_SPI,snd-soc-pcm512x-spi,\
- $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-pcm512x-spi \
-,56))
-
-$(eval $(call KMOD_template,SND_BCM2708_SOC_I2S,snd-bcm2708-soc-i2s,\
- $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-bcm2708-i2s \
-,60, kmod-snd-soc))
-
-$(eval $(call KMOD_template,SND_BCM2708_SOC_HIFIBERRY_DAC,snd-bcm2708-soc-hifiberry-dac,\
- $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-hifiberry-dac \
-,65, kmod-snd-bcm2708-soc-i2s))
-
-$(eval $(call KMOD_template,SND_BCM2708_SOC_HIFIBERRY_DIGI,snd-bcm2708-soc-hifiberry-digi,\
- $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-hifiberry-digi \
-,65, kmod-snd-bcm2708-soc-i2s))
-
-$(eval $(call KMOD_template,SND_BCM2708_SOC_RPI_DAC,snd-bcm2708-soc-rpi-dac,\
- $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-rpi-dac \
-,65, kmod-snd-bcm2708-soc-i2s))
-
-$(eval $(call KMOD_template,SND_BCM2708_SOC_IQAUDIO_DAC,snd-bcm2708-soc-iqaudio-dac,\
- $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-iqaudio-dac \
-,65, kmod-snd-bcm2708-soc-i2s))
-
-$(eval $(call KMOD_template,SND_BCM2708_SOC_RPI_PROTO,snd-bcm2708-soc-rpi-proto,\
- $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-rpi-proto \
-,65, kmod-snd-bcm2708-soc-i2s))
-
-#
-# Multimedia
-#
-$(eval $(call KMOD_template,RC_CORE,rc-core,\
- $(MODULES_DIR)/kernel/drivers/media/rc/rc-core \
-,55))
-
-$(eval $(call KMOD_template,DVB_CORE,dvb-core,\
- $(MODULES_DIR)/kernel/drivers/media/v4l2-core/videodev \
- $(MODULES_DIR)/kernel/drivers/media/v4l2-core/v4l2-common \
- $(MODULES_DIR)/kernel/drivers/media/v4l2-core/tuner \
- $(MODULES_DIR)/kernel/drivers/media/v4l2-core/v4l2-dv-timings \
- $(MODULES_DIR)/kernel/drivers/media/v4l2-core/videobuf-core \
- $(MODULES_DIR)/kernel/drivers/media/v4l2-core/videobuf-vmalloc \
- $(MODULES_DIR)/kernel/drivers/media/common/cx2341x \
- $(MODULES_DIR)/kernel/drivers/media/common/tveeprom \
- $(MODULES_DIR)/kernel/drivers/media/dvb-core/dvb-core \
- $(MODULES_DIR)/kernel/drivers/media/v4l2-core/videobuf-dvb \
-,60))
-
-$(eval $(call KMOD_template,VIDEO_CX231XX,video-cx231xx,\
- $(MODULES_DIR)/kernel/drivers/media/tuners/tda18271 \
- $(MODULES_DIR)/kernel/drivers/media/dvb-frontends/si2165 \
- $(MODULES_DIR)/kernel/drivers/media/i2c/cx25840/cx25840 \
- $(MODULES_DIR)/kernel/drivers/media/usb/cx231xx/cx231xx \
- $(MODULES_DIR)/kernel/drivers/media/usb/cx231xx/cx231xx-dvb \
-,70, dvb-core))
-
-$(eval $(call KMOD_template,VIDEO_PVRUSB2,video-pvrusb2,\
- $(MODULES_DIR)/kernel/drivers/media/usb/pvrusb2/pvrusb2 \
-,70, dvb-core))
diff --git a/package/glibc/Makefile b/package/glibc/Makefile
index 4d5190930..815152a72 100644
--- a/package/glibc/Makefile
+++ b/package/glibc/Makefile
@@ -91,7 +91,7 @@ endif
done
# header package
${KERNEL_MAKE_ENV} \
- $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)-$(KERNEL_RELEASE)/linux-$(KERNEL_VERSION) \
+ $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)/linux-$(KERNEL_FILE_VER) \
$(KERNEL_MAKE_OPTS) \
INSTALL_HDR_PATH=$(IDIR_GLIBC_DEV)/usr \
headers_install
diff --git a/package/musl/Makefile b/package/musl/Makefile
index 76ad8690f..11ca1b8be 100644
--- a/package/musl/Makefile
+++ b/package/musl/Makefile
@@ -71,7 +71,7 @@ musl-dev-install:
${INSTALL_DIR} ${IDIR_MUSL_DEV}/usr/lib
${CP} ${STAGING_TARGET_DIR}/usr/lib/crt*.o ${IDIR_MUSL_DEV}/usr/lib
${KERNEL_MAKE_ENV} \
- $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)-$(KERNEL_RELEASE)/linux-$(KERNEL_VERSION) \
+ $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)/linux-$(KERNEL_FILE_VER) \
$(KERNEL_MAKE_OPTS) \
INSTALL_HDR_PATH=$(IDIR_MUSL_DEV)/usr \
headers_install
diff --git a/package/uclibc-ng/Makefile b/package/uclibc-ng/Makefile
index 1306a23b1..e05aae22e 100644
--- a/package/uclibc-ng/Makefile
+++ b/package/uclibc-ng/Makefile
@@ -68,7 +68,7 @@ uclibc-ng-dev-install:
cd $(IDIR_UCLIBC_NG_DEV)/$(ADK_TARGET_LIBC_PATH); ln -sf $$file-$(PKG_VER).so $$file.so; \
done
${KERNEL_MAKE_ENV} \
- $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)-$(KERNEL_RELEASE)/linux-$(KERNEL_VERSION) \
+ $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)/linux-$(KERNEL_FILE_VER) \
$(KERNEL_MAKE_OPTS) \
INSTALL_HDR_PATH=$(IDIR_UCLIBC_NG_DEV)/usr \
headers_install
diff --git a/package/uclibc/Makefile b/package/uclibc/Makefile
index c148a19d8..5be4c3a5d 100644
--- a/package/uclibc/Makefile
+++ b/package/uclibc/Makefile
@@ -57,7 +57,7 @@ uclibc-dev-install:
cd $(IDIR_UCLIBC_DEV)/$(ADK_TARGET_LIBC_PATH); ln -sf $$file-$(PKG_VERSION).so $$file.so; \
done
${KERNEL_MAKE_ENV} \
- $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)-$(KERNEL_RELEASE)/linux-$(KERNEL_VERSION) \
+ $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)/linux-$(KERNEL_FILE_VER) \
$(KERNEL_MAKE_OPTS) \
INSTALL_HDR_PATH=$(IDIR_UCLIBC_DEV)/usr \
headers_install
diff --git a/scripts/make-module-ipkgs.sh b/scripts/make-module-ipkgs.sh
new file mode 100644
index 000000000..3ab0dc787
--- /dev/null
+++ b/scripts/make-module-ipkgs.sh
@@ -0,0 +1,100 @@
+#!/usr/bin/env bash
+#
+# make-module-ipkgs.sh - scan through modules directory and create a package
+# for each of them automatically.
+#
+# Copyright (C) 2015 - Phil Sutter <phil@nwl.cc>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+#
+# Usage:
+# $0 <ARCH> <KERNEL_VERSION> <LINUX_BUILD_DIR> <pkg-build-cmd> <PACKAGE_DIR>
+
+ARCH="$1"
+VER="$2"
+BUILD_DIR="$3"
+PKG_BUILD="$4"
+PACKAGE_DIR="$5"
+
+declare -A modpaths moddeps modlevels
+
+# recursively find a level for given module which is high enough so all
+# dependencies are in a lower level
+find_modlevel() { # (modname)
+ local level=0
+ for dep in ${moddeps[$1]}; do
+ [[ -n "${modlevels[$dep]}" ]] || find_modlevel $dep
+ [[ ${modlevels[$dep]} -lt $level ]] || level=$((modlevels[$dep] + 1))
+ done
+ modlevels[$1]=$level
+}
+
+# sanitize modname, ipkg does not allow uppercase or underscores
+pkgname() { # (modname)
+ tr 'A-Z_' 'a-z-' <<< "kmod-$1"
+}
+
+for modpath in $(find ${BUILD_DIR}/modules -name \*.ko | xargs); do
+ modname="$(basename $modpath .ko)"
+ moddep="$(modinfo $modpath | awk '/^depends:/{print $2}' | sed 's/,/ /g')"
+ modpaths[$modname]="$modpath"
+ moddeps[$modname]="$moddep"
+done
+
+#echo "modpaths:"
+#for modname in ${!modpaths[@]}; do
+# echo "$modname: ${modpaths[$modname]}"
+#done
+#echo
+#echo "moddeps:"
+#for modname in ${!moddeps[@]}; do
+# echo "$modname: ${moddeps[$modname]}"
+#done
+#echo
+
+for modname in ${!modpaths[@]}; do
+ find_modlevel $modname
+
+ ctrlfile=${BUILD_DIR}/kmod-control/kmod-${modname}.control
+ ipkgdir=${BUILD_DIR}/linux-modules/ipkg/$modname
+
+ cat >$ctrlfile <<-EOF
+ Package: $(pkgname $modname)
+ Priority: optional
+ Section: sys
+ Description: kernel module $modname
+ EOF
+ sh $(dirname $0)/make-ipkg-dir.sh $ipkgdir $ctrlfile $VER $ARCH
+
+ moddep="$(modinfo $modpath | awk '/^depends:/{print $2}' | sed 's/,/ /g')"
+ depline="kernel ($VER)"
+ for m in ${moddeps[$modname]}; do
+ depline+=", $(pkgname ${m})"
+ done
+ echo "Depends: $depline" >>${ipkgdir}/CONTROL/control
+ mkdir -p ${ipkgdir}/lib/modules/${VER}
+ cp ${modpaths[$modname]} ${ipkgdir}/lib/modules/${VER}
+ cat >${ipkgdir}/CONTROL/postinst <<EOF
+#!/bin/sh
+if [ -z \${IPKG_INSTROOT} ]; then
+ . /etc/functions.sh
+ load_modules /etc/modules.d/${modlevels[$modname]}-$modname
+fi
+EOF
+ chmod 0755 ${ipkgdir}/CONTROL/postinst
+ mkdir -p ${ipkgdir}/etc/modules.d
+ echo $modname >${ipkgdir}/etc/modules.d/${modlevels[$modname]}-$modname
+ env ${PKG_BUILD} ${ipkgdir} ${PACKAGE_DIR} || exit 1
+done
diff --git a/target/aarch64/Makefile b/target/aarch64/Makefile
index f93987f5c..35c509400 100644
--- a/target/aarch64/Makefile
+++ b/target/aarch64/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/alpha/Makefile b/target/alpha/Makefile
index 8234f295f..6d6ae008c 100644
--- a/target/alpha/Makefile
+++ b/target/alpha/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/arc/Makefile b/target/arc/Makefile
index ebc17340e..03afae8f0 100644
--- a/target/arc/Makefile
+++ b/target/arc/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/arm/Makefile b/target/arm/Makefile
index 55baef940..e654bdd6e 100644
--- a/target/arm/Makefile
+++ b/target/arm/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/avr32/Makefile b/target/avr32/Makefile
index f277f3715..1f055993d 100644
--- a/target/avr32/Makefile
+++ b/target/avr32/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/bfin/Makefile b/target/bfin/Makefile
index d48354a10..a000c0f1b 100644
--- a/target/bfin/Makefile
+++ b/target/bfin/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/c6x/Makefile b/target/c6x/Makefile
index ebc17340e..03afae8f0 100644
--- a/target/c6x/Makefile
+++ b/target/c6x/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/cris/Makefile b/target/cris/Makefile
index d82b3b8a6..9512d530b 100644
--- a/target/cris/Makefile
+++ b/target/cris/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/h8300/Makefile b/target/h8300/Makefile
index bb63166fb..cc6ae80bf 100644
--- a/target/h8300/Makefile
+++ b/target/h8300/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/hppa/Makefile b/target/hppa/Makefile
index ebc17340e..03afae8f0 100644
--- a/target/hppa/Makefile
+++ b/target/hppa/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/m68k/Makefile b/target/m68k/Makefile
index 2d6e08d75..6066faf2d 100644
--- a/target/m68k/Makefile
+++ b/target/m68k/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/metag/Makefile b/target/metag/Makefile
index cf01e9304..10c89c16b 100644
--- a/target/metag/Makefile
+++ b/target/metag/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/microblaze/Makefile b/target/microblaze/Makefile
index efae2252e..8a31dbf26 100644
--- a/target/microblaze/Makefile
+++ b/target/microblaze/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/mips/Makefile b/target/mips/Makefile
index df15c79af..076e9aef7 100644
--- a/target/mips/Makefile
+++ b/target/mips/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/mips64/Makefile b/target/mips64/Makefile
index 5ea35f274..74d281434 100644
--- a/target/mips64/Makefile
+++ b/target/mips64/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/nios2/Makefile b/target/nios2/Makefile
index ebc17340e..03afae8f0 100644
--- a/target/nios2/Makefile
+++ b/target/nios2/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/or1k/Makefile b/target/or1k/Makefile
index ce4992aae..8b3caa379 100644
--- a/target/or1k/Makefile
+++ b/target/or1k/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/ppc/Makefile b/target/ppc/Makefile
index 2f9ed8bf1..7195753dc 100644
--- a/target/ppc/Makefile
+++ b/target/ppc/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/ppc64/Makefile b/target/ppc64/Makefile
index a554f994d..63975f543 100644
--- a/target/ppc64/Makefile
+++ b/target/ppc64/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/sh/Makefile b/target/sh/Makefile
index 27cc9696f..0056f7e49 100644
--- a/target/sh/Makefile
+++ b/target/sh/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/sparc/Makefile b/target/sparc/Makefile
index 5ace2f956..f84c7c88e 100644
--- a/target/sparc/Makefile
+++ b/target/sparc/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/sparc64/Makefile b/target/sparc64/Makefile
index 0b7754d46..7d52b3fca 100644
--- a/target/sparc64/Makefile
+++ b/target/sparc64/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/tile/Makefile b/target/tile/Makefile
index ebc17340e..03afae8f0 100644
--- a/target/tile/Makefile
+++ b/target/tile/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/x86/Makefile b/target/x86/Makefile
index 532896813..ba1961bca 100644
--- a/target/x86/Makefile
+++ b/target/x86/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/x86_64/Makefile b/target/x86_64/Makefile
index f90498fa5..8fa5b0ddf 100644
--- a/target/x86_64/Makefile
+++ b/target/x86_64/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/target/xtensa/Makefile b/target/xtensa/Makefile
index 756bb020f..f2bbb1c81 100644
--- a/target/xtensa/Makefile
+++ b/target/xtensa/Makefile
@@ -2,8 +2,6 @@
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
-include $(ADK_TOPDIR)/mk/kernel.mk
-include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 6ae226a45..d86e483f9 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -13,7 +13,7 @@ LINUX_DIR=${WRKBUILD}
include $(ADK_TOPDIR)/mk/kernel-vars.mk
-$(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION)/.patched:
+$(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_FILE_VER)/.patched:
ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_APU),y)
ifeq ($(ADK_KERNEL_ROOT_NFS),y)
cd $(DL_DIR) && wget http://distfiles.openadk.org/realtek-firmware-1.1.tar.xz
@@ -27,19 +27,19 @@ ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
endif
ifneq ($(ADK_DISABLE_KERNEL_PATCHES),y)
$(TRACE) kernel-patch
- $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
- $(ADK_TOPDIR)/target/linux/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
+ $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_FILE_VER) \
+ $(ADK_TOPDIR)/target/linux/patches/$(KERNEL_FILE_VER) *.patch $(MAKE_TRACE)
endif
ifneq ($(ADK_DISABLE_TARGET_KERNEL_PATCHES),y)
$(TRACE) kernel-target-patch
- $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
- $(ADK_TOPDIR)/target/$(ADK_TARGET_ARCH)/$(ADK_TARGET_BOARD)/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
- $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
- $(ADK_TOPDIR)/target/$(ADK_TARGET_ARCH)/$(ADK_TARGET_SYSTEM)/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
+ $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_FILE_VER) \
+ $(ADK_TOPDIR)/target/$(ADK_TARGET_ARCH)/$(ADK_TARGET_BOARD)/patches/$(KERNEL_FILE_VER) *.patch $(MAKE_TRACE)
+ $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_FILE_VER) \
+ $(ADK_TOPDIR)/target/$(ADK_TARGET_ARCH)/$(ADK_TARGET_SYSTEM)/patches/$(KERNEL_FILE_VER) *.patch $(MAKE_TRACE)
endif
touch $@
-$(WRKBUILD)/.headers: $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION)/.patched
+$(WRKBUILD)/.headers: $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_FILE_VER)/.patched
$(KERNEL_MAKE_ENV) $(MAKE) -C "${LINUX_DIR}" $(KERNEL_MAKE_OPTS) headers_check
$(KERNEL_MAKE_ENV) $(MAKE) -C "${LINUX_DIR}" $(KERNEL_MAKE_OPTS) \
INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)/usr \