@@ -69,6 +69,9 @@ endif
target_conf=$(subst .,_,$(subst -,_,$(subst /,_,$(1))))
ifeq ($(DUMP),)
PLATFORM_DIR:=$(TOPDIR)/target/linux/$(BOARD)
+ ifeq ("$(wildcard $(PLATFORM_DIR))", "")
+ PLATFORM_DIR:=$(TOPDIR)/target/linux/feeds/$(BOARD)
+ endif
SUBTARGET:=$(strip $(foreach subdir,$(patsubst $(PLATFORM_DIR)/%/target.mk,%,$(wildcard $(PLATFORM_DIR)/*/target.mk)),$(if $(CONFIG_TARGET_$(call target_conf,$(BOARD)_$(subdir))),$(subdir))))
else
PLATFORM_DIR:=${CURDIR}
@@ -8,4 +8,4 @@ include $(INCLUDE_DIR)/target.mk
export TARGET_BUILD=1
prereq clean download prepare compile install oldconfig menuconfig nconfig xconfig update refresh: FORCE
- @+$(NO_TRACE_MAKE) -C $(BOARD) $@
+ @+$(NO_TRACE_MAKE) -C $(PLATFORM_DIR) $@
When we are installing targets to target/linux/feeds, BOARD is not available under target/linux/. Ref Commit: ebc36ebb2349ef5d492dd2bd5be962bac26bb19a So, we need to handle this scenario by taking proper target path Signed-off-by: Prasun Maiti <prasunmaiti87@gmail.com> --- include/target.mk | 3 +++ target/linux/Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)