David Farrell
2010-02-19 13:53:55 UTC
After OpenWrt was built and installed I wanted to add my own program, ie compile "hello world" and run it. I created a make that points to ./kamikaze/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1 and uses mips-openwrt-linux-uclibc-gcc and other tools. All build, compile and run are fine.
Now I want to build a loadable kernel module. With a desktop this is easy obj-m += module.o /lib/modules/<kernel-rev->/build etc. How do I do the same using the buildroot created toolchain and kernel? I don't see a ../build directory. I assume I point some kernel sources that provide the linux "make" macro expansion but I am not sure where to look. I don't want to add my module to the OpenWrt build, I just want to treat the OpenWrt system as a general purpose embedded linux box.
D.
Now I want to build a loadable kernel module. With a desktop this is easy obj-m += module.o /lib/modules/<kernel-rev->/build etc. How do I do the same using the buildroot created toolchain and kernel? I don't see a ../build directory. I assume I point some kernel sources that provide the linux "make" macro expansion but I am not sure where to look. I don't want to add my module to the OpenWrt build, I just want to treat the OpenWrt system as a general purpose embedded linux box.
D.