mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] kbuild: export HOSTPKG_CONFIG like Linux does
@ 2025-02-17 10:02 Ahmad Fatoum
  2025-02-17 10:56 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-02-17 10:02 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-17 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-17 10:02 [PATCH] kbuild: export HOSTPKG_CONFIG like Linux does Ahmad Fatoum
2025-02-17 10:56 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox