[PATCH] kbuild: export HOSTPKG_CONFIG like Linux does

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux