BugID:16179547: Support profile app build under app/profile/.
@@ -9,6 +9,7 @@ DEFCONFIG_LIST :=
COMPONENT_DIRECTORIES := . \
app/example \
+ app/profile \
board \
kernel \
platform \
@@ -250,7 +251,7 @@ $(foreach comp, $(COMPONENTS), $(if $(wildcard $(APPDIR)/$(comp) $(CUBE_AOS_DIR)
# Find the matching platform and application from the build string components
PLATFORM_FULL :=$(strip $(foreach comp,$(subst .,/,$(COMPONENTS)),$(if $(wildcard $(SOURCE_ROOT)board/$(comp)),$(comp),)))
-APP_FULL :=$(strip $(foreach comp,$(subst .,/,$(COMPONENTS)),$(if $(wildcard $(APPDIR)/$(comp) $(SOURCE_ROOT)app/example/$(comp) $(SOURCE_ROOT)$(comp)),$(comp),)))
+APP_FULL :=$(strip $(foreach comp,$(subst .,/,$(COMPONENTS)),$(if $(wildcard $(APPDIR)/$(comp) $(SOURCE_ROOT)app/example/$(comp) $(SOURCE_ROOT)app/profile/$(comp) $(SOURCE_ROOT)$(comp)),$(comp),)))
PLATFORM :=$(notdir $(PLATFORM_FULL))
APP :=$(notdir $(APP_FULL))
