board/versal: clean shellcheck issues
This patch cleans up the shellcheck issues in the versal post scripts. Signed-off-by: Neal Frager <neal.frager@amd.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
df8b0643b5
commit
b831bac16a
@ -99,8 +99,6 @@ board/technologic/ts4900/post-image.sh Shellcheck
|
|||||||
board/toradex/apalis-imx6/post-image.sh Shellcheck
|
board/toradex/apalis-imx6/post-image.sh Shellcheck
|
||||||
board/udoo/common/post-build.sh Shellcheck
|
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-image.sh Shellcheck TrailingSpace
|
|
||||||
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
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
# 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"
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
|
|
||||||
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")"
|
||||||
BOARD_NAME=$4
|
BOARD_NAME="$4"
|
||||||
|
|
||||||
mkdir -p "${BINARIES_DIR}"
|
mkdir -p "${BINARIES_DIR}"
|
||||||
cat <<-__HEADER_EOF > "${BINARIES_DIR}/bootgen.bif"
|
cat <<-__HEADER_EOF > "${BINARIES_DIR}/bootgen.bif"
|
||||||
@ -23,7 +23,7 @@ cat <<-__HEADER_EOF > "${BINARIES_DIR}/bootgen.bif"
|
|||||||
{ core=psm, file=${BINARIES_DIR}/${BOARD_NAME}_psmfw.elf }
|
{ core=psm, file=${BINARIES_DIR}/${BOARD_NAME}_psmfw.elf }
|
||||||
}
|
}
|
||||||
image {
|
image {
|
||||||
id = 0x1c000000, name=apu_subsystem
|
id = 0x1c000000, name=apu_subsystem
|
||||||
{ type=raw, load=0x00001000, file=${BINARIES_DIR}/u-boot.dtb }
|
{ type=raw, load=0x00001000, file=${BINARIES_DIR}/u-boot.dtb }
|
||||||
{ core=a72-0, exception_level=el-3, trustzone, file=${BINARIES_DIR}/bl31.elf }
|
{ core=a72-0, exception_level=el-3, trustzone, file=${BINARIES_DIR}/bl31.elf }
|
||||||
{ core=a72-0, exception_level=el-2, file=${BINARIES_DIR}/u-boot.elf }
|
{ core=a72-0, exception_level=el-2, file=${BINARIES_DIR}/u-boot.elf }
|
||||||
@ -31,5 +31,5 @@ cat <<-__HEADER_EOF > "${BINARIES_DIR}/bootgen.bif"
|
|||||||
}
|
}
|
||||||
__HEADER_EOF
|
__HEADER_EOF
|
||||||
|
|
||||||
${HOST_DIR}/bin/bootgen -arch versal -image ${BINARIES_DIR}/bootgen.bif -o ${BINARIES_DIR}/boot.bin -w on
|
"${HOST_DIR}/bin/bootgen" -arch versal -image "${BINARIES_DIR}/bootgen.bif" -o "${BINARIES_DIR}/boot.bin" -w on
|
||||||
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