mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Add a board context target
This commit is contained in:
@@ -124,6 +124,9 @@ endif
|
||||
|
||||
depend: .depend
|
||||
|
||||
context: $(EXTRA_CONTEXT_DEPENDENCY)
|
||||
$(EXTRA_CONTEXT)
|
||||
|
||||
clean:
|
||||
$(call DELFILE, libboard$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
@@ -57,6 +57,11 @@ endif
|
||||
|
||||
DUMMY_KCONFIG = $(TOPDIR)$(DELIM)configs$(DELIM)dummy$(DELIM)Kconfig
|
||||
|
||||
# The board configuration should be installed in the arch/ directory
|
||||
|
||||
BOARD_DIR = $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board
|
||||
BOARD_INSTALLED = $(if $(wildcard $(BOARD_DIR)$(DELIM)Makefile),y,)
|
||||
|
||||
# Basic
|
||||
|
||||
CONFIG_ASRCS =
|
||||
@@ -106,6 +111,9 @@ $(DUMMY_KCONFIG): $(BOARD_KCONFIG)
|
||||
dirlinks: $(DUMMY_KCONFIG)
|
||||
|
||||
context: $(DUMMY_KCONFIG)
|
||||
ifeq ($(BOARD_INSTALLED),y)
|
||||
$(Q) $(MAKE) -C $(BOARD_DIR) TOPDIR="$(TOPDIR)" context
|
||||
endif
|
||||
|
||||
clean_context:
|
||||
$(call DELFILE, $(DUMMY_KCONFIG))
|
||||
|
||||
@@ -87,6 +87,8 @@ libboard$(LIBEXT): $(OBJS)
|
||||
|
||||
depend: .depend
|
||||
|
||||
context:
|
||||
|
||||
clean:
|
||||
$(call DELFILE, libboard$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
@@ -65,6 +65,8 @@ libboard$(LIBEXT): $(OBJS)
|
||||
|
||||
depend: .depend
|
||||
|
||||
context:
|
||||
|
||||
clean:
|
||||
$(call DELFILE, libboard$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
Reference in New Issue
Block a user