Greetings.
I write modules for OpenWRT and got a problem in including kernel module into system image.
I have written two modules at the moment, included in one feed. One is kernel module and the other is LuCI module.
Both modules are seen in menuconfig and are built ok when I call make. LuCI module is ok, it's built and installed into image without problems. But the kernel module is built properly, but is not included in the system image.
I see the module is not presented in
build_dir/<target_build_root>linux-<architecture>/packages/ipkg-<architecture>
subdirectory of target. Instead, it is put in the feed's subdirectory
build_dir/<target_build_root>/$(PKG_SOURCE_SUBDIR)
I take it, this is the cause of the problem, it's not included in ipkg list for kernel modules.
My question is what should I set in my Makefile (maybe for PKG_SOURCE_SUBDIR) to include my module into the image? I could add ipkg directory to PKG_SOURCE_SUBDIR directly, but I'm not sure if this is right idea, all the more the path for ipkg contains architecture part and I don't want any hardcoded dependencies in Makefile.
