pylibfdt: Simpler CFLAGS handling

At the moment we have some fiddly code to either pass in make's CPPFLAGS to
setup.py, or have setup.py extract them from the Makefile.  But really the
only thing we need from here is the include paths.  We already know what
include paths we need (libfdt/) so we can just set that directly in
setup.py.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
David Gibson
2018-08-10 13:43:50 +10:00
parent 47cafbeeb9
commit 855b9963de
2 changed files with 5 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ PYLIBFDT_srcs = $(PYLIBFDT_srcdir)/libfdt.i
PYMODULE = $(PYLIBFDT_objdir)/_libfdt.so
define run_setup
CPPFLAGS="$(CPPFLAGS)" VERSION="$(dtc_version)"
VERSION="$(dtc_version)"
$(PYLIBFDT_objdir)/setup.py --quiet $(1)
endef