summaryrefslogtreecommitdiff
path: root/target
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 /target
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>
Diffstat (limited to 'target')
-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
26 files changed, 0 insertions, 52 deletions
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