[Crosstoolchain-logs] [device-tree-compiler] 10/57: pylibfdt: Allow pkg-config to be supplied in the environment

Vagrant Cascadian vagrant at moszumanska.debian.org
Thu Sep 28 22:03:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

vagrant pushed a commit to branch upstream/latest
in repository device-tree-compiler.

commit 4e0e0d049757b15d53209a9687d9ea33ab3704c5
Author: Simon Glass <sjg at chromium.org>
Date:   Sun Mar 26 13:06:17 2017 -0600

    pylibfdt: Allow pkg-config to be supplied in the environment
    
    Some build systems have their own version of the pkg-config tool.
    Use a variable for this instead of hard-coding it, to allow for this.
    
    Signed-off-by: Simon Glass <sjg at chromium.org>
    Suggested-by: Mike Frysinger <vapier at chromium.org>
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 1d08ec1..e6d8251 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,7 @@ CFLAGS = -g -Os -fPIC -Werror $(WARNINGS)
 BISON = bison
 LEX = flex
 SWIG = swig
+PKG_CONFIG ?= pkg-config
 
 INSTALL = /usr/bin/install
 DESTDIR =
@@ -119,7 +120,7 @@ SCRIPTS = dtdiff
 # We need both Python and swig to build pylibfdt.
 .PHONY: maybe_pylibfdt
 maybe_pylibfdt: FORCE
-	if pkg-config --cflags python >/dev/null 2>&1; then \
+	if $(PKG_CONFIG) --cflags python >/dev/null 2>&1; then \
 		if which swig >/dev/null 2>&1; then \
 			can_build=yes; \
 		fi; \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list