Add a board context target
This commit is contained in:
parent
8b25782d01
commit
e72fab6f26
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue