[1/1] board/stmicroelectronics/stm32f4xx: exit post-build.sh on error

Message ID 20260124152311.680810-1-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • [1/1] board/stmicroelectronics/stm32f4xx: exit post-build.sh on error
Related show

Commit Message

Dario Binacchi Jan. 24, 2026, 3:23 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/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh | 1 +
 1 file changed, 1 insertion(+)

Comments

'Julien Olivain' via Amarula Linux Jan. 25, 2026, 9:47 p.m. UTC | #1
On 24/01/2026 16:23, 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/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh b/board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh
index 4fcce6150071..2c5b6be098ac 100755
--- a/board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh
+++ b/board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh
@@ -1,4 +1,5 @@ 
 #!/bin/sh
+set -eu
 
 # Busybox is built without network support
 sed -i '/hostname/d' ${TARGET_DIR}/etc/inittab