Merge "Split *_product makefiles"
This commit is contained in:
commit
0735b4f9fe
17 changed files with 144 additions and 43 deletions
|
@ -18,3 +18,4 @@
|
|||
# up by partition.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/base_system.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/base_vendor.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/base_product.mk)
|
||||
|
|
19
target/product/base_product.mk
Normal file
19
target/product/base_product.mk
Normal file
|
@ -0,0 +1,19 @@
|
|||
#
|
||||
# Copyright (C) 2019 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# Base modules and settings for the product partition.
|
||||
PRODUCT_PACKAGES += \
|
||||
healthd \
|
|
@ -53,10 +53,6 @@ PRODUCT_PACKAGES += \
|
|||
vndservice \
|
||||
vndservicemanager \
|
||||
|
||||
# Base modules and settings for the product partition.
|
||||
PRODUCT_PACKAGES += \
|
||||
healthd \
|
||||
|
||||
# VINTF data for vendor image
|
||||
PRODUCT_PACKAGES += \
|
||||
device_manifest.xml \
|
||||
|
|
|
@ -18,11 +18,12 @@
|
|||
# means most android products, but excludes wearables.
|
||||
#
|
||||
# Note: Do not add any contents directly to this file. Choose either
|
||||
# media_system or media_vendor depending on partition (also consider
|
||||
# base_<x>.mk or handheld_<x>.mk.
|
||||
# media_<x> depending on partition also consider base_<x>.mk or
|
||||
# handheld_<x>.mk.
|
||||
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/media_system.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/media_vendor.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/media_product.mk)
|
||||
|
||||
PRODUCT_BRAND := generic
|
||||
PRODUCT_DEVICE := generic
|
||||
|
|
|
@ -28,5 +28,4 @@ PRODUCT_COPY_FILES := \
|
|||
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
|
||||
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
# It includes the base Android platform.
|
||||
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_no_telephony.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
|
||||
|
||||
# Overrides
|
||||
PRODUCT_BRAND := generic
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_vendor.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_product.mk)
|
||||
|
||||
PRODUCT_BRAND := generic
|
||||
PRODUCT_DEVICE := generic
|
||||
|
|
43
target/product/handheld_product.mk
Normal file
43
target/product/handheld_product.mk
Normal file
|
@ -0,0 +1,43 @@
|
|||
#
|
||||
# Copyright (C) 2019 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# This makefile contains the product partition contents for
|
||||
# a generic phone or tablet device. Only add something here if
|
||||
# it definitely doesn't belong on other types of devices (if it
|
||||
# does, use base_vendor.mk).
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/media_product.mk)
|
||||
|
||||
# /product packages
|
||||
PRODUCT_PACKAGES += \
|
||||
Browser2 \
|
||||
Calendar \
|
||||
Camera2 \
|
||||
Contacts \
|
||||
DeskClock \
|
||||
Email \
|
||||
Gallery2 \
|
||||
LatinIME \
|
||||
Launcher3QuickStep \
|
||||
Music \
|
||||
OneTimeInitializer \
|
||||
PrintRecommendationService \
|
||||
Provision \
|
||||
QuickSearchBox \
|
||||
Settings \
|
||||
SettingsIntelligence \
|
||||
StorageManager \
|
||||
SystemUI \
|
||||
WallpaperCropper \
|
|
@ -30,25 +30,3 @@ PRODUCT_PACKAGES += \
|
|||
power.default \
|
||||
SysuiDarkThemeOverlay \
|
||||
vibrator.default \
|
||||
|
||||
# /product packages
|
||||
PRODUCT_PACKAGES += \
|
||||
Browser2 \
|
||||
Calendar \
|
||||
Camera2 \
|
||||
Contacts \
|
||||
DeskClock \
|
||||
Email \
|
||||
Gallery2 \
|
||||
LatinIME \
|
||||
Launcher3QuickStep \
|
||||
Music \
|
||||
OneTimeInitializer \
|
||||
PrintRecommendationService \
|
||||
Provision \
|
||||
QuickSearchBox \
|
||||
Settings \
|
||||
SettingsIntelligence \
|
||||
StorageManager \
|
||||
SystemUI \
|
||||
WallpaperCropper \
|
||||
|
|
|
@ -18,4 +18,6 @@
|
|||
# for the other partitions.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_vendor.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_product.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_product.mk)
|
||||
|
|
|
@ -37,6 +37,8 @@ PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \
|
|||
system/app/Calendar/Calendar.apk \
|
||||
system/app/Camera2/Camera2.apk \
|
||||
system/app/DeskClock/DeskClock.apk \
|
||||
system/app/DeskClock/oat/arm64/DeskClock.odex \
|
||||
system/app/DeskClock/oat/arm64/DeskClock.vdex \
|
||||
system/app/Email/Email.apk \
|
||||
system/app/Gallery2/Gallery2.apk \
|
||||
system/app/LatinIME/LatinIME.apk \
|
||||
|
@ -55,6 +57,8 @@ PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \
|
|||
system/lib64/libjni_latinime.so \
|
||||
system/lib64/libjni_tinyplanet.so \
|
||||
system/priv-app/CarrierConfig/CarrierConfig.apk \
|
||||
system/priv-app/CarrierConfig/oat/arm64/CarrierConfig.odex \
|
||||
system/priv-app/CarrierConfig/oat/arm64/CarrierConfig.vdex \
|
||||
system/priv-app/Contacts/Contacts.apk \
|
||||
system/priv-app/Dialer/Dialer.apk \
|
||||
system/priv-app/Launcher3QuickStep/Launcher3QuickStep.apk \
|
||||
|
|
25
target/product/media_product.mk
Normal file
25
target/product/media_product.mk
Normal file
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# Copyright (C) 2019 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# This makefile contains the product partition contents for
|
||||
# media-capable devices (non-wearables). Only add something here
|
||||
# if it definitely doesn't belong on wearables. Otherwise, choose
|
||||
# base_vendor.mk.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/base_product.mk)
|
||||
|
||||
# /product packages
|
||||
PRODUCT_PACKAGES += \
|
||||
webview \
|
|
@ -24,7 +24,3 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/base_vendor.mk)
|
|||
PRODUCT_PACKAGES += \
|
||||
libaudiopreprocessing \
|
||||
libwebrtc_audio_preprocessing \
|
||||
|
||||
# /product packages
|
||||
PRODUCT_PACKAGES += \
|
||||
webview \
|
||||
|
|
20
target/product/telephony.mk
Normal file
20
target/product/telephony.mk
Normal file
|
@ -0,0 +1,20 @@
|
|||
#
|
||||
# Copyright (C) 2019 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# All modules for telephony
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_product.mk)
|
23
target/product/telephony_product.mk
Normal file
23
target/product/telephony_product.mk
Normal file
|
@ -0,0 +1,23 @@
|
|||
#
|
||||
# Copyright (C) 2019 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# This is the list of modules that are specific to products that have telephony
|
||||
# hardware, and install to the product partition.
|
||||
|
||||
# /product packages
|
||||
PRODUCT_PACKAGES += \
|
||||
CarrierConfig \
|
||||
Dialer \
|
|
@ -21,9 +21,4 @@
|
|||
PRODUCT_PACKAGES := \
|
||||
rild \
|
||||
|
||||
# /product packages
|
||||
PRODUCT_PACKAGES += \
|
||||
CarrierConfig \
|
||||
Dialer \
|
||||
|
||||
PRODUCT_COPY_FILES := \
|
||||
|
|
|
@ -21,8 +21,7 @@
|
|||
|
||||
# Generic system image inherits from AOSP with telephony
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
|
||||
|
||||
# Enable dynamic partition size
|
||||
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
|
||||
|
|
Loading…
Reference in a new issue