mirror of
https://github.com/dgibson/dtc.git
synced 2026-04-12 00:47:46 -04:00
pylibfdt: Use environment to pass C flags and files
At present setup.py adjusts its command line when running, so that the C flags and file list can be passed as arguments. Pass them in environment variables instead, so we can avoid this messiness. It also allows us to support the 'install' command. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
4e0e0d0497
commit
89a5062ab2
2 changed files with 8 additions and 11 deletions
|
|
@ -7,7 +7,8 @@ PYMODULE = $(PYLIBFDT_objdir)/_libfdt.so
|
|||
|
||||
$(PYMODULE): $(PYLIBFDT_srcs) $(WRAP)
|
||||
@$(VECHO) PYMOD $@
|
||||
python $(PYLIBFDT_objdir)/setup.py "$(CPPFLAGS)" $^
|
||||
SOURCES="$^" CPPFLAGS="$(CPPFLAGS)" \
|
||||
python $(PYLIBFDT_objdir)/setup.py --quiet build_ext --inplace
|
||||
mv _libfdt.so $(PYMODULE)
|
||||
|
||||
$(WRAP): $(PYLIBFDT_srcdir)/libfdt.swig
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue