board/zynqmp: fix shellcheck issues

This patch cleans up board/zynqmp shellcheck issues.

Signed-off-by: Neal Frager <neal.frager@amd.com>
[Peter: wrap long lines, use quotes around entire word]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Neal Frager
2023-06-06 18:54:59 +01:00
committed by Peter Korsgaard
parent 7db2ab3041
commit 48c3d9f396
4 changed files with 14 additions and 14 deletions

View File

@@ -101,10 +101,7 @@ board/udoo/common/post-build.sh Shellcheck
board/udoo/mx6qdl/patches/linux/0000-udoo-disable-usbh1.patch Upstream board/udoo/mx6qdl/patches/linux/0000-udoo-disable-usbh1.patch Upstream
board/versal/post-build.sh Shellcheck board/versal/post-build.sh Shellcheck
board/versal/post-image.sh Shellcheck TrailingSpace board/versal/post-image.sh Shellcheck TrailingSpace
board/zynqmp/kria/kv260/kv260.sh Shellcheck
board/zynqmp/kria/patches/uboot/v1-0001-makefile-add-multi_dtb_fit-dep.patch ApplyOrder Upstream board/zynqmp/kria/patches/uboot/v1-0001-makefile-add-multi_dtb_fit-dep.patch ApplyOrder Upstream
board/zynqmp/post-build.sh Shellcheck
board/zynqmp/post-image.sh Shellcheck
boot/afboot-stm32/0003-Makefile-disable-stack-protector.patch Upstream boot/afboot-stm32/0003-Makefile-disable-stack-protector.patch Upstream
boot/at91bootstrap/0001-eabi-fix.patch Upstream boot/at91bootstrap/0001-eabi-fix.patch Upstream
boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch Upstream boot/at91bootstrap/0002-gcc-4.6.x-ldscript-fix.patch Upstream

View File

@@ -6,7 +6,11 @@
# drivers are missing. # drivers are missing.
# This will be removed when u-boot can build the kv260 u-boot.itb natively. # This will be removed when u-boot can build the kv260 u-boot.itb natively.
UBOOT_DIR=$4 UBOOT_DIR="$4"
fdtoverlay -o ${UBOOT_DIR}/fit-dtb.blob -i ${UBOOT_DIR}/arch/arm/dts/zynqmp-smk-k26-revA.dtb ${UBOOT_DIR}/arch/arm/dts/zynqmp-sck-kv-g-revB.dtbo fdtoverlay -o "${UBOOT_DIR}/fit-dtb.blob" \
${UBOOT_DIR}/tools/mkimage -E -f ${UBOOT_DIR}/u-boot.its -B 0x8 ${BINARIES_DIR}/u-boot.itb -i "${UBOOT_DIR}/arch/arm/dts/zynqmp-smk-k26-revA.dtb" \
"${UBOOT_DIR}/arch/arm/dts/zynqmp-sck-kv-g-revB.dtbo"
"${UBOOT_DIR}/tools/mkimage" -E -f "${UBOOT_DIR}/u-boot.its" \
-B 0x8 "${BINARIES_DIR}/u-boot.itb"

View File

@@ -3,14 +3,13 @@
# genimage will need to find the extlinux.conf # genimage will need to find the extlinux.conf
# in the binaries directory # in the binaries directory
BOARD_DIR="$(dirname $0)" CONSOLE="$2"
CONSOLE=$2 ROOT="$3"
ROOT=$3
mkdir -p "${BINARIES_DIR}" mkdir -p "${BINARIES_DIR}"
cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf" cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf"
label linux label linux
kernel /Image kernel /Image
devicetree /system.dtb devicetree /system.dtb
append console=${CONSOLE} root=/dev/${ROOT} rw rootwait append console="${CONSOLE}" root="/dev/${ROOT}" rw rootwait
__HEADER_EOF __HEADER_EOF

View File

@@ -6,10 +6,10 @@
FIRST_DT=$(sed -nr \ FIRST_DT=$(sed -nr \
-e 's|^BR2_LINUX_KERNEL_INTREE_DTS_NAME="(xilinx/)?([-_/[:alnum:]\\.]*).*"$|\2|p' \ -e 's|^BR2_LINUX_KERNEL_INTREE_DTS_NAME="(xilinx/)?([-_/[:alnum:]\\.]*).*"$|\2|p' \
${BR2_CONFIG}) "${BR2_CONFIG}")
[ -z "${FIRST_DT}" ] || ln -fs ${FIRST_DT}.dtb ${BINARIES_DIR}/system.dtb [ -z "${FIRST_DT}" ] || ln -fs "${FIRST_DT}.dtb" "${BINARIES_DIR}/system.dtb"
BOARD_DIR="$(dirname $0)" BOARD_DIR="$(dirname "$0")"
support/scripts/genimage.sh -c $BOARD_DIR/genimage.cfg support/scripts/genimage.sh -c "${BOARD_DIR}/genimage.cfg"