summaryrefslogtreecommitdiff
path: root/drivers/greybus
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2019-12-30 16:20:06 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-01-03 18:00:48 +0300
commitcc976614f59bd8e45de8ce988a6bcb5de711d994 (patch)
tree05915b067d504e3224d006a486e14319c84a07a2 /drivers/greybus
parent46cf053efec6a3a5f343fead837777efe8252a46 (diff)
downloadlinux-cc976614f59bd8e45de8ce988a6bcb5de711d994.tar.xz
gen_initramfs_list.sh: fix 'bad variable name' error
Prior to commit 858805b336be ("kbuild: add $(BASH) to run scripts with bash-extension"), this shell script was almost always run by bash since bash is usually installed on the system by default. Now, this script is run by sh, which might be a symlink to dash. On such distributions, the following code emits an error: local dev=`LC_ALL=C ls -l "${location}"` You can reproduce the build error, for example by setting CONFIG_INITRAMFS_SOURCE="/dev". GEN usr/initramfs_data.cpio.gz ./usr/gen_initramfs_list.sh: 131: local: 1: bad variable name make[1]: *** [usr/Makefile:61: usr/initramfs_data.cpio.gz] Error 2 This is because `LC_ALL=C ls -l "${location}"` contains spaces. Surrounding it with double-quotes fixes the error. Fixes: 858805b336be ("kbuild: add $(BASH) to run scripts with bash-extension") Reported-by: Jory A. Pratt <anarchy@gentoo.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'drivers/greybus')
0 files changed, 0 insertions, 0 deletions