From b07453509e6aa5ad056e3364312edd33a9ea20fc Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Mon, 9 Jul 2018 15:30:28 +0100 Subject: [PATCH] Align base_system and core_minimal with internal. Move a few things up from core_minimal.mk to base_system, and make a few other editing tweaks in base_system, to align it more closely with the internal version. Test: make Change-Id: I3d0fd22ea1cf94b0d28610cc15e23aca3ddd21c4 Merged-In: Iddffd6982df039f5daa8be345de338ba11c63c10 --- target/product/base_system.mk | 33 ++++++++++++++++++++++++--------- target/product/core_minimal.mk | 22 ---------------------- 2 files changed, 24 insertions(+), 31 deletions(-) diff --git a/target/product/base_system.mk b/target/product/base_system.mk index 5806309b9..c43f2f447 100644 --- a/target/product/base_system.mk +++ b/target/product/base_system.mk @@ -246,26 +246,41 @@ PRODUCT_PACKAGES += \ wifi-service \ wm \ - # VINTF data PRODUCT_PACKAGES += \ device_manifest.xml \ framework_manifest.xml \ framework_compatibility_matrix.xml \ +ifeq ($(TARGET_CORE_JARS),) +$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable) +endif + +# The order of PRODUCT_BOOT_JARS matters. +PRODUCT_BOOT_JARS := \ + $(TARGET_CORE_JARS) \ + legacy-test \ + ext \ + framework \ + telephony-common \ + voip-common \ + ims-common \ + org.apache.http.legacy.impl \ + android.hidl.base-V1.0-java \ + android.hidl.manager-V1.0-java + PRODUCT_COPY_FILES += \ system/core/rootdir/init.usb.rc:root/init.usb.rc \ system/core/rootdir/init.usb.configfs.rc:root/init.usb.configfs.rc \ system/core/rootdir/ueventd.rc:root/ueventd.rc \ system/core/rootdir/etc/hosts:system/etc/hosts -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32 PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32 # Ensure that this property is always defined so that bionic_systrace.cpp # can rely on it being initially set by init. -PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ - debug.atrace.tags.enableflags=0 +PRODUCT_SYSTEM_DEFAULT_PROPERTIES += debug.atrace.tags.enableflags=0 # Packages included only for eng or userdebug builds, previously debug tagged PRODUCT_PACKAGES_DEBUG := \ @@ -279,6 +294,11 @@ PRODUCT_PACKAGES_DEBUG := \ sqlite3 \ strace +# The set of packages whose code can be loaded by the system server. +PRODUCT_SYSTEM_SERVER_APPS += \ + SettingsProvider \ + WallpaperBackup + # Packages included only for eng/userdebug builds, when building with SANITIZE_TARGET=address PRODUCT_PACKAGES_DEBUG_ASAN := @@ -290,9 +310,4 @@ PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects) -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - ro.zygote=zygote32 -PRODUCT_COPY_FILES += \ - system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc - $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) diff --git a/target/product/core_minimal.mk b/target/product/core_minimal.mk index a4e5fb241..1604cd702 100644 --- a/target/product/core_minimal.mk +++ b/target/product/core_minimal.mk @@ -75,23 +75,6 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.software.preview_sdk.xml:system/etc/permissions/android.software.preview_sdk.xml endif -ifeq ($(TARGET_CORE_JARS),) -$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable) -endif - -# The order of PRODUCT_BOOT_JARS matters. -PRODUCT_BOOT_JARS := \ - $(TARGET_CORE_JARS) \ - legacy-test \ - ext \ - framework \ - telephony-common \ - voip-common \ - ims-common \ - org.apache.http.legacy.impl \ - android.hidl.base-V1.0-java \ - android.hidl.manager-V1.0-java - # The order of PRODUCT_SYSTEM_SERVER_JARS matters. PRODUCT_SYSTEM_SERVER_JARS := \ services \ @@ -99,11 +82,6 @@ PRODUCT_SYSTEM_SERVER_JARS := \ wifi-service \ com.android.location.provider \ -# The set of packages whose code can be loaded by the system server. -PRODUCT_SYSTEM_SERVER_APPS += \ - SettingsProvider \ - WallpaperBackup - PRODUCT_COPY_FILES += \ system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt