kernel: lantiq: fix Module.symvers handling
authorMathias Kresin <dev@kresin.me>
Sun, 27 Dec 2020 20:59:28 +0000 (21:59 +0100)
committerMathias Kresin <dev@kresin.me>
Thu, 18 Feb 2021 07:43:08 +0000 (08:43 +0100)
commitd2d32dcd5f4bb2d028452419fb2e014b7b31a37a
tree0c333b5187ce634aa0137f58ad986b418bc0d5c7
parentba07cc0cbb3d486366e4ae3b79e69f972d8c2c5d
kernel: lantiq: fix Module.symvers handling

If an external module uses exported symbols from another external
module, Kbuild needs to have full knowledge of all symbols to
avoid spitting out warnings about undefined symbols.

Use PKG_EXTMOD_SUBDIRS to point to the build directory which contains
the Module.symvers.

Pass KERNEL_MAKE_FLAGS to the external module build, to inject
KBUILD_EXTRA_SYMBOLS. KBUILD_EXTRA_SYMBOLS holds a space separated list
of Module.symvers, which list all exported symbols.

Signed-off-by: Mathias Kresin <dev@kresin.me>
package/kernel/lantiq/ltq-adsl/Makefile
package/kernel/lantiq/ltq-atm/Makefile
package/kernel/lantiq/ltq-ifxos/Makefile
package/kernel/lantiq/ltq-ptm/Makefile
package/kernel/lantiq/ltq-tapi/Makefile
package/kernel/lantiq/ltq-vdsl-mei/Makefile
package/kernel/lantiq/ltq-vdsl/Makefile
package/kernel/lantiq/ltq-vmmc/Makefile