This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP L138 linux

I want to build the driver example gpio_test  of DVSDK (/psp/linux_driver_examples-psp03.20.00.13/gpio). I compiled gpio_test.ko file. How do I creating linux kernel image with this module?

How do I creating linux kernel image with my programms and modules?

  • Sure, you just need to do a bit of hacking to move the external module into the kernel source tree, tweak the Makefiles/Kconfig a bit so that the code is built-in, and then build your kernel image. For example, let's say you move the module source into drivers/blah. Then you should add a line to then end ofdrivers/Makefile like

    obj-y += blah/
    

    and you should make sure that drivers/blah/Makefile is set up to build your module in, with something like

    obj-y += mymodule.o
    mymodule-objs := src.c other.c
    

    and so on, where your Makefile is set up however it needs to be to build the particular module you're working on.