scripts: assemble.py: switch to using devicetree_legacy_unfixed.h
Switch to using the devicetree_legacy_unfixed.h header for extracting flash partition information. Zephyr has switched to using a new gen_defines.py script and a new set of macros/defines for devicetree code generation for all nodes except flash partitions, which are still in the legacy format. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
parent
7e7b4ad199
commit
a40b199761
|
@ -50,7 +50,7 @@ class Assembly():
|
||||||
def find_slots(self, bootdir):
|
def find_slots(self, bootdir):
|
||||||
offsets = {}
|
offsets = {}
|
||||||
sizes = {}
|
sizes = {}
|
||||||
with open(os.path.join(bootdir, 'zephyr', 'include', 'generated', 'devicetree_unfixed.h'), 'r') as fd:
|
with open(os.path.join(bootdir, 'zephyr', 'include', 'generated', 'devicetree_legacy_unfixed.h'), 'r') as fd:
|
||||||
for line in fd:
|
for line in fd:
|
||||||
m = offset_re.match(line)
|
m = offset_re.match(line)
|
||||||
if m is not None:
|
if m is not None:
|
||||||
|
|
Loading…
Reference in New Issue