Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: Ia6b70713d3e9b77d6fd2d9400489ef7f02360364
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
diff --git a/build-jenkins.sh b/build-jenkins.sh
index 079c260..bba849a 100755
--- a/build-jenkins.sh
+++ b/build-jenkins.sh
@@ -254,7 +254,7 @@
import_vol_cmd="-v ${host_import_mnt}:${cont_import_mnt}"
fi
# Launch the jenkins image with Docker
- # shellcheck disable=SC2086 # import_vol_cmd is intentially word-split.
+ # shellcheck disable=SC2086 # import_vol_cmd is intentionally word-split.
docker run -d \
${import_vol_cmd} \
-v "${home_mnt}:${j_home}" \
diff --git a/build-setup.sh b/build-setup.sh
index 0285aea..529cdad 100755
--- a/build-setup.sh
+++ b/build-setup.sh
@@ -44,7 +44,7 @@
# Default: "qemuarm"
# no_tar Set to true if you do not want the debug tar built
# Default: "false"
-# nice_priority Set nice priotity for bitbake command.
+# nice_priority Set nice priority for bitbake command.
# Nice:
# Run with an adjusted niceness, which affects process
# scheduling. Nice values range from -20 (most favorable
diff --git a/initramfs-build.sh b/initramfs-build.sh
index 2cc4c28..f3af769 100755
--- a/initramfs-build.sh
+++ b/initramfs-build.sh
@@ -14,7 +14,7 @@
# Default variables
WORKSPACE=${WORKSPACE:-${HOME}/${RANDOM}${RANDOM}}
http_proxy=${http_proxy:-}
-ENDIANESS=${ENDIANESS:-le}
+ENDIANNESS=${ENDIANNESS:-le}
PROXY=""
function usage() {
@@ -22,24 +22,24 @@
Usage: $0 [options]
Options:
---endianess <le|be> build an LE or BE initramfs
+--endianness <le|be> build an LE or BE initramfs
Short Options:
--e same as --endianess
+-e same as --endianness
EOF_USAGE
exit 1
}
# Arguments
-CMD_LINE=$(getopt -o d,e: --longoptions debug,endianess: -n "$0" -- "$@")
+CMD_LINE=$(getopt -o d,e: --longoptions debug,endianness: -n "$0" -- "$@")
eval set -- "${CMD_LINE}"
while true ; do
case "${1}" in
- -e|--endianess)
+ -e|--endianness)
if [[ "${2,,}" == "be" ]]; then
- ENDIANESS=""
+ ENDIANNESS=""
fi
shift 2
;;
@@ -123,8 +123,8 @@
cd buildroot && make clean
# Build PPC64 defconfig
-cat >> configs/powerpc64${ENDIANESS}_openpower_defconfig << EOF_BUILDROOT
-BR2_powerpc64${ENDIANESS}=y
+cat >> configs/powerpc64${ENDIANNESS}_openpower_defconfig << EOF_BUILDROOT
+BR2_powerpc64${ENDIANNESS}=y
BR2_CCACHE=y
BR2_SYSTEM_BIN_SH_BASH=y
BR2_TARGET_GENERIC_GETTY_PORT="hvc0"
@@ -137,7 +137,7 @@
# Build buildroot
export BR2_DL_DIR="${HOME}/buildroot_downloads"
-make powerpc64${ENDIANESS}_openpower_defconfig
+make powerpc64${ENDIANNESS}_openpower_defconfig
make
EOF_SCRIPT
diff --git a/jenkins/userid-validation b/jenkins/userid-validation
index 35b2e81..ae0e1de 100755
--- a/jenkins/userid-validation
+++ b/jenkins/userid-validation
@@ -7,7 +7,7 @@
#
# Note: It is assumed this script is run as a part of a jenkins job triggered
# by the gerrit plugin. Therefore it assumes certain env variables
-# provided by that plugin are avialable (i.e. GERRIT_PROJECT, ...)
+# provided by that plugin are available (i.e. GERRIT_PROJECT, ...)
#
# Required Inputs:
# SSH_KEY: Path to private ssh key used to post messages to gerrit
diff --git a/openpower-build-setup.sh b/openpower-build-setup.sh
index 1947ee7..efb3ebc 100755
--- a/openpower-build-setup.sh
+++ b/openpower-build-setup.sh
@@ -154,7 +154,7 @@
set -x
# This ensures that the alias set in op-build-env is
-# avalaible in this script
+# available in this script
shopt -s expand_aliases
cd "${WORKSPACE}"/op-build
diff --git a/scripts/build-unit-test-docker b/scripts/build-unit-test-docker
index e3650ab..748dd85 100755
--- a/scripts/build-unit-test-docker
+++ b/scripts/build-unit-test-docker
@@ -614,7 +614,7 @@
# Build it.
# Capture the output of the 'docker build' command and send it to
# stderr (prefixed with the package name). This allows us to see
- # progress but not polute stdout. Later on we output the final
+ # progress but not pollute stdout. Later on we output the final
# docker tag to stdout and we want to keep that pristine.
#
# Other unusual flags:
@@ -853,7 +853,7 @@
if is_automated_ci_build:
dockerfile_base += f"""
-# Run an arbitrary command to polute the docker cache regularly force us
+# Run an arbitrary command to pollute the docker cache regularly force us
# to re-run `apt-get update` daily.
RUN echo {Docker.timestamp()}
RUN apt-get update && apt-get dist-upgrade -yy
diff --git a/scripts/format-code.sh b/scripts/format-code.sh
index 7644239..d909f33 100755
--- a/scripts/format-code.sh
+++ b/scripts/format-code.sh
@@ -158,7 +158,7 @@
# Some names or emails appear as false-positive misspellings, remove them
sed -i "s/Signed-off-by.*//" "$commit_filename"
- # Run the codespell with openbmc spcific spellings on the patchset
+ # Run the codespell with openbmc specific spellings on the patchset
echo -n "openbmc-dictionary - misspelling count >> "
codespell -D "${CONFIG_PATH}/openbmc-spelling.txt" -d --count "$commit_filename"