include: kernel-build: pass pkg-config overrides to kernel build
authorJo-Philipp Wich <jo@mein.io>
Fri, 30 Aug 2019 13:24:45 +0000 (15:24 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 11:46:59 +0000 (13:46 +0200)
commitcf2dba52736c590f0686a25700bf76a5664bd9fb
tree6a4d104618b4d5b1c8d95d05788b28193f3a2e37
parent5aa1b9ad681455b5e164ea1c12f80a0b104bf3d5
include: kernel-build: pass pkg-config overrides to kernel build

Pass suitable pkg-config overrides to the kernel build process in
order to let our pkg-config wrapper discover libraries provided
by tools/.

This mainly affects the use of libelf which is required for the
CONFIG_STACK_VALIDATION features. So far, the build system either
silently used host system libraries or kbuild simply disabled the
feature due to the lack of a suitable libelf.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit fe43969336201f2cc7d103b68fd6e65989bee184)
include/kernel-build.mk