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,10 +423,15 @@ 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
426+ # The zip flattens the shared drivers into the device dir; the repo
427+ # keeps them under drivers/<periph>/. Copy only the variants this SoC
428+ # uses -- i.MX RT needs igpio, not the generic gpio, and there are
429+ # three fsl_cache.c to choose from.
430+ for d in common igpio lpuart trng dcp cache/armv7-m7 cache/xcache; do
431+ [ -d "/tmp/sdk/drivers/$d" ] || continue
432+ cp -n /tmp/sdk/drivers/$d/*.[ch] /tmp/sdk/devices/MIMXRT1062/drivers/ 2>/dev/null || true
433+ done
434+ echo "gpio driver taken from: $(grep -l PDDR /tmp/sdk/devices/MIMXRT1062/drivers/fsl_gpio.h >/dev/null 2>&1 && echo generic || echo igpio)"
430435 for d in devices/MIMXRT1062/drivers devices/MIMXRT1062/utilities/debug_console \
431436 devices/MIMXRT1062/utilities/str components/serial_manager \
432437 components/uart CMSIS/Core/Include; do
You can’t perform that action at this time.
0 commit comments