Skip to content
Snippets Groups Projects
Commit 7e91b102 authored by Simon Glass's avatar Simon Glass
Browse files

fdt: Allow swig options to be provided by Makefile


U-Boot needs to provide some swig include directories. Add this feature.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent a2b2caae
No related branches found
No related tags found
No related merge requests found
...@@ -97,12 +97,12 @@ files = os.environ.get('SOURCES', '').split() ...@@ -97,12 +97,12 @@ files = os.environ.get('SOURCES', '').split()
cflags = os.environ.get('CPPFLAGS', '').split() cflags = os.environ.get('CPPFLAGS', '').split()
objdir = os.environ.get('OBJDIR') objdir = os.environ.get('OBJDIR')
version = os.environ.get('VERSION') 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 # If we were called directly rather than through our Makefile (which is often
# the case with Python module installation), read the settings from the # the case with Python module installation), read the settings from the
# Makefile. # Makefile.
if not all((version, files, cflags, objdir)): if not all((swig_opts, version, files, cflags, objdir)):
swig_opts, version, files, cflags, objdir = GetEnvFromMakefiles() swig_opts, version, files, cflags, objdir = GetEnvFromMakefiles()
libfdt_module = Extension( libfdt_module = Extension(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment