imx-mcore-demos: Fix 7D

For 7D there are no .elf files and there is a build break:
```
| install: cannot stat '.../imx7d-sabresd-m4-freertos-1.0.1/*.elf': No such file or directory
```

Fixes #2056.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
This commit is contained in:
Tom Hochstein 2025-03-13 10:23:16 -07:00
parent c75e908ef4
commit dfa8306918

View File

@ -44,7 +44,9 @@ MCORE_DEMO_FILE_EXTENSION:mx7ulp-nxp-bsp = "img"
do_install () {
install -d ${D}${nonarch_base_libdir}/firmware
install -m 0644 ${S}/*.elf ${D}${nonarch_base_libdir}/firmware
if ls ${S}/*.elf > /dev/null 2>&1; then
install -m 0644 ${S}/*.elf ${D}${nonarch_base_libdir}/firmware
fi
install -m 0644 ${S}/*.${MCORE_DEMO_FILE_EXTENSION} ${D}${nonarch_base_libdir}/firmware
}