Skip to content

Commit ecd309f

Browse files
committed
Flatten the SDK shared drivers where the RT1060 Makefile expects them
1 parent 3f0ab7e commit ecd309f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/cross-build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)