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>
This commit is contained in:
Bartłomiej Burdukiewicz 2021-02-04 02:34:20 +01:00 committed by Andrei Gherzan
parent 509ff8c732
commit f5fe02c30c

View File

@ -37,7 +37,7 @@ CMDLINE = " \
"
do_compile() {
echo "${CMDLINE}" > "${WORKDIR}/cmdline.txt"
echo "${@' '.join('${CMDLINE}'.split())}" > "${WORKDIR}/cmdline.txt"
}
do_deploy() {