summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartłomiej Burdukiewicz <bartlomiej.burdukiewicz@gmail.com>2021-02-04 02:34:20 +0100
committerAndrei Gherzan <andrei@gherzan.com>2021-03-16 22:25:08 +0000
commit01bf094a8e6c1e3628feab63d828a904fa18fd86 (patch)
treede952a1a03d67b7c98ccc22467add18311a3c28c
parente42aa976ef945f868a2cc839c65374901bcda75f (diff)
downloadmeta-raspberrypi-01bf094a8e6c1e3628feab63d828a904fa18fd86.tar.gz
rpi-cmdline: remove unnecessary spaces from cmdline.txt
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 <bartlomiej.burdukiewicz@gmail.com> (cherry picked from commit f5fe02c30cc82e3f47c36de76d7b73d2482018bf) Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
-rw-r--r--recipes-bsp/bootfiles/rpi-cmdline.bb2
1 files changed, 1 insertions, 1 deletions
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 = " \
37 " 37 "
38 38
39do_compile() { 39do_compile() {
40 echo "${CMDLINE}" > "${WORKDIR}/cmdline.txt" 40 echo "${@' '.join('${CMDLINE}'.split())}" > "${WORKDIR}/cmdline.txt"
41} 41}
42 42
43do_deploy() { 43do_deploy() {