Skip to content

Commit

Permalink
Restyled by autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and s07641069 committed Sep 30, 2024
1 parent 6b2affc commit c8abd2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/tools/telink/process_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ def merge_binaries(input_file1, input_file2, output_file, offset):
# Merge Factory Data binary if configured
if build_conf.getboolean('CONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE'):
if os.path.exists('merged.bin'):
merge_binaries('merged.bin', 'factory/factory_data.bin', 'merged.bin', build_conf['CONFIG_TELINK_FACTORY_DATA_PARTITION_ADDR'])
merge_binaries('merged.bin', 'factory/factory_data.bin', 'merged.bin',
build_conf['CONFIG_TELINK_FACTORY_DATA_PARTITION_ADDR'])
else:
# Initialize merged.bin with zephyr.bin since no base binary was created
merge_binaries('zephyr.bin', 'factory/factory_data.bin', 'merged.bin', build_conf['CONFIG_TELINK_FACTORY_DATA_PARTITION_ADDR'])
merge_binaries('zephyr.bin', 'factory/factory_data.bin', 'merged.bin',
build_conf['CONFIG_TELINK_FACTORY_DATA_PARTITION_ADDR'])

# Check if merged.bin was created by any enabled feature, otherwise symlink zephyr.bin
if not os.path.exists('merged.bin'):
Expand Down

0 comments on commit c8abd2e

Please sign in to comment.