Skip to content

Commit

Permalink
[modm-devices] Move import to modm -> modm_devices
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Nov 14, 2018
1 parent 7b7e5de commit 4872b6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ext/modm-devices
Submodule modm-devices updated 36 files
+0 −3 .gitmodules
+19 −5 .travis.yml
+8 −5 README.md
+0 −0 tools/device/modm_devices/__init__.py
+0 −0 tools/device/modm_devices/device.py
+0 −0 tools/device/modm_devices/device_file.py
+0 −0 tools/device/modm_devices/device_identifier.py
+0 −0 tools/device/modm_devices/exception.py
+2 −2 tools/device/modm_devices/parser.py
+1 −1 tools/device/modm_devices/pkg.py
+0 −0 tools/device/modm_devices/resources/catalog.xml
+0 −0 tools/device/modm_devices/resources/schema/device.xsd
+0 −0 tools/device/modm_devices/resources/schema/xinclude.xsd
+0 −0 tools/device/modm_devices/resources/schema/xml.xsd
+0 −0 tools/device/scripts/stats
+2 −2 tools/device/test/device_test.py
+2 −0 tools/generator/.gitignore
+59 −29 tools/generator/Makefile
+1 −1 tools/generator/avr_generator.py
+0 −1 tools/generator/cmsis-header-stm32
+3 −0 tools/generator/dfg/avr/avr_device_tree.py
+1 −1 tools/generator/dfg/avr/avr_identifier.py
+1 −1 tools/generator/dfg/device_tree.py
+5 −6 tools/generator/dfg/input/cmsis_header.py
+1 −1 tools/generator/dfg/output/device_file.py
+3 −0 tools/generator/dfg/stm32/stm_device_tree.py
+5 −6 tools/generator/dfg/stm32/stm_header.py
+1 −1 tools/generator/dfg/stm32/stm_identifier.py
+0 −3 tools/generator/raw-data-extractor/.gitignore
+40 −0 tools/generator/raw-data-extractor/extract-avr.py
+0 −46 tools/generator/raw-data-extractor/extract-avr.sh
+47 −0 tools/generator/raw-data-extractor/extract-stm32.py
+0 −44 tools/generator/raw-data-extractor/extract-stm32.sh
+1 −1 tools/generator/raw-data-extractor/izpack/IzPackDeserializer.java
+0 −117 tools/generator/raw-data-extractor/patches/avr.patch
+2 −2 tools/generator/stm_generator.py
14 changes: 5 additions & 9 deletions repo.lb
Expand Up @@ -21,7 +21,7 @@ from distutils.version import StrictVersion

sys.path.append(repopath("ext/modm-devices/tools/device"))
try:
import modm.parser
import modm_devices.parser
except Exception as e:
print(e, "\n")
print("You might be missing the git submodules in `ext/`.\n"
Expand All @@ -31,12 +31,8 @@ except Exception as e:
"then build again.")
exit(1)

if sys.version_info[1] < 6:
print("modm will require Python 3.6 in the near future.\n"
"Please check if you can upgrade your installation!\n")

import lbuild
min_lbuild_version = "1.4.0"
min_lbuild_version = "1.5.0"
if StrictVersion(getattr(lbuild, "__version__", "0.1.0")) < StrictVersion(min_lbuild_version):
print("modm requires at least lbuild v{}, please upgrade!\n"
" pip install -U lbuild".format(min_lbuild_version))
Expand Down Expand Up @@ -75,7 +71,7 @@ class DevicesCache(dict):
device_file_names = [dfn for dfn in device_file_names if any(s in dfn for s in supported)]

# Parse the files and build the :target enumeration
parser = modm.parser.DeviceParser()
parser = modm_devices.parser.DeviceParser()
for device_file_name in device_file_names:
device_file = parser.parse(device_file_name)
for device in device_file.get_devices():
Expand Down Expand Up @@ -122,7 +118,7 @@ class DevicesCache(dict):
value = dict.__getitem__(self, item)
if value is None:
# Parse the device file and build its devices
parser = modm.parser.DeviceParser()
parser = modm_devices.parser.DeviceParser()
device_file = parser.parse(repopath(self.device_to_file[item]))
for device in device_file.get_devices():
self[device.partname] = device
Expand Down Expand Up @@ -162,7 +158,7 @@ def init(repo):
devices = DevicesCache()
try:
devices.build()
except (modm.ParserException) as e:
except (modm_devices.ParserException) as e:
print(e)
exit(1)

Expand Down

0 comments on commit 4872b6f

Please sign in to comment.