Modifying kernel drivers for testing

  • Hello

    Is there an easy way to modify existing kernel drivers for debugging?

    When I change them in the build directory the changes have no effect of course...but if I clean the kernel build it probably generates all source files again in the build directory?


    thanks in advance
    richard

  • The build system works by unpacking sources and patching them before compiling. You can make changes in the unpacked sources, but then you need to create a "diff -Naurp" patch of the changes and add that to the package. Any change to the package folder will trigger a clean rebuild of the package where the sources are nuked and re-unpacked. The patches need to follow packagename-version-sequence-name.patch format; look at the existing set of kernel patches for more info.

  • Ah okay....

    What is the order of the patches then?

    In my case I need to patch the intel hdmi audio stuff back to the working version of openelec-8 build...since hdmi audio isn't working anymore in libreelec git build..

    And since the hdmi intel audio driver itself is a patch...which patch would be first applied...the linux kernel patch or der package patch?