Skip to contentSkip to conversation

board/bsh/imx6ulz-bsh-smm-m2: exit post-build.sh on error

PATCH Applied Dario Binacchi 2 participants 3 messages Jan 24 – Feb 6 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board/bsh/imx6ulz-bsh-smm-m2: exit post-build.sh on error

Add 'set -eu' to ensure that command failures or unset variables are properly reported to the 'make' process. This prevents silent failures during the image generation phase.

---
 board/bsh/imx6ulz-bsh-smm-m2/post-build.sh | 2 ++
 1 file changed, 2 insertions(+)
board/bsh/imx6ulz-bsh-smm-m2/post-build.sh +2 -0
index eac82cc22af5..4a9bc1cfd50f 100755
@@ -1,4 +1,6 @@
 #!/bin/sh
+set -eu
+
 BOARD_DIR="$(dirname "$0")"
 
 cp "${BOARD_DIR}/nand-full.lst" "${BINARIES_DIR}"
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Dario Binacchi

In reply of:

Quoted 5 lines

Add 'set -eu' to ensure that command failures or unset variables are properly reported to the 'make' process. This prevents silent failures during the image generation phase.

Applied to 2025.02.x & 2025.11.x. Thanks

Quoted 22 lines
---
 board/bsh/imx6ulz-bsh-smm-m2/post-build.sh | 2 ++
 1 file changed, 2 insertions(+)
board/bsh/imx6ulz-bsh-smm-m2/post-build.sh +2 -0
index eac82cc22af5..4a9bc1cfd50f 100755
@@ -1,4 +1,6 @@
 #!/bin/sh
+set -eu
+
 BOARD_DIR="$(dirname "$0")"
 
 cp "${BOARD_DIR}/nand-full.lst" "${BINARIES_DIR}"
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot