From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] kbuild: export HOSTPKG_CONFIG like Linux does
Date: Mon, 17 Feb 2025 11:02:13 +0100 [thread overview]
Message-ID: <20250217100213.1637911-1-a.fatoum@pengutronix.de> (raw)
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
next reply other threads:[~2025-02-17 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-17 10:02 Ahmad Fatoum [this message]
2025-02-17 10:56 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250217100213.1637911-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox