linux-jammy-nvidia-tegra, image_types_cboot: fix KERNEL_ARGS quoting

This change permits passing kernel command line arguments that include
quoted strings, including dyndbg.  Without single quotes, these
invocations of `mkbootimg` will silently produce incorrect results.

Signed-off-by: Zachary T Welch <zach@aquabyte.ai>
Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Zachary T Welch
2024-06-11 21:09:35 -07:00
committed by Matt Madison
parent 716714ae34
commit 69145eb661
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ oe_cbootimg_common() {
${STAGING_BINDIR_NATIVE}/tegra-flash/mkbootimg \
--kernel ${CBOOTIMG_KERNEL} \
--ramdisk ${IMGDEPLOYDIR}/$1 \
--cmdline "${KERNEL_ARGS}" \
--cmdline '${KERNEL_ARGS}' \
--output "$outfile"
sign_bootimg "$outfile"
[ -n "$2" ] || ln -sf $1.cboot ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.cboot

View File

@@ -78,7 +78,7 @@ bootimg_from_bundled_initramfs() {
${STAGING_BINDIR_NATIVE}/tegra-flash/mkbootimg \
--kernel $deployDir/${initramfs_base_name}.bin \
--ramdisk ${WORKDIR}/initrd \
--cmdline "${KERNEL_ARGS}" \
--cmdline '${KERNEL_ARGS}' \
--output $deployDir/${initramfs_base_name}.cboot
sign_bootimg $deployDir/${initramfs_base_name}.cboot
chmod 0644 $deployDir/${initramfs_base_name}.cboot
@@ -95,7 +95,7 @@ bootimg_from_bundled_initramfs() {
${STAGING_BINDIR_NATIVE}/tegra-flash/mkbootimg \
--kernel $deployDir/${baseName}.bin \
--ramdisk ${WORKDIR}/initrd \
--cmdline "${KERNEL_ARGS}" \
--cmdline '${KERNEL_ARGS}' \
--output $deployDir/${baseName}.cboot
sign_bootimg $deployDir/${baseName}.cboot
chmod 0644 $deployDir/${baseName}.cboot