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)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 20:19:20 +0000 (16:19 -0400)
commit56128af8832139620c2ec40130b7c5f4f776809a
tree897c66da175257811cd9e4ee854f64f9be9d0c2c
parente3c126fab0cf991fec844393d7d011c0bb5ee29f
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