mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
uboot-extlinux-config.bbclass: simplify FDT/FDTDIR logic
The three blocks share the same LABEL and KERNEL content, so let's factor that part out. (From OE-Core rev: 544c0f72774e17d1dca4664c0bc21f8281dade5b) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e78b72075f
commit
bd88ecae63
@@ -137,14 +137,12 @@ python do_create_extlinux_config() {
|
|||||||
|
|
||||||
fdt = localdata.getVar('UBOOT_EXTLINUX_FDT')
|
fdt = localdata.getVar('UBOOT_EXTLINUX_FDT')
|
||||||
|
|
||||||
|
cfgfile.write('LABEL %s\n\tKERNEL %s\n' % (menu_description, kernel_image))
|
||||||
|
|
||||||
if fdt:
|
if fdt:
|
||||||
cfgfile.write('LABEL %s\n\tKERNEL %s\n\tFDT %s\n' %
|
cfgfile.write('\tFDT %s\n' % (fdt))
|
||||||
(menu_description, kernel_image, fdt))
|
|
||||||
elif fdtdir:
|
elif fdtdir:
|
||||||
cfgfile.write('LABEL %s\n\tKERNEL %s\n\tFDTDIR %s\n' %
|
cfgfile.write('\tFDTDIR %s\n' % (fdtdir))
|
||||||
(menu_description, kernel_image, fdtdir))
|
|
||||||
else:
|
|
||||||
cfgfile.write('LABEL %s\n\tKERNEL %s\n' % (menu_description, kernel_image))
|
|
||||||
|
|
||||||
kernel_args = localdata.getVar('UBOOT_EXTLINUX_KERNEL_ARGS')
|
kernel_args = localdata.getVar('UBOOT_EXTLINUX_KERNEL_ARGS')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user