Files
meta-tegra/recipes-kernel
Alon Bar-Lev b57e183d66 nvidia-kernel-oot: support module symbol reuse
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>
2025-05-10 07:04:39 -07:00
..
2025-02-12 16:21:30 -08:00
2022-02-28 05:07:36 -08:00