board/zynqmp/post-build.sh: remove unnecessary if
Now that all of the extlinux.conf files have been removed, it is no longer necessary to check if the file exists. Signed-off-by: Neal Frager <neal.frager@amd.com> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2022.08.x
parent
9bba9f1062
commit
83adec71b9
|
@ -7,15 +7,10 @@ BOARD_DIR="$(dirname $0)"
|
||||||
CONSOLE=$2
|
CONSOLE=$2
|
||||||
ROOT=$3
|
ROOT=$3
|
||||||
|
|
||||||
FILE=${BOARD_DIR}/extlinux.conf
|
mkdir -p "${BINARIES_DIR}"
|
||||||
if test -f "${FILE}"; then
|
cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf"
|
||||||
install -m 0644 -D "${FILE}" "${BINARIES_DIR}/extlinux.conf"
|
|
||||||
else
|
|
||||||
mkdir -p "${BINARIES_DIR}"
|
|
||||||
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
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in New Issue