diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2024-04-16 18:47:12 +0200 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2024-04-18 09:36:05 +0200 |
commit | a10096a71a4444412b92400fada7360e6333cbc9 (patch) | |
tree | 033c58db799a4c16deaec56142c53340162b436a /recipes-bsp/u-boot/u-boot-distro-boot.bb | |
parent | 101bb917159e3c1fb15e3f18e45dc449f78a3e31 (diff) |
u-boot-distro-boot: set kernel cmdline using APPEND variable
Do not depend on U-Boot environment for setting the Linux kernel command
line from the boot script.
Use standard APPEND variable to specify the kernel command line, stop
using ${defargs}, ${setup} and ${vidargs} from U-Boot environment.
APPEND is the standard OE variable to set the kernel command line, it is
for example used in OE-core rootfs-postcommands.bbclass to add "ro" to
the command line and part of the official documentation.
U-Boot ${tdxargs} is still supported and its content is added to the
command line.
Remove consoleblank=0 since this is already the kernel default.
Link: https://docs.yoctoproject.org/dev/kernel-dev/faq.html#how-do-i-change-the-linux-kernel-command-line
Related-to: ELB-5619
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-distro-boot.bb')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-distro-boot.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-bsp/u-boot/u-boot-distro-boot.bb b/recipes-bsp/u-boot/u-boot-distro-boot.bb index 4aa80fa..5f696df 100644 --- a/recipes-bsp/u-boot/u-boot-distro-boot.bb +++ b/recipes-bsp/u-boot/u-boot-distro-boot.bb @@ -9,6 +9,8 @@ SRC_URI = " \ file://boot.cmd.in \ " +APPEND ?= "" + KERNEL_BOOTCMD ??= "bootz" KERNEL_BOOTCMD:aarch64 ?= "booti" @@ -17,7 +19,7 @@ DTB_PREFIX ??= "${@d.getVar('KERNEL_DTB_PREFIX').replace("/", "_") if d.getVar(' inherit deploy do_deploy() { - sed -e 's/@@KERNEL_BOOTCMD@@/${KERNEL_BOOTCMD}/;s/@@KERNEL_IMAGETYPE@@/${KERNEL_IMAGETYPE}/;s/@@KERNEL_DTB_PREFIX@@/${DTB_PREFIX}/' \ + sed -e 's/@@KERNEL_BOOTCMD@@/${KERNEL_BOOTCMD}/;s/@@KERNEL_IMAGETYPE@@/${KERNEL_IMAGETYPE}/;s/@@KERNEL_DTB_PREFIX@@/${DTB_PREFIX}/;s/@@APPEND@@/${APPEND}/' \ "${WORKDIR}/boot.cmd.in" > boot.cmd mkimage -T script -C none -n "Distro boot script" -d boot.cmd boot.scr |