summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/main.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/main.mk b/core/main.mk
index d670397531..6ac753baad 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -1195,8 +1195,9 @@ endif
ifneq ($(TARGET_BUILD_APPS),)
# If this build is just for apps, only build apps and not the full system by default.
ifneq ($(filter all,$(TARGET_BUILD_APPS)),)
- # If they used the magic goal "all" then build all apps in the source tree.
- unbundled_build_modules := $(foreach m,$(sort $(ALL_MODULES)),$(if $(filter APPS,$(ALL_MODULES.$(m).CLASS)),$(m)))
+ # The magic goal "all" used to build all apps in the source tree. This was deprecated
+ # so that we can know all TARGET_BUILD_APPS apps are built with soong for soong-only builds.
+ $(error TARGET_BUILD_APPS=all is deprecated)
else
unbundled_build_modules := $(sort $(TARGET_BUILD_APPS))
endif