linux: use host pkg-config when host libelf is set
authorStuart Summers <stuart.summers@intel.com>
Mon, 8 Apr 2019 18:42:33 +0000 (11:42 -0700)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 13 Apr 2019 15:07:10 +0000 (17:07 +0200)
commit615e2edc2ae8351519448d1965f0c4eec4e793b1
tree02edcb6e9c6146bc666e5d253b38da06cc991dc0
parentdb430c67a263e5986d08bca520ba210a9a71c4c5
linux: use host pkg-config when host libelf is set

A patch was added to the Linux kernel in 5.1.0-rc3 which adds a
requirement that the host build environment include pkg-config. Add the
correct host-pkgconf dependency and environment variables to ensure
Linux picks up the correct libraries.

Move the existing LINUX_MAKE_ENV assignment earlier, to simplify the
append-assignment in the libelf conditional block.

Fixes: #11761
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Stuart Summers <stuart.summers@intel.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Arnout: extend commit message as suggested by Yann]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
linux/linux.mk
package/pkg-kconfig.mk