build: force disable stack validation during kernel build on non-linux systems
authorFelix Fietkau <nbd@nbd.name>
Wed, 2 Oct 2019 10:53:09 +0000 (12:53 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 2 Oct 2019 10:55:40 +0000 (12:55 +0200)
commit5f8e5872406dad4df254c26a4166c58de44901ad
tree340c168ad95d79029a60225bb17f117d28c16364
parent0714a11bee24e5995da25ca9e0b2ae4b9f163408
build: force disable stack validation during kernel build on non-linux systems

The check for libelf in the kernel build is not enough, because the code that
uses libelf for stack validation is completely non-portable, as it tries to
include asm/types.h and relies on kernel types in user space.

Until this is fixed properly, the only solution is to disable this on any non
Linux build host

Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/kernel.mk