File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -423,13 +423,19 @@ jobs:
423423 mkdir -p /tmp/sdk/devices/MIMXRT1062/utilities
424424 cp -r /tmp/sdk/utilities/debug_console /tmp/sdk/devices/MIMXRT1062/utilities/
425425 cp -r /tmp/sdk/utilities/str /tmp/sdk/devices/MIMXRT1062/utilities/
426+ # the zip also flattens the shared drivers (fsl_common.h et al) into
427+ # the device driver dir; the repo keeps them under drivers/<periph>/
428+ find /tmp/sdk/drivers -name '*.h' -o -name '*.c' \
429+ | xargs -I{} cp -n {} /tmp/sdk/devices/MIMXRT1062/drivers/ 2>/dev/null || true
426430 for d in devices/MIMXRT1062/drivers devices/MIMXRT1062/utilities/debug_console \
427431 devices/MIMXRT1062/utilities/str components/serial_manager \
428432 components/uart CMSIS/Core/Include; do
429433 test -d "/tmp/sdk/$d" || { echo "FAIL: SDK missing $d"; exit 1; }
430434 done
431- test -f /tmp/sdk/devices/MIMXRT1062/utilities/debug_console/fsl_debug_console.h \
432- || { echo "FAIL: fsl_debug_console.h not where the Makefile looks"; exit 1; }
435+ for h in utilities/debug_console/fsl_debug_console.h drivers/fsl_common.h; do
436+ test -f "/tmp/sdk/devices/MIMXRT1062/$h" \
437+ || { echo "FAIL: $h not where the Makefile looks"; exit 1; }
438+ done
433439
434440 - name : Build
435441 run : |
You can’t perform that action at this time.
0 commit comments