[Buildroot] [PATCH v2 4/4] board/zynqmp/post-build.sh: remove unnecessary if
Neal Frager
neal.frager at xilinx.com
Thu Jun 9 14:04:49 UTC 2022
From: Neal Frager <neal.frager at amd.com>
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 at amd.com>
---
board/zynqmp/post-build.sh | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/board/zynqmp/post-build.sh b/board/zynqmp/post-build.sh
index 7387576414..0713bd1b05 100755
--- a/board/zynqmp/post-build.sh
+++ b/board/zynqmp/post-build.sh
@@ -7,15 +7,10 @@ BOARD_DIR="$(dirname $0)"
CONSOLE=$2
ROOT=$3
-FILE=${BOARD_DIR}/extlinux.conf
-if test -f "${FILE}"; then
- install -m 0644 -D "${FILE}" "${BINARIES_DIR}/extlinux.conf"
-else
- mkdir -p "${BINARIES_DIR}"
- cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf"
+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
__HEADER_EOF
-fi
--
2.17.1
More information about the buildroot
mailing list