mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-28 11:02:28 +00:00
The module media and other modules are reusable for other modules, the package
should expose symbols to other packages.
The module.bbclass expects kernel-module- prefix package name and matching
include directory to trigger the dependency mechanism.
python __anonymous () {
depends = d.getVar('DEPENDS')
extra_symbols = []
for dep in depends.split():
if dep.startswith("kernel-module-"):
extra_symbols.append("${STAGING_INCDIR}/" + dep + "/Module.symvers")
d.setVar('KBUILD_EXTRA_SYMBOLS', " ".join(extra_symbols))
}
Add:
1. kernel-module-nvidia-kernel-oot PROVIDES alias.
2. Symlink of /usr/include/kernel-module-nvidia-kernel-oot -> /usr/include/nvidia-kernel-oot
A module that requires these modules can use the standard dependency such as:
DEPENDS += "kernel-module-nvidia-kernel-oot"
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>