path: root/target/aarch64
diff options
authorWaldemar Brodkorb <>2015-08-03 11:45:08 (GMT)
committerWaldemar Brodkorb <>2015-08-03 12:13:17 (GMT)
commitc6a72670b54e13d3ab3a6056d7c4f4c503cf0d78 (patch)
tree51c776165e7abb4f1336a93edc519461786496fe /target/aarch64
parent6debfdc194f5192706120783d133fbb99271eccc (diff)
rework kernel module infrastructure
Instead of maintaining 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/ 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 === 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 <>
Diffstat (limited to 'target/aarch64')
1 files changed, 0 insertions, 2 deletions
diff --git a/target/aarch64/Makefile b/target/aarch64/Makefile
index f93987f..35c5094 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)/
-include $(ADK_TOPDIR)/mk/
-include $(ADK_TOPDIR)/mk/
include $(ADK_TOPDIR)/mk/
include $(ADK_TOPDIR)/mk/