summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@cherry.de>2024-12-19 16:25:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-08 12:37:20 +0000
commitbd88ecae63e6b654239e549aa09ef118867403eb (patch)
tree9ba15a0a794c7583b2f345713ac4e0665021f40d
parente78b72075fe888847c2debb5749c81ce38762ef0 (diff)
downloadpoky-bd88ecae63e6b654239e549aa09ef118867403eb.tar.gz
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>
-rw-r--r--meta/classes-recipe/uboot-extlinux-config.bbclass10
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes-recipe/uboot-extlinux-config.bbclass b/meta/classes-recipe/uboot-extlinux-config.bbclass
index 0413e760bd..a6938ab063 100644
--- a/meta/classes-recipe/uboot-extlinux-config.bbclass
+++ b/meta/classes-recipe/uboot-extlinux-config.bbclass
@@ -137,14 +137,12 @@ python do_create_extlinux_config() {
137 137
138 fdt = localdata.getVar('UBOOT_EXTLINUX_FDT') 138 fdt = localdata.getVar('UBOOT_EXTLINUX_FDT')
139 139
140 cfgfile.write('LABEL %s\n\tKERNEL %s\n' % (menu_description, kernel_image))
141
140 if fdt: 142 if fdt:
141 cfgfile.write('LABEL %s\n\tKERNEL %s\n\tFDT %s\n' % 143 cfgfile.write('\tFDT %s\n' % (fdt))
142 (menu_description, kernel_image, fdt))
143 elif fdtdir: 144 elif fdtdir:
144 cfgfile.write('LABEL %s\n\tKERNEL %s\n\tFDTDIR %s\n' % 145 cfgfile.write('\tFDTDIR %s\n' % (fdtdir))
145 (menu_description, kernel_image, fdtdir))
146 else:
147 cfgfile.write('LABEL %s\n\tKERNEL %s\n' % (menu_description, kernel_image))
148 146
149 kernel_args = localdata.getVar('UBOOT_EXTLINUX_KERNEL_ARGS') 147 kernel_args = localdata.getVar('UBOOT_EXTLINUX_KERNEL_ARGS')
150 148