[1/1] board/bsh/imx8mn-bsh-smm-s2-pro: exit post-build.sh on error

Message ID 20260124154145.1085049-1-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • [1/1] board/bsh/imx8mn-bsh-smm-s2-pro: exit post-build.sh on error
Related show

Commit Message

Dario Binacchi Jan. 24, 2026, 3:41 p.m. UTC
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.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh | 2 ++
 1 file changed, 2 insertions(+)

Comments

'Julien Olivain' via Amarula Linux Jan. 25, 2026, 9:49 p.m. UTC | #1
On 24/01/2026 16:41, Dario Binacchi wrote:
> 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.
> 
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

Applied to master, thanks.

To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.

Patch

diff --git a/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh b/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh
index bf8861f6a914..9306df3f3ffd 100755
--- a/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh
+++ b/board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh
@@ -1,4 +1,6 @@ 
 #!/bin/sh
+set -eu
+
 BOARD_DIR="$(dirname $0)"
 PARTUUID="$($HOST_DIR/bin/uuidgen)"