[PATCH] kbuild: export HOSTPKG_CONFIG like Linux does
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Feb 17 02:02:13 PST 2025
Since Linux commit d5ea4fece450 ("kbuild: Allow kernel installation packaging
to override pkg-config"), Linux supports overriding the pkg-config
executable via the HOSTPKG_CONFIG variable.
barebox already had that support, but with a differently named PKG_CONFIG
variable. For compatibility with build systems assuming Linux Kbuild and
to allow easier sharing of code (e.g. scripts/kconfig), define
HOSTPKG_CONFIG for barebox as well.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 3d2abbbcbcab..b5a7d0b9918b 100644
--- a/Makefile
+++ b/Makefile
@@ -371,9 +371,10 @@ endif
KCONFIG_CONFIG ?= .config
PKG_CONFIG ?= pkg-config
+HOSTPKG_CONFIG = $(PKG_CONFIG)
CROSS_PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config
-export KCONFIG_CONFIG CROSS_PKG_CONFIG PKG_CONFIG
+export KCONFIG_CONFIG CROSS_PKG_CONFIG PKG_CONFIG HOSTPKG_CONFIG
# SHELL used by kbuild
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
--
2.39.5
More information about the barebox
mailing list