board/beagleboard/beaglebone: 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.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit c22dc1b819)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Dario Binacchi
2026-01-24 16:36:42 +01:00
committed by Thomas Perale
parent dff1de6497
commit 3c35297cd4

View File

@@ -1,5 +1,7 @@
#!/bin/sh
BOARD_DIR="$(dirname $0)"
set -eu
BOARD_DIR="$(dirname "$0")"
cp $BOARD_DIR/uEnv.txt $BINARIES_DIR/uEnv.txt