We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d16735 commit f3b4d45Copy full SHA for f3b4d45
1 file changed
Dockerfile
@@ -19,7 +19,15 @@ RUN west init -l . && \
19
COPY . .
20
# 3. Build
21
ARG BOARD
22
-RUN test -n "$BOARD" || (echo "BOARD not set" && false) && \
+# 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) && \
31
west build -p -b "$BOARD"
32
33
FROM scratch
0 commit comments