I have a kernel module modA.ko that depends upon exported symbols.
exported_func1(void)
exported_func2(void)
And I have two other modules modB.ko and modC.ko that has the definitions for exported functions separately. Function signature is the same but functionality is different. Only one of the modB.ko or modC.ko is supposed to be loaded at the same time. Every time the kbuild determines that modA.ko is dependent on modB.ko. I don't want that. I want to dynamically load the appropriate modules before using modA.ko according to the need. Is there a way to force the kernel build system to not add dependencies just for this particular module.
I am using Buildroot to build the Linux image but no dependencies are defined in buildroot-config for these modules. In the Buildroot output/, both modB.ko and modC.ko have exported functions listed in the .symvers files.