Skip to contentSkip to conversation

kernel header patches

Buildroot Patrick Ziegler 2 participants 3 messages Aug 2, 2010 – Aug 9, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I'm working on different boards support to match our requirements. Therefore I need to apply some patches to the kernel headers as well as the kernel sources itself. Especially for header patches related to a specific device I'm not sure how to enable them in the configuration.

In the Atmel device directory the variable KERNEL_HEADERS_PATCH_DIR will be used to define a directory including some patches. But the 'ifeq' check fails in 'kernel-headers-new.makefile'. In the previous version (2010.05) it was possible to replace this check by a check on the shell. But this will also fail with the new version (2010.08-rc1).

Is there an official way to apply patches to the kernel headers and kernel sources depending on the board ?

Best regards

Patrick

Signature · 14 lines
Dipl.-Inf. (FH) Patrick Ziegler

University Of Applied Sciences
Kaiserslautern

Amerikastrasse 1
D-66482 Zweibruecken
Germany

Phone:	+49 6332 914 526
Mail:	patrick.ziegler at fh-kl.de

http://www.fh-kl.de
http://www.fh-kl.de/fachbereiche/imst/iuk-knowhow.html
#1 lore raw

Am 02.08.2010 10:01, schrieb Patrick Ziegler:

Quoted 4 lines

Is there an official way to apply patches to the kernel headers and kernel sources depending on the board ?

For my Board I need to apply some minor patches to the kernel. My configuration looks like this:

Location of patches in project tree:
target/device/sheevaplug/SeagateDockStar/kernel-patches/ -> linux-2.6.34-0001-ABC.patch
-> linux-2.6.34-0002-XYZ.patch
-> DONOTUSENOW-linux-2.6.34-0002-XYZTesting.patch

.config includes:
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="target/device/sheevaplug/SeagateDockStar/SeagateDockStar-linux-2.6.34.1.config" BR2_LINUX_KERNEL_PATCH="target/device/sheevaplug/SeagateDockStar/kernel-patches/"

The patches were correctly applied during kernel compilation via buildroot.

Regards,
Marcus

#2 lore raw
Quoted 18 lines · Ossy

Am 02.08.2010 10:01, schrieb Patrick Ziegler:

Quoted 4 lines

Is there an official way to apply patches to the kernel headers and kernel sources depending on the board ?

For my Board I need to apply some minor patches to the kernel. My configuration looks like this:

Location of patches in project tree:
target/device/sheevaplug/SeagateDockStar/kernel-patches/ -> linux-2.6.34-0001-ABC.patch
-> linux-2.6.34-0002-XYZ.patch
-> DONOTUSENOW-linux-2.6.34-0002-XYZTesting.patch

.config includes:
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="target/device/sheevaplug/SeagateDockStar/SeagateDockStar-linux-2.6.34.1.config"

Quoted 5 lines

BR2_LINUX_KERNEL_PATCH="target/device/sheevaplug/SeagateDockStar/kernel-patches/"

The patches were correctly applied during kernel compilation via buildroot.

Thanks, but unfortunately this works only for the kernel compilation not for the kernel headers.

Signature · 14 lines
Dipl.-Inf. (FH) Patrick Ziegler

University Of Applied Sciences
Kaiserslautern

Amerikastrasse 1
D-66482 Zweibruecken
Germany

Phone:	+49 6332 914 526
Mail:	patrick.ziegler at fh-kl.de

http://www.fh-kl.de
http://www.fh-kl.de/fachbereiche/imst/iuk-knowhow.html