Files
u-boot/test/py/img/localboot.py
Simon Glass ad59fee0e8 test: Add newlines at the end of the img functions
The functions which create images lack a newline at the end of the file.
Add one, for consistency.

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-09-14 17:32:24 -06:00

28 lines
685 B
Python

# SPDX-License-Identifier: GPL-2.0+
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
"""Create localboot test disk images"""
from img.common import setup_extlinux_image
def setup_localboot_image(config, log):
"""Create a 20MB disk image with a single FAT partition
Args:
config (ArbitraryAttributeContainer): Configuration
log (multiplexed_log.Logfile): Log to write to
"""
mmc_dev = 9
script = '''DEFAULT local
LABEL local
SAY Doing local boot...
LOCALBOOT 0
'''
vmlinux = 'vmlinuz'
initrd = 'initrd.img'
setup_extlinux_image(config, log, mmc_dev, 'mmc', vmlinux, initrd, None,
script)