mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-27 09:31:32 +00:00
fdt: Allow swig options to be provided by Makefile
U-Boot needs to provide some swig include directories. Add this feature. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a2b2caae5a
commit
7e91b10253
1 changed files with 2 additions and 2 deletions
|
@ -97,12 +97,12 @@ files = os.environ.get('SOURCES', '').split()
|
|||
cflags = os.environ.get('CPPFLAGS', '').split()
|
||||
objdir = os.environ.get('OBJDIR')
|
||||
version = os.environ.get('VERSION')
|
||||
swig_opts = []
|
||||
swig_opts = os.environ.get('SWIG_OPTS', '').split()
|
||||
|
||||
# If we were called directly rather than through our Makefile (which is often
|
||||
# the case with Python module installation), read the settings from the
|
||||
# Makefile.
|
||||
if not all((version, files, cflags, objdir)):
|
||||
if not all((swig_opts, version, files, cflags, objdir)):
|
||||
swig_opts, version, files, cflags, objdir = GetEnvFromMakefiles()
|
||||
|
||||
libfdt_module = Extension(
|
||||
|
|
Loading…
Add table
Reference in a new issue