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>
(cherry picked from commit 48c3d9f396
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
737a68f384
commit
457cc33258
board/zynqmp
@ -6,7 +6,11 @@
|
||||
# drivers are missing.
|
||||
# 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
|
||||
${UBOOT_DIR}/tools/mkimage -E -f ${UBOOT_DIR}/u-boot.its -B 0x8 ${BINARIES_DIR}/u-boot.itb
|
||||
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"
|
||||
|
||||
"${UBOOT_DIR}/tools/mkimage" -E -f "${UBOOT_DIR}/u-boot.its" \
|
||||
-B 0x8 "${BINARIES_DIR}/u-boot.itb"
|
||||
|
@ -3,14 +3,13 @@
|
||||
# genimage will need to find the extlinux.conf
|
||||
# in the binaries directory
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
CONSOLE=$2
|
||||
ROOT=$3
|
||||
CONSOLE="$2"
|
||||
ROOT="$3"
|
||||
|
||||
mkdir -p "${BINARIES_DIR}"
|
||||
cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf"
|
||||
label linux
|
||||
kernel /Image
|
||||
devicetree /system.dtb
|
||||
append console=${CONSOLE} root=/dev/${ROOT} rw rootwait
|
||||
append console="${CONSOLE}" root="/dev/${ROOT}" rw rootwait
|
||||
__HEADER_EOF
|
||||
|
@ -6,10 +6,10 @@
|
||||
|
||||
FIRST_DT=$(sed -nr \
|
||||
-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"
|
||||
|
Loading…
Reference in New Issue
Block a user