Hi Mike, On 3 April 2017 at 12:42, Mike Frysinger <vapier@xxxxxxxxxx> wrote: > On 26 Mar 2017 13:06, Simon Glass wrote: >> --- a/pylibfdt/Makefile.pylibfdt >> +++ b/pylibfdt/Makefile.pylibfdt >> @@ -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 > > you should make setup.py executable and drop the `python` call here > >> +files = os.environ['SOURCES'].split() > > you could parse this from the Makefile > >> +cflags = os.environ['CPPFLAGS'].split() > > this should be: > cflags = os.environ.get('CPPFLAGS', '').split() > I did these in a separate patch as Makefile parsing is a separate feature IMO. >> libfdt_module = Extension( >> '_libfdt', >> sources = files, > > python style says to not put spaces around = when it comes to args Yes I was following a crappy example - will change it. > -mike Regards, Simon -- To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html