From c57b464b88769c1336695e48e1eb8f35e258b9ae Mon Sep 17 00:00:00 2001 From: Lluis Campos Date: Thu, 1 Sep 2022 19:12:50 +0200 Subject: [PATCH] rpi-cmdline: do_compile: Use pure Python syntax to get `CMDLINE` Otherwise the shell snippet fails with `bad syntax` when `CMDLINE` contains special characters like `${...}` (useful to insert a U-Boot variable in `cmdline.txt`). Signed-off-by: Lluis Campos --- recipes-bsp/bootfiles/rpi-cmdline.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-bsp/bootfiles/rpi-cmdline.bb b/recipes-bsp/bootfiles/rpi-cmdline.bb index 413ca4d..6fb3a1b 100644 --- a/recipes-bsp/bootfiles/rpi-cmdline.bb +++ b/recipes-bsp/bootfiles/rpi-cmdline.bb @@ -62,7 +62,7 @@ CMDLINE = " \ " do_compile() { - echo "${@' '.join('${CMDLINE}'.split())}" > "${WORKDIR}/cmdline.txt" + echo "${@' '.join(d.getVar('CMDLINE').split())}" > "${WORKDIR}/cmdline.txt" } do_deploy() {