Skip to content

Instantly share code, notes, and snippets.

@govorox
Last active October 13, 2021 11:59
Show Gist options
  • Save govorox/a0b7043ee51fe8a9e57a6164416fb1c1 to your computer and use it in GitHub Desktop.
Save govorox/a0b7043ee51fe8a9e57a6164416fb1c1 to your computer and use it in GitHub Desktop.
Yocto: building out of tree kernel module
When building an out-of-tree module (inherits module class in a recipe)
make sure to set CONFIG_TRIM_UNUSED_KSYMS=n in defconfig.
this affects Module.symvers in kernel build artifacts imported by the recipe
in order to ensure the symbols from other modules can be referenced correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment