Skip to content

Commit f3b4d45

Browse files
committed
fix: match board names
Signed-off-by: Yejin Seo <yejseo01@arm.com>
1 parent 7d16735 commit f3b4d45

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ RUN west init -l . && \
1919
COPY . .
2020
# 3. Build
2121
ARG BOARD
22-
RUN test -n "$BOARD" || (echo "BOARD not set" && false) && \
22+
# Map indicative BOARD names to supported board IDs in zephyr
23+
RUN case "$BOARD" in \
24+
*imx93*|*MIMX9352*) BOARD_ID="imx93_evk/mimx9352/m33" ;; \
25+
*stm32mp257f*|*STM32MP257F*) BOARD_ID="stm32mp257f_dk/stm32mp257fxx/m33" ;; \
26+
*) BOARD_ID="$BOARD" ;; \
27+
esac && \
28+
echo "Resolved BOARD_ID: $BOARD_ID" && \
29+
export BOARD="$BOARD_ID" && \
30+
test -n "$BOARD" || (echo "BOARD not set" && false) && \
2331
west build -p -b "$BOARD"
2432

2533
FROM scratch

0 commit comments

Comments
 (0)