summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile
index 9580504..512258d 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -691,13 +691,17 @@ endif
# -----------------------------------------------------------------
# system image
#
+# Remove overridden packages from $(ALL_PDK_FUSION_FILES)
+PDK_FUSION_SYSIMG_FILES := \
+ $(filter-out $(foreach p,$(overridden_packages),$(p) %/$(p).apk), \
+ $(ALL_PDK_FUSION_FILES))
INTERNAL_SYSTEMIMAGE_FILES := $(filter $(TARGET_OUT)/%, \
$(ALL_PREBUILT) \
$(ALL_COPIED_HEADERS) \
$(ALL_GENERATED_SOURCES) \
$(ALL_DEFAULT_INSTALLED_MODULES)\
- $(ALL_PDK_FUSION_FILES))
+ $(PDK_FUSION_SYSIMG_FILES))
ifdef is_tests_build
# We don't want to install tests modules to the system partition