forked from OERV-BSP/u-boot
expo: Tidy up the expo.py tool and usage
Tidy up this tool a little: - define which arguments are needed - split the enum values out into a header file - warn if no enum values are found - display the dtc error if something goes wrong - avoid a Python traceback on error Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -285,10 +285,12 @@ label Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)
|
||||
def setup_cedit_file(cons):
|
||||
infname = os.path.join(cons.config.source_dir,
|
||||
'test/boot/files/expo_layout.dts')
|
||||
inhname = os.path.join(cons.config.source_dir,
|
||||
'test/boot/files/expo_ids.h')
|
||||
expo_tool = os.path.join(cons.config.source_dir, 'tools/expo.py')
|
||||
outfname = 'cedit.dtb'
|
||||
u_boot_utils.run_and_log(
|
||||
cons, f'{expo_tool} -e {infname} -l {infname} -o {outfname}')
|
||||
cons, f'{expo_tool} -e {inhname} -l {infname} -o {outfname}')
|
||||
|
||||
|
||||
@pytest.mark.buildconfigspec('ut_dm')
|
||||
|
||||
Reference in New Issue
Block a user