Lines Matching +full:- +full:e
5 # SPDX-License-Identifier: Apache-2.0
11 # http://www.apache.org/licenses/LICENSE-2.0
42 offset_re = re.compile(r"^#define DT_FLASH_AREA_([0-9A-Z_]+)_OFFSET(_0)?\s+(0x[0-9a-fA-F]+|[0-9]+)$…
43 size_re = re.compile(r"^#define DT_FLASH_AREA_([0-9A-Z_]+)_SIZE(_0)?\s+(0x[0-9a-fA-F]+|[0-9]+)$")
50 except OSError as e:
51 if e.errno != errno.ENOENT:
59 part_nodes = edt.compat2nodes["fixed-partitions"]
70 # We care about the mcuboot, image-0, and image-1 partitions.
74 if 'image-0' not in offsets:
75 raise Exception("Board partition table does not have image-0 partition")
77 if 'image-1' not in offsets:
78 raise Exception("Board partition table does not have image-1 partition")
90 buf = b'\xFF' * (self.offsets[partition] - pos)
109 parser.add_argument('-b', '--bootdir', required=True,
111 parser.add_argument('-p', '--primary', required=True,
113 parser.add_argument('-s', '--secondary',
115 parser.add_argument('-o', '--output', required=True,
117 parser.add_argument('-z', '--zephyr-base',
127 print('Need to either have ZEPHYR_BASE in environment or pass in -z')
130 sys.path.insert(0, os.path.join(zephyr_base, "scripts", "dts", "python-devicetree", "src"))
143 output.add_image(args.primary, "image-0")
145 output.add_image(args.secondary, "image-1")