mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
make export: Fix make export for CONFIG_BUILD_KERNEL=y
The condition:
[ -f "$${f}" ] && cp -f "$${f}" "${EXPORTDIR}"$(DELIM)registry ;
Fails if the first part of the condition returns empty / false, stopping
make for no reason due to the error.
This commit is contained in:
parent
ed78d25934
commit
8c1c0efabc
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
|
@ -158,7 +158,9 @@ ifneq ($(EXPORTDIR),)
|
|||
ifneq ($(CONFIG_BUILD_KERNEL),y)
|
||||
ifneq ($(BUILTIN_REGISTRY),)
|
||||
for f in "${BUILTIN_REGISTRY}"$(DELIM)*.bdat "${BUILTIN_REGISTRY}"$(DELIM)*.pdat ; do \
|
||||
[ -f "$${f}" ] && cp -f "$${f}" "${EXPORTDIR}"$(DELIM)registry ; \
|
||||
if [ -f "$${f}" ]; then \
|
||||
cp -f "$${f}" "${EXPORTDIR}"$(DELIM)registry ; \
|
||||
fi \
|
||||
done
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue