dab7a87714
In utils/test-pkg line 8: if [ ! -z "${TEMP_CONF}" ]; then ^-- SC2236: Use -n instead of ! -z. In utils/test-pkg line 75: TEMP_CONF=$(mktemp /tmp/test-${pkg}-config.XXXXXX) ^----^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: TEMP_CONF=$(mktemp /tmp/test-"${pkg}"-config.XXXXXX) In utils/test-pkg line 76: echo "${pkg_br_name}=y" > ${TEMP_CONF} ^----------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: echo "${pkg_br_name}=y" > "${TEMP_CONF}" In utils/test-pkg line 86: if [ ${random} -gt 0 ]; then ^-------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: if [ "${random}" -gt 0 ]; then In utils/test-pkg line 90: if [ ${number} -gt 0 ]; then ^-------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: if [ "${number}" -gt 0 ]; then In utils/test-pkg line 109: toolchains=($(sed -r -e 's/,.*//; /internal/d; /^#/d; /^$/d;' "${toolchains_csv}" \ ^-- SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting). In utils/test-pkg line 110: |if [ ${random} -gt 0 ]; then \ ^-------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: |if [ "${random}" -gt 0 ]; then \ In utils/test-pkg line 111: sort -R |head -n ${random} ^-------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: sort -R |head -n "${random}" In utils/test-pkg line 121: if [ ${nb_tc} -eq 0 ]; then ^------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: if [ "${nb_tc}" -eq 0 ]; then In utils/test-pkg line 134: printf "%40s [%*d/%d]: " "${toolchain}" ${#nb_tc} ${nb} ${nb_tc} ^---^ SC2086: Double quote to prevent globbing and word splitting. ^------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: printf "%40s [%*d/%d]: " "${toolchain}" ${#nb_tc} "${nb}" "${nb_tc}" In utils/test-pkg line 146: ${nb} ${nb_skip} ${nb_fail} ${nb_legal} ${nb_show} ^---^ SC2086: Double quote to prevent globbing and word splitting. ^--------^ SC2086: Double quote to prevent globbing and word splitting. ^--------^ SC2086: Double quote to prevent globbing and word splitting. ^---------^ SC2086: Double quote to prevent globbing and word splitting. ^--------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: "${nb}" "${nb_skip}" "${nb_fail}" "${nb_legal}" "${nb_show}" In utils/test-pkg line 160: CONFIG_= support/kconfig/merge_config.sh -O "${dir}" \ ^-- SC1007: Remove space after = if trying to assign a value (for empty string, use var='' ... ). In utils/test-pkg line 181: if [ ${prepare_only} -eq 1 ]; then ^-------------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: if [ "${prepare_only}" -eq 1 ]; then For more information: https://www.shellcheck.net/wiki/SC1007 -- Remove space after = if trying to... https://www.shellcheck.net/wiki/SC2207 -- Prefer mapfile or read -a to spli... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... The suggestions from shellcheck can be applied. This script already uses bash so we can rely on mapfile. The warning about CONFIG_= assignment misinterpreted the intention: we don't want to assign to CONFIG_, we want to clear it from the environment. Spell this as CONFIG_="". Signed-off-by: Arnout Vandecappelle <arnout@mind.be> |
||
---|---|---|
arch | ||
board | ||
boot | ||
configs | ||
docs | ||
fs | ||
linux | ||
package | ||
support | ||
system | ||
toolchain | ||
utils | ||
.checkpackageignore | ||
.clang-format | ||
.defconfig | ||
.flake8 | ||
.gitignore | ||
.gitlab-ci.yml | ||
.shellcheckrc | ||
CHANGES | ||
Config.in | ||
Config.in.legacy | ||
COPYING | ||
DEVELOPERS | ||
Makefile | ||
Makefile.legacy | ||
README |
Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at http://buildroot.org/docs.html To build and use the buildroot stuff, do the following: 1) run 'make menuconfig' 2) select the target architecture and the packages you wish to compile 3) run 'make' 4) wait while it compiles 5) find the kernel, bootloader, root filesystem, etc. in output/images You do not need to be root to build or run buildroot. Have fun! Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations. Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: buildroot@buildroot.org You can also find us on #buildroot on OFTC IRC. If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches