Hi,
I've ran into a problem. I would like to change some files in the linux kernel for my target. In this case, it is an Atmel AVR32 development board named atngw100.
What I did, is adding a file target/linux/avr32/files-2.6.25/arch/avr32/boards/atngw100/setup.c that is changed to my needs. I prefer this over a patch in this phase of development.
The problem is that during build, this file is copied to the build_dir before the patches target/linux/avr32/patches/* are applied. One of these patches also modifies that setup.c. Obviously, because of my changes, that patch fails, breaking the build.
Now I'm wondering whether the patches shouldn't be applied _before_ the target/*/files* are copied. In my view, that would be more logical because the files there should overwrite what is already in OpenWRT. Actually, I made my modifications on top of the patched setup.c file and not the pristine 2.6.25.9 linux source file.
(side note: tested on OpenWRT trunk, r11629. I guess that this feature hasn't changed since then)
As a "quick fix", I'm considering to change the copy & patch order of Kernel/Patch/Default (see include/quilt.mk). Is that the right way to go?
Any comments?
Regards,
Bas.