]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
bootimg_pcbios: cleanup _do_configure_syslinux function
authorVincent Davis Jr <vince@underview.tech>
Thu, 14 Aug 2025 04:25:47 +0000 (00:25 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Aug 2025 09:30:39 +0000 (10:30 +0100)
commit5e17a1cf73d0542e0c7ec9333aaf20bbc45df8de
tree171eaf869e25009e6bc298be529e6b958137bba1
parent7944e29eb6ab7b80ad3847686dd780100623b196
bootimg_pcbios: cleanup _do_configure_syslinux function

This commit:

1. Removes all unrequired function parameters.
   The part parameter was kept due to it's potential
   future usage in _do_configure_syslinux function.
   part.fstype specifically may be used with the
   rootfstype kernel paramater.

2. Sets a default timeout to 500 if bootloader --timeout
   not specified. To avoid 'None' being placed
   as the value in resulting configuartion file.
3. Sets a default kernel parameter string if
   bootloader --append not specified. This also
   helps avoid 'None' being places as the value
   in resulting configuration file.
4. Replace all instances of

   cr_workdir, "/hdd/boot"

   with variable

   hdddir

   as it's set at the top of the function. No,
   need to re-implement what the variable is
   already defined to store.

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/source/bootimg_pcbios.py