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.

Building Gadgets

The simplest of questions. How do I build a gadget in the EZSDK? Specifically, I am trying to build the g_ether.ko module. I cannot seem to find the correct Makefile or script to do it.

Thanks

  • I solved my own problem. As you all know, you have to configure the kernel with menuconfig, select the module(s), rebuild the kernel, then rebuild the modules.

    DETAILS:

    from the $EZDK/board_support/linux-2.6.37-psp04.00.01.13.patch2 directory:

    make ARCH=arm CROSS_COMPILE=$CODE_SOURCERY_DIR/bin/arm-none-linux-gnueabi- menuconfig

    make ARCH=arm CROSS_COMPILE=$CODE_SOURCERY_DIR/bin/arm-none-linux-gnueabi- clean

    make ARCH=arm CROSS_COMPILE=$CODE_SOURCERY_DIR/bin/arm-none-linux-gnueabi- uImage

    make ARCH=arm CROSS_COMPILE=$CODE_SOURCERY_DIR/bin/arm-none-linux-gnueabi- modules

    uImage and modules are in the $EXEC_DIR, as per Rules.make