Skip to contentSkip to conversation

Modpost errors building 3rd party kernel modules outside of the Yocto build

DISCUSSION John 1 participant 1 message Jun 19, 2025

lore
Share & tools
lore

John

author
#0 lore raw

I'm using Yocto scarthgap to build a system for the customer's ppc based platform. I have the yocto portion building all of their images. My next step was to take this resultant package and now use the kernel (Linux 6.6.53) along with it's Module.symvers file to build the customers modules used to access their platform's h/w.

In their Makefile for some of their kernel modules they have this variable:

Quoted 3 lines

KBUILD_EXTRA_SYMBOLS  = $(ARTIFACTS_ROOT)/yocto/kernel-api/Module.symvers

if I leave that in, I will get a flood of errors like the following:

Quoted 11 lines

ERROR: modpost: vmlinux: 'load_fp_state' exported twice. Previous export was in vmlinux
ERROR: modpost: vmlinux: 'store_fp_state' exported twice. Previous export was in vmlinux
ERROR: modpost: vmlinux: 'system_state' exported twice. Previous export was in vmlinux
ERROR: modpost: vmlinux: 'static_key_initialized' exported twice. Previous export was in vmlinux

I'm just starting to debug this and I'm wondering if there is anything that I should be looking at in the recipe for the linux kernel? I'm assuming this is actually a makefile issue on the 3rd party side and not a Yocto recipe mistake but I want to cover all my bases.

Any constructive opinions or advice is very much welcome.

Cheers!!