linux/linux.mk: use HOST_MAKE_ENV rather than TARGET_MAKE_ENV
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 31 Jan 2020 17:49:39 +0000 (18:49 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 2 Feb 2020 20:02:28 +0000 (21:02 +0100)
commitf0b208f1252fb2c0588bdd1ff394bcec8a56a21a
tree44133cb27225f8ced73d0b7b3c9b84d39285b2ab
parent55567e56d61d3985a1920ff0e69502dfcd607b82
linux/linux.mk: use HOST_MAKE_ENV rather than TARGET_MAKE_ENV

While the kernel is built for the target, the build may need various host
libraries depending on config (and kernel version), so use HOST_MAKE_ENV
instead of TARGET_MAKE_ENV.

In particular, this ensures that our host-pkgconf will look for host
libraries and not target ones.

Fixes building scripts/dtc for Buildroot configurations enabling libyaml and
host-pkgconf for kernels after commit 067c650c45 (dtc: Use pkg-config to
locate libyaml).

With this enabled, we can drop the PKG_CONFIG_* variables for the
_NEEDS_HOST_LIBELF conditional, as those are included in HOST_MAKE_ENV.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
linux/linux.mk