[Buildroot] Architecture specific patches for kernel-headers?

Ulf Samuelsson ulf at atmel.com
Wed Dec 17 14:55:40 UTC 2008

In order to avoid cluttering the toolchain/kernel-headers directory
the target/device/Atmel/ directory contains two subdirs
for at91 and avr32 specific patches. "arch-at91" and "arch-avr32".

These patches are not applied when the kernel headers are built
and I discussed this with  Hans Christian Egtvedt
which has put the AVR32 specific patches in toolchain/kernel-headers.

I am worried that this directory will get cluttered with this approach.

I can see a couple of ways to handle this.

1) Create toolchain/kernel-headers/arch/arch-at91
    and toolchain/kernel-headers/arch/arch-avr32 etc.
    and patch from there.

2) Do the same as target/linux/Makefile.advanced
    and add a conditional patch to the kernel-headers Makefile based on 

3) Just put it in the toolchain/kernel directory risking
    that there will be several conflicting patches
    in the future.

In the arch-at91 and arch-avr32 you have to explicitly enable the patches.
The reasoning behind this is that a patch that applies
to may not apply to so you cannot 
just apply the patch and hope for the best, based on
the major number.
If you base yourself on the major/minor number 
combination, you are very restrictive.
A patch might work from to without problems
and there is no reason to restrict this more than neccessary.

The way it is done now, there are a number of patches
and if you have a supported major/minor version, then
you get this patchset as a default, but you can select
to use this patchset if you have another kernel version.

Would appreciate people's thinking here.

Best Regards
Ulf Samuelsson

More information about the buildroot mailing list