From 01bf094a8e6c1e3628feab63d828a904fa18fd86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Burdukiewicz?= Date: Thu, 4 Feb 2021 02:34:20 +0100 Subject: [PATCH] rpi-cmdline: remove unnecessary spaces from cmdline.txt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With current recipe formatting CMDLINE variable contains many unnecessary white spaces. This patch allow to drop unnecessary spaces at the moment of writing them to cmdline.txt. This will improve readability of cmdline.txt, /proc/cmdline and dmesg output. Signed-off-by: Bartłomiej Burdukiewicz (cherry picked from commit f5fe02c30cc82e3f47c36de76d7b73d2482018bf) Signed-off-by: Ricardo Salveti --- 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 97db4e3..40a9949 100644 --- a/recipes-bsp/bootfiles/rpi-cmdline.bb +++ b/recipes-bsp/bootfiles/rpi-cmdline.bb @@ -37,7 +37,7 @@ CMDLINE = " \ " do_compile() { - echo "${CMDLINE}" > "${WORKDIR}/cmdline.txt" + echo "${@' '.join('${CMDLINE}'.split())}" > "${WORKDIR}/cmdline.txt" } do_deploy() {