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:
Ying Wang 2011-10-08 14:31:54 -07:00
parent 2df17b4588
commit 486be82198
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)))
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

View File

@ -26,7 +26,6 @@ PRODUCT_PACKAGES := \
ApplicationsProvider \
BackupRestoreConfirmation \
Browser \
Bugreport \
Contacts \
ContactsProvider \
DefaultContainerService \
@ -41,11 +40,8 @@ PRODUCT_PACKAGES := \
SettingsProvider \
SharedStorageBackup \
TelephonyProvider \
TtsService \
UserDictionaryProvider \
VpnServices \
apache-xml \
bluetooth-health \
bouncycastle \
bu \
cacerts \
@ -63,7 +59,6 @@ PRODUCT_PACKAGES := \
ext \
filterfw \
framework-res \
hostapd \
hprof-conv \
icu.dat \
installd \
@ -75,7 +70,6 @@ PRODUCT_PACKAGES := \
libOpenSLES \
libaudiopreprocessing \
libcrypto \
libdex \
libdvm \
libexpat \
libfilterfw \
@ -83,7 +77,6 @@ PRODUCT_PACKAGES := \
libgabi++ \
libicui18n \
libicuuc \
libjavacore \
libnativehelper \
libnfc_ndef \
libpowermanager \
@ -92,7 +85,6 @@ PRODUCT_PACKAGES := \
libssl \
libstagefright_soft_aacdec \
libstagefright_soft_amrdec \
libstagefright_soft_avcdec \
libstagefright_soft_g711dec \
libstagefright_soft_mp3dec \
libstagefright_soft_mpeg4dec \
@ -103,8 +95,7 @@ PRODUCT_PACKAGES := \
libwilhelm \
libz \
screencap \
sensorservice \
wpa_supplicant.conf
sensorservice
# host-only dependencies
ifeq ($(WITH_HOST_DALVIK),true)
@ -112,6 +103,5 @@ ifeq ($(WITH_HOST_DALVIK),true)
apache-xml-hostdex \
bouncycastle-hostdex \
core-hostdex \
libjavacore-host \
dalvik
endif

View File

@ -18,7 +18,6 @@
# It includes the base Android platform.
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
# Overrides
PRODUCT_BRAND := generic_armv5

View File

@ -20,7 +20,6 @@
PRODUCT_POLICY := android.policy_phone
PRODUCT_PACKAGES := \
AccountAndSyncSettings \
DeskClock \
AlarmProvider \
Bluetooth \
@ -44,7 +43,10 @@ PRODUCT_PACKAGES := \
Updater \
CalendarProvider \
SyncProvider \
VpnDialogs
VpnDialogs \
bluetooth-health \
hostapd \
wpa_supplicant.conf
PRODUCT_PACKAGES += \
icu.dat

View File

@ -18,7 +18,6 @@
# It includes the base Android platform.
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
# Overrides
PRODUCT_BRAND := generic_x86

View File

@ -20,7 +20,6 @@
PRODUCT_POLICY := android.policy_mid
PRODUCT_PACKAGES := \
AccountAndSyncSettings \
CarHome \
DeskClock \
AlarmProvider \
@ -42,7 +41,11 @@ PRODUCT_PACKAGES := \
Sync \
Updater \
CalendarProvider \
SyncProvider
SyncProvider \
bluetooth-health \
hostapd \
wpa_supplicant.conf
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)

View File

@ -30,21 +30,18 @@ PRODUCT_PACKAGES := \
libWnnEngDic \
libWnnJpnDic \
libwnndict \
Phone \
Phone \
PinyinIME \
Protips \
SoftKeyboard \
SystemUI \
Launcher2 \
AccountAndSyncSettings \
Development \
DrmProvider \
Fallback \
GPSEnable \
Settings \
SdkSetup \
CustomLocale \
gpstest \
sqlite3 \
LatinIME \
CertInstaller \