toolchain: limit musl workaround to kernel headers 3.12+
authorBaruch Siach <baruch@tkos.co.il>
Fri, 19 May 2017 04:20:37 +0000 (07:20 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 19 May 2017 13:29:21 +0000 (15:29 +0200)
commit4d1c2c82e8945a5847d636458f3825c55529835b
tree9bc26561319e55a080567e7b52a33454116e97e2
parent15423bd46e925b1aed12aac8eddeaf249b4bd999
toolchain: limit musl workaround to kernel headers 3.12+

The libc-compat.h first appeared in kernel version 3.12. Trying to build a
musl toolchain using earlier headers leads to the following failure:

/bin/sed: can't read .../output/host/usr/arm-buildroot-linux-musleabi/sysroot/usr/include/linux/libc-compat.h: No such file or directory
package/pkg-generic.mk:266: recipe for target '.../output/build/toolchain/.stamp_staging_installed' failed

Don't apply the sed patch to older headers.

Reported-by: Florent Jacquet <florent.jacquet@free-electrons.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
toolchain/toolchain/toolchain.mk