Commit a40b1997 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Fabio Utzig
Browse files

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: default avatarHenrik Brix Andersen <henrik@brixandersen.dk>
parent 7e7b4ad1
Loading
Loading
Loading
Loading
+1 −1
Changes for scripts/assemble.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ class Assembly():
    def find_slots(self, bootdir):
        offsets = {}
        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:
                m = offset_re.match(line)
                if m is not None: