mirror of
https://github.com/dgibson/dtc.git
synced 2026-04-12 00:47:46 -04:00
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:
parent
47cafbeeb9
commit
855b9963de
2 changed files with 5 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue