Merge "Enforce no nonexistent modules in PRODUCT_PACKAGES for sdk builds"

This commit is contained in:
Ying Wang
2011-10-11 10:01:50 -07:00
committed by Android (Google) Code Review
7 changed files with 16 additions and 21 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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 \