Add a board context target

This commit is contained in:
Gregory Nutt 2016-10-18 10:54:26 -06:00
parent 8b25782d01
commit e72fab6f26
4 changed files with 15 additions and 0 deletions

View File

@ -124,6 +124,9 @@ endif
depend: .depend
context: $(EXTRA_CONTEXT_DEPENDENCY)
$(EXTRA_CONTEXT)
clean:
$(call DELFILE, libboard$(LIBEXT))
$(call CLEAN)

View File

@ -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))

View File

@ -87,6 +87,8 @@ libboard$(LIBEXT): $(OBJS)
depend: .depend
context:
clean:
$(call DELFILE, libboard$(LIBEXT))
$(call CLEAN)

View File

@ -65,6 +65,8 @@ libboard$(LIBEXT): $(OBJS)
depend: .depend
context:
clean:
$(call DELFILE, libboard$(LIBEXT))
$(call CLEAN)