pylibfdt: Don't silence setup.py when V=1

At the moment we unconditionally pass --quiet to setup.py.  Change that to
get more debugging output from it when V=1 is passed to make.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Simon Glass <sjg@chromium.org>
main
David Gibson 2018-08-10 13:55:38 +10:00
parent 7691f9d393
commit 7ba2be6cda
1 changed files with 6 additions and 1 deletions

View File

@ -5,10 +5,15 @@ PYLIBFDT_srcs = $(PYLIBFDT_srcdir)/libfdt.i
PYMODULE = $(PYLIBFDT_objdir)/_libfdt.so

SETUP = $(PYLIBFDT_srcdir)/setup.py
SETUPFLAGS =

ifndef V
SETUPFLAGS += --quiet
endif

define run_setup
VERSION="$(dtc_version)"
$(SETUP) --quiet $(1)
$(SETUP) $(SETUPFLAGS) $(1)
endef

$(PYMODULE): $(PYLIBFDT_srcs) $(LIBFDT_archive) $(SETUP)