build: Remove some duplicated definitions

Unified the duplicated definitions into nuttx/tools/Config.mk.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
liuhaitao 2020-05-22 08:38:23 +08:00 committed by Abdelatif Guettouche
parent ea7437c2a8
commit 40c325adfe

View File

@ -79,19 +79,6 @@ else
MKKCONFIG ?= $(APPDIR)$(DELIM)tools$(DELIM)mkkconfig.sh MKKCONFIG ?= $(APPDIR)$(DELIM)tools$(DELIM)mkkconfig.sh
endif endif
# Invoke make
define MAKE_template
+$(Q) $(MAKE) -C $(1) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
endef
define SDIR_template
$(1)_$(2):
+$(Q) $(MAKE) -C $(1) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
endef
# Builtin Registration # Builtin Registration
BUILTIN_REGISTRY = $(APPDIR)$(DELIM)builtin$(DELIM)registry BUILTIN_REGISTRY = $(APPDIR)$(DELIM)builtin$(DELIM)registry