toolchain-external: Introduce kernel headers sanitization
authorEzequiel García <ezequiel@vanguardiasur.com.ar>
Mon, 14 Apr 2014 13:40:05 +0000 (10:40 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 14 Apr 2014 20:40:21 +0000 (22:40 +0200)
commite48ef3f5227709b768247671197b0aea29b48ea9
treeffbc9f9f09d4796220f49c4318de3e5bee773578
parent51f5c91c0959e0e58595716ce9881711e9c08f8e
toolchain-external: Introduce kernel headers sanitization

The Nios-II Sourcery external toolchain (the only Nios-II we currently
support) exports broken kernel headers. In particular, these kernels should
be exported using the "headers_install" rule which applies a set of fixes
on the kernel headers so they are suitable for userspace usage.

In order to fix this, add a post-install hook to perform the header fixes
ourselves. The result is equivalent to apply the "headers_install" rule.

Fixes:
http://autobuild.buildroot.net/results/c32/c32ad4bac5f651502e551f7733f702afaa0e742a/

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/toolchain-external/toolchain-external.mk