forked from openkylin/platform_build
Enforce no nonexistent modules in PRODUCT_PACKAGES for sdk builds
Bug: 5430740 - Remove nonexistent names in PRODUCT_PACKAGES. - Push down bluetooth-health, hostapd and wpa_supplicant.conf to generic_no_telephony.mk and large_emu_hw.mk because they are not needed by sdk builds. - Remove core.mk from generic_armv5.mk and generic_x86.mk because they already inherit from generic.mk. Change-Id: Ie44b95f1cae7ed0d4cf827ffce6a91d41902434d
This commit is contained in:
parent
2df17b4588
commit
486be82198
|
@ -664,6 +664,11 @@ ifdef is_sdk_build
|
||||||
$(info Removing from sdk:)$(foreach d,$(target_gnu_MODULES),$(info : $(d)))
|
$(info Removing from sdk:)$(foreach d,$(target_gnu_MODULES),$(info : $(d)))
|
||||||
modules_to_install := \
|
modules_to_install := \
|
||||||
$(filter-out $(target_gnu_MODULES),$(modules_to_install))
|
$(filter-out $(target_gnu_MODULES),$(modules_to_install))
|
||||||
|
|
||||||
|
# Ensure every module listed in PRODUCT_PACKAGES gets something installed
|
||||||
|
$(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES), \
|
||||||
|
$(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
|
||||||
|
$(error Module '$(m)' in PRODUCT_PACKAGES has nothing to install!)))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,6 @@ PRODUCT_PACKAGES := \
|
||||||
ApplicationsProvider \
|
ApplicationsProvider \
|
||||||
BackupRestoreConfirmation \
|
BackupRestoreConfirmation \
|
||||||
Browser \
|
Browser \
|
||||||
Bugreport \
|
|
||||||
Contacts \
|
Contacts \
|
||||||
ContactsProvider \
|
ContactsProvider \
|
||||||
DefaultContainerService \
|
DefaultContainerService \
|
||||||
|
@ -41,11 +40,8 @@ PRODUCT_PACKAGES := \
|
||||||
SettingsProvider \
|
SettingsProvider \
|
||||||
SharedStorageBackup \
|
SharedStorageBackup \
|
||||||
TelephonyProvider \
|
TelephonyProvider \
|
||||||
TtsService \
|
|
||||||
UserDictionaryProvider \
|
UserDictionaryProvider \
|
||||||
VpnServices \
|
|
||||||
apache-xml \
|
apache-xml \
|
||||||
bluetooth-health \
|
|
||||||
bouncycastle \
|
bouncycastle \
|
||||||
bu \
|
bu \
|
||||||
cacerts \
|
cacerts \
|
||||||
|
@ -63,7 +59,6 @@ PRODUCT_PACKAGES := \
|
||||||
ext \
|
ext \
|
||||||
filterfw \
|
filterfw \
|
||||||
framework-res \
|
framework-res \
|
||||||
hostapd \
|
|
||||||
hprof-conv \
|
hprof-conv \
|
||||||
icu.dat \
|
icu.dat \
|
||||||
installd \
|
installd \
|
||||||
|
@ -75,7 +70,6 @@ PRODUCT_PACKAGES := \
|
||||||
libOpenSLES \
|
libOpenSLES \
|
||||||
libaudiopreprocessing \
|
libaudiopreprocessing \
|
||||||
libcrypto \
|
libcrypto \
|
||||||
libdex \
|
|
||||||
libdvm \
|
libdvm \
|
||||||
libexpat \
|
libexpat \
|
||||||
libfilterfw \
|
libfilterfw \
|
||||||
|
@ -83,7 +77,6 @@ PRODUCT_PACKAGES := \
|
||||||
libgabi++ \
|
libgabi++ \
|
||||||
libicui18n \
|
libicui18n \
|
||||||
libicuuc \
|
libicuuc \
|
||||||
libjavacore \
|
|
||||||
libnativehelper \
|
libnativehelper \
|
||||||
libnfc_ndef \
|
libnfc_ndef \
|
||||||
libpowermanager \
|
libpowermanager \
|
||||||
|
@ -92,7 +85,6 @@ PRODUCT_PACKAGES := \
|
||||||
libssl \
|
libssl \
|
||||||
libstagefright_soft_aacdec \
|
libstagefright_soft_aacdec \
|
||||||
libstagefright_soft_amrdec \
|
libstagefright_soft_amrdec \
|
||||||
libstagefright_soft_avcdec \
|
|
||||||
libstagefright_soft_g711dec \
|
libstagefright_soft_g711dec \
|
||||||
libstagefright_soft_mp3dec \
|
libstagefright_soft_mp3dec \
|
||||||
libstagefright_soft_mpeg4dec \
|
libstagefright_soft_mpeg4dec \
|
||||||
|
@ -103,8 +95,7 @@ PRODUCT_PACKAGES := \
|
||||||
libwilhelm \
|
libwilhelm \
|
||||||
libz \
|
libz \
|
||||||
screencap \
|
screencap \
|
||||||
sensorservice \
|
sensorservice
|
||||||
wpa_supplicant.conf
|
|
||||||
|
|
||||||
# host-only dependencies
|
# host-only dependencies
|
||||||
ifeq ($(WITH_HOST_DALVIK),true)
|
ifeq ($(WITH_HOST_DALVIK),true)
|
||||||
|
@ -112,6 +103,5 @@ ifeq ($(WITH_HOST_DALVIK),true)
|
||||||
apache-xml-hostdex \
|
apache-xml-hostdex \
|
||||||
bouncycastle-hostdex \
|
bouncycastle-hostdex \
|
||||||
core-hostdex \
|
core-hostdex \
|
||||||
libjavacore-host \
|
|
||||||
dalvik
|
dalvik
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
# It includes the base Android platform.
|
# It includes the base Android platform.
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
|
|
||||||
|
|
||||||
# Overrides
|
# Overrides
|
||||||
PRODUCT_BRAND := generic_armv5
|
PRODUCT_BRAND := generic_armv5
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
PRODUCT_POLICY := android.policy_phone
|
PRODUCT_POLICY := android.policy_phone
|
||||||
|
|
||||||
PRODUCT_PACKAGES := \
|
PRODUCT_PACKAGES := \
|
||||||
AccountAndSyncSettings \
|
|
||||||
DeskClock \
|
DeskClock \
|
||||||
AlarmProvider \
|
AlarmProvider \
|
||||||
Bluetooth \
|
Bluetooth \
|
||||||
|
@ -44,7 +43,10 @@ PRODUCT_PACKAGES := \
|
||||||
Updater \
|
Updater \
|
||||||
CalendarProvider \
|
CalendarProvider \
|
||||||
SyncProvider \
|
SyncProvider \
|
||||||
VpnDialogs
|
VpnDialogs \
|
||||||
|
bluetooth-health \
|
||||||
|
hostapd \
|
||||||
|
wpa_supplicant.conf
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
icu.dat
|
icu.dat
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
# It includes the base Android platform.
|
# It includes the base Android platform.
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
|
|
||||||
|
|
||||||
# Overrides
|
# Overrides
|
||||||
PRODUCT_BRAND := generic_x86
|
PRODUCT_BRAND := generic_x86
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
PRODUCT_POLICY := android.policy_mid
|
PRODUCT_POLICY := android.policy_mid
|
||||||
|
|
||||||
PRODUCT_PACKAGES := \
|
PRODUCT_PACKAGES := \
|
||||||
AccountAndSyncSettings \
|
|
||||||
CarHome \
|
CarHome \
|
||||||
DeskClock \
|
DeskClock \
|
||||||
AlarmProvider \
|
AlarmProvider \
|
||||||
|
@ -42,7 +41,11 @@ PRODUCT_PACKAGES := \
|
||||||
Sync \
|
Sync \
|
||||||
Updater \
|
Updater \
|
||||||
CalendarProvider \
|
CalendarProvider \
|
||||||
SyncProvider
|
SyncProvider \
|
||||||
|
bluetooth-health \
|
||||||
|
hostapd \
|
||||||
|
wpa_supplicant.conf
|
||||||
|
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
|
||||||
|
|
||||||
|
|
|
@ -30,21 +30,18 @@ PRODUCT_PACKAGES := \
|
||||||
libWnnEngDic \
|
libWnnEngDic \
|
||||||
libWnnJpnDic \
|
libWnnJpnDic \
|
||||||
libwnndict \
|
libwnndict \
|
||||||
Phone \
|
Phone \
|
||||||
PinyinIME \
|
PinyinIME \
|
||||||
Protips \
|
Protips \
|
||||||
SoftKeyboard \
|
SoftKeyboard \
|
||||||
SystemUI \
|
SystemUI \
|
||||||
Launcher2 \
|
Launcher2 \
|
||||||
AccountAndSyncSettings \
|
|
||||||
Development \
|
Development \
|
||||||
DrmProvider \
|
DrmProvider \
|
||||||
Fallback \
|
Fallback \
|
||||||
GPSEnable \
|
|
||||||
Settings \
|
Settings \
|
||||||
SdkSetup \
|
SdkSetup \
|
||||||
CustomLocale \
|
CustomLocale \
|
||||||
gpstest \
|
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
LatinIME \
|
LatinIME \
|
||||||
CertInstaller \
|
CertInstaller \
|
||||||
|
|
Loading…
Reference in New Issue