mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 19:42:41 +00:00
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:
committed by
Matt Madison
parent
716714ae34
commit
69145eb661
@@ -18,7 +18,7 @@ oe_cbootimg_common() {
|
|||||||
${STAGING_BINDIR_NATIVE}/tegra-flash/mkbootimg \
|
${STAGING_BINDIR_NATIVE}/tegra-flash/mkbootimg \
|
||||||
--kernel ${CBOOTIMG_KERNEL} \
|
--kernel ${CBOOTIMG_KERNEL} \
|
||||||
--ramdisk ${IMGDEPLOYDIR}/$1 \
|
--ramdisk ${IMGDEPLOYDIR}/$1 \
|
||||||
--cmdline "${KERNEL_ARGS}" \
|
--cmdline '${KERNEL_ARGS}' \
|
||||||
--output "$outfile"
|
--output "$outfile"
|
||||||
sign_bootimg "$outfile"
|
sign_bootimg "$outfile"
|
||||||
[ -n "$2" ] || ln -sf $1.cboot ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.cboot
|
[ -n "$2" ] || ln -sf $1.cboot ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.cboot
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ bootimg_from_bundled_initramfs() {
|
|||||||
${STAGING_BINDIR_NATIVE}/tegra-flash/mkbootimg \
|
${STAGING_BINDIR_NATIVE}/tegra-flash/mkbootimg \
|
||||||
--kernel $deployDir/${initramfs_base_name}.bin \
|
--kernel $deployDir/${initramfs_base_name}.bin \
|
||||||
--ramdisk ${WORKDIR}/initrd \
|
--ramdisk ${WORKDIR}/initrd \
|
||||||
--cmdline "${KERNEL_ARGS}" \
|
--cmdline '${KERNEL_ARGS}' \
|
||||||
--output $deployDir/${initramfs_base_name}.cboot
|
--output $deployDir/${initramfs_base_name}.cboot
|
||||||
sign_bootimg $deployDir/${initramfs_base_name}.cboot
|
sign_bootimg $deployDir/${initramfs_base_name}.cboot
|
||||||
chmod 0644 $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 \
|
${STAGING_BINDIR_NATIVE}/tegra-flash/mkbootimg \
|
||||||
--kernel $deployDir/${baseName}.bin \
|
--kernel $deployDir/${baseName}.bin \
|
||||||
--ramdisk ${WORKDIR}/initrd \
|
--ramdisk ${WORKDIR}/initrd \
|
||||||
--cmdline "${KERNEL_ARGS}" \
|
--cmdline '${KERNEL_ARGS}' \
|
||||||
--output $deployDir/${baseName}.cboot
|
--output $deployDir/${baseName}.cboot
|
||||||
sign_bootimg $deployDir/${baseName}.cboot
|
sign_bootimg $deployDir/${baseName}.cboot
|
||||||
chmod 0644 $deployDir/${baseName}.cboot
|
chmod 0644 $deployDir/${baseName}.cboot
|
||||||
|
|||||||
Reference in New Issue
Block a user