From 2d50524a0164072d0cf3f60108d0a2227d4cabc1 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Thu, 1 Sep 2011 16:02:54 -0400 Subject: [PATCH] main.mk: Allow overriding subdirs via make variable TARGET_SUBDIRS Change-Id: I9e1523833e1567a59b19482c7834fe30479a009f Signed-off-by: Mike Lockwood --- core/main.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/main.mk b/core/main.mk index 569d4dc1f..9b05f7699 100644 --- a/core/main.mk +++ b/core/main.mk @@ -480,11 +480,16 @@ subdirs := \ external/zlib else # !BUILD_TINY_ANDROID +ifneq ($(TARGET_SUBDIRS),) +subdirs := $(TARGET_SUBDIRS) +else # # Typical build; include any Android.mk files we can find. # subdirs := $(TOP) +endif # !TARGET_SUBDIRS + FULL_BUILD := true endif # !BUILD_TINY_ANDROID -- 2.11.0