mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps: fix distclean for partial builds and residual .kconfig files
The current distclean implementation has two issues: 1. Application.mk does not remove .kconfig on distclean, so stale config fragments from earlier builds can pollute subsequent ones. 2. Several external-library Makefiles (lame, libshvc, libulut) run "make -C <subdir> distclean" without checking whether the subdirectory exists. When the library was never downloaded (common in CI partial-build environments), distclean fails with "No such file or directory". Fix: - Application.mk: add $(call DELFILE, .kconfig) to the distclean target so that .kconfig is cleaned along with .built, .depend, etc. - audioutils/lame/Makefile: guard the distclean recipe with "if [ -d $(DST_PATH) ]; then ...; fi" and use $(MAKE) instead of bare make. - netutils/libshvc/Makefile, netutils/libulut/Makefile: same directory-existence guard for their distclean recipes. - crypto/wolfssl/Makefile: change "distclean:" to "distclean::" (double-colon) so it does not override the distclean:: rule inherited from Application.mk. Signed-off-by: hanzhijian <hanzhijian@zepp.com>
This commit is contained in:
parent
cb7097a4e7
commit
81accb0832
5 changed files with 5 additions and 4 deletions
|
|
@ -168,7 +168,7 @@ distclean::
|
|||
$(call DELDIR, $(WOLFSSL_UNPACKNAME))
|
||||
$(call DELDIR, $(WOLFSSL_EXAMPLESNAME))
|
||||
else
|
||||
distclean:
|
||||
distclean::
|
||||
$(call DELDIR, $(WOLFSSL_UNPACKNAME))
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue