My question is a variation of this one. In fact, this one is also related expect he is actually farther along than I am. From what I can tell, I cannot get buildroot to find and apply any of my patches.
I've followed the formatting instructions to create my patch file, which now lives here:
./buildroot/board/mycompany/myboard/patches/myprogram/myversion/myprogram-0-fix.patch
From what I can tell I have setup the path and file name correctly following these instructions. I have also set BR2_GLOBAL_PATCH_DIR
to:
"board/mycompany/myboard/patches"
I made an assumption that after doing all of this, loading my config file (the one pointing to the "myboard" folder and with the global patch dir set) - and then running a make
that my patches would be applied automatically during the process. However, it doesn't appear to pick up the patches at all.
I believe I am missing some step(s) to apply the patches. This section of the documentation describes how patches are applied but I'm struggling to understand it. How would I run the <packagename>_PRE_PATCH_HOOKS
command? Can this be performed automatically for me when I run a make
?
For reference, myprogram
starts out as a downloaded tarball in the dl/
folder - it is later extracted and then compiled. My hope was to not have to modify the contents of the this tarball and be able to use the buildroot patching mechanism to apply the patch after the contents are extracted but before the package is built. Is this even a valid manner of applying a patch in buildroot?