1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Makefile.base: do not clean objects of bindist modules

This commit is contained in:
Leandro Lanzieri 2021-10-13 14:22:51 +02:00
parent 94c852cfa7
commit e8ad257d66
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 6 additions and 1 deletions

View File

@ -114,7 +114,11 @@ $(BINDIR)/$(MODULE)/:
$(Q)mkdir -p $@
OLD_OBJECTS = $(wildcard $(BINDIR)/$(MODULE)/*.o)
OBJECTS_TO_REMOVE = $(filter-out $(OBJ),$(OLD_OBJECTS))
# do not clean objects from bindist modules
ifeq (,$(filter $(MODULE),$(BIN_USEMODULE)))
OBJECTS_TO_REMOVE = $(filter-out $(OBJ),$(OLD_OBJECTS))
endif
$(MODULE).module compile-commands $(OBJ): | $(BINDIR)/$(MODULE)/

View File

@ -21,6 +21,7 @@ export CXXINCLUDES # The extra include paths for c++, set by the vario
export NATIVEINCLUDES # The native include paths, set by the various native Makefile.include files.
export USEMODULE # Sys Module dependencies of the application. Set in the application's Makefile.
export BIN_USEMODULE # Modules specific to bindist (see bindist.ink.mk). Set in the application's Makefile.
export USEPKG # Pkg dependencies (third party modules) of the application. Set in the application's Makefile.
export DISABLE_MODULE # Used in the application's Makefile to suppress DEFAULT_MODULEs.
# APPDEPS # Files / Makefile targets that need to be created before the application can be build. Set in the application's Makefile.