upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
773 B
38 lines
773 B
#!/usr/bin/env python
|
|
|
|
"""
|
|
setup.py file for SWIG libfdt
|
|
"""
|
|
|
|
from distutils.core import setup, Extension
|
|
import os
|
|
import sys
|
|
|
|
# Don't cross-compile - always use the host compiler.
|
|
del os.environ['CROSS_COMPILE']
|
|
del os.environ['CC']
|
|
|
|
progname = sys.argv[0]
|
|
cflags = sys.argv[1]
|
|
files = sys.argv[2:]
|
|
|
|
if cflags:
|
|
cflags = [flag for flag in cflags.split(' ') if flag]
|
|
else:
|
|
cflags = None
|
|
|
|
libfdt_module = Extension(
|
|
'_libfdt',
|
|
sources = files,
|
|
extra_compile_args = cflags
|
|
)
|
|
|
|
sys.argv = [progname, '--quiet', 'build_ext', '--inplace']
|
|
|
|
setup (name = 'libfdt',
|
|
version = '0.1',
|
|
author = "SWIG Docs",
|
|
description = """Simple swig libfdt from docs""",
|
|
ext_modules = [libfdt_module],
|
|
py_modules = ["libfdt"],
|
|
)
|
|
|