From f5fe02c30cc82e3f47c36de76d7b73d2482018bf Mon Sep 17 00:00:00 2001 From: Bartłomiej Burdukiewicz Date: Thu, 4 Feb 2021 02:34:20 +0100 Subject: 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 --- recipes-bsp/bootfiles/rpi-cmdline.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes-bsp') 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() { -- cgit v1.2.3-54-g00ecf