Rename mainline_system(.*).mk to generic_system(.*).mk

Rename mainline_system to generic_system in mk files
to avoid confusion with mainline module.

First, move mainline_system(.*).mk to generic_system(.*).mk
and make previous mainline_system(.*).mk to just inherit
generic_system(.*).mk to make alias except mainline_system.mk.
is just symlink to generic_system.mk.

These aliasing file will be kept remain during migration
for preventing build breakage and making changes possible
during migration.

Bug: 160649682
Test: lunch generic_system_arm64 && m nothing
Test: lunch generic_system_x86 && m nothing
Test: lunch generic_system_x86_64 && m nothing
Test: lunch generic_system_x86_arm && m nothing
Test: lunch mainline_system_arm64 && m nothing
Test: lunch mainline_system_x86 && m nothing
Test: lunch mainline_system_x86_64 && m nothing
Test: lunch mainline_system_x86_arm && m nothing
Change-Id: I3609ec2d91b0f08859a36cac75c25876b1db6d6a
This commit is contained in:
JaeMan 2020-08-11 02:37:01 +00:00 committed by JaeMan Park
parent e862ccf64d
commit 6f16b5764b
25 changed files with 357 additions and 260 deletions

View file

@ -55,12 +55,16 @@ PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full.mk \ $(LOCAL_DIR)/full.mk \
$(LOCAL_DIR)/full_x86.mk \ $(LOCAL_DIR)/full_x86.mk \
$(LOCAL_DIR)/generic.mk \ $(LOCAL_DIR)/generic.mk \
$(LOCAL_DIR)/generic_system_arm64.mk \
$(LOCAL_DIR)/generic_system_x86.mk \
$(LOCAL_DIR)/generic_system_x86_64.mk \
$(LOCAL_DIR)/generic_system_x86_arm.mk \
$(LOCAL_DIR)/generic_x86.mk \ $(LOCAL_DIR)/generic_x86.mk \
$(LOCAL_DIR)/gsi_arm64.mk \ $(LOCAL_DIR)/gsi_arm64.mk \
$(LOCAL_DIR)/mainline_system_arm64.mk \ $(LOCAL_DIR)/mainline_system_arm64.mk \
$(LOCAL_DIR)/mainline_system_x86.mk \ $(LOCAL_DIR)/mainline_system_x86.mk \
$(LOCAL_DIR)/mainline_system_x86_arm.mk \
$(LOCAL_DIR)/mainline_system_x86_64.mk \ $(LOCAL_DIR)/mainline_system_x86_64.mk \
$(LOCAL_DIR)/mainline_system_x86_arm.mk \
$(LOCAL_DIR)/sdk_arm64.mk \ $(LOCAL_DIR)/sdk_arm64.mk \
$(LOCAL_DIR)/sdk.mk \ $(LOCAL_DIR)/sdk.mk \
$(LOCAL_DIR)/sdk_phone_arm64.mk \ $(LOCAL_DIR)/sdk_phone_arm64.mk \

View file

@ -26,7 +26,7 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
# #
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for excat this product name # Enable mainline checking for excat this product name
ifeq (aosp_arm,$(TARGET_PRODUCT)) ifeq (aosp_arm,$(TARGET_PRODUCT))

View file

@ -30,7 +30,7 @@
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for excat this product name # Enable mainline checking for excat this product name
ifeq (aosp_arm64,$(TARGET_PRODUCT)) ifeq (aosp_arm64,$(TARGET_PRODUCT))

View file

@ -29,7 +29,7 @@
# (The system image of Legacy GSI is not CSI) # (The system image of Legacy GSI is not CSI)
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for excat this product name # Enable mainline checking for excat this product name
ifeq (aosp_arm64_ab,$(TARGET_PRODUCT)) ifeq (aosp_arm64_ab,$(TARGET_PRODUCT))

View file

@ -28,7 +28,7 @@
# All components inherited here go to system image # All components inherited here go to system image
# (The system image of Legacy GSI is not CSI) # (The system image of Legacy GSI is not CSI)
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for excat this product name # Enable mainline checking for excat this product name
ifeq (aosp_arm_ab,$(TARGET_PRODUCT)) ifeq (aosp_arm_ab,$(TARGET_PRODUCT))

View file

@ -26,7 +26,7 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
# #
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for excat this product name # Enable mainline checking for excat this product name
ifeq (aosp_x86,$(TARGET_PRODUCT)) ifeq (aosp_x86,$(TARGET_PRODUCT))

View file

@ -32,7 +32,7 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for excat this product name # Enable mainline checking for excat this product name
ifeq (aosp_x86_64,$(TARGET_PRODUCT)) ifeq (aosp_x86_64,$(TARGET_PRODUCT))

View file

@ -29,7 +29,7 @@
# (The system image of Legacy GSI is not CSI) # (The system image of Legacy GSI is not CSI)
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for excat this product name # Enable mainline checking for excat this product name
ifeq (aosp_x86_64_ab,$(TARGET_PRODUCT)) ifeq (aosp_x86_64_ab,$(TARGET_PRODUCT))

View file

@ -29,7 +29,7 @@
# (The system image of Legacy GSI is not CSI) # (The system image of Legacy GSI is not CSI)
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for excat this product name # Enable mainline checking for excat this product name
ifeq (aosp_x86_ab,$(TARGET_PRODUCT)) ifeq (aosp_x86_ab,$(TARGET_PRODUCT))

View file

@ -19,7 +19,7 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
# #
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking # Enable mainline checking
ifeq (aosp_x86_arm,$(TARGET_PRODUCT)) ifeq (aosp_x86_arm,$(TARGET_PRODUCT))

View file

@ -0,0 +1,143 @@
#
# Copyright (C) 2018 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 is the basis of a generic system image for a handheld device.
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
# Add adb keys to debuggable AOSP builds (if they exist)
$(call inherit-product-if-exists, vendor/google/security/adb/vendor_key.mk)
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Shared java libs
PRODUCT_PACKAGES += \
com.android.nfc_extras \
# Applications
PRODUCT_PACKAGES += \
LiveWallpapersPicker \
PartnerBookmarksProvider \
PresencePolling \
RcsService \
SafetyRegulatoryInfo \
Stk \
Tag \
TimeZoneUpdater \
# Binaries
PRODUCT_PACKAGES += llkd
# OTA support
PRODUCT_PACKAGES += \
recovery-refresh \
update_engine \
update_verifier \
# Wrapped net utils for /vendor access.
PRODUCT_PACKAGES += netutils-wrapper-1.0
# Charger images
PRODUCT_PACKAGES += charger_res_images
# system_other support
PRODUCT_PACKAGES += \
cppreopts.sh \
otapreopt_script \
# Bluetooth libraries
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.hearing_aid.default \
# For ringtones that rely on forward lock encryption
PRODUCT_PACKAGES += libfwdlockengine
# System libraries commonly depended on by things on the system_ext or product partitions.
# These lists will be pruned periodically.
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1 \
android.hardware.radio@1.0 \
android.hardware.radio@1.1 \
android.hardware.radio@1.2 \
android.hardware.radio@1.3 \
android.hardware.radio@1.4 \
android.hardware.radio.config@1.0 \
android.hardware.radio.deprecated@1.0 \
android.hardware.secure_element@1.0 \
android.hardware.wifi@1.0 \
libaudio-resampler \
libaudiohal \
libdrm \
liblogwrap \
liblz4 \
libminui \
libnl \
libprotobuf-cpp-full \
# These libraries are empty and have been combined into libhidlbase, but are still depended
# on by things off /system.
# TODO(b/135686713): remove these
PRODUCT_PACKAGES += \
libhidltransport \
libhwbinder \
PRODUCT_PACKAGES_DEBUG += \
avbctl \
bootctl \
tinycap \
tinyhostless \
tinymix \
tinypcminfo \
tinyplay \
update_engine_client \
PRODUCT_HOST_PACKAGES += \
tinyplay
# Include all zygote init scripts. "ro.zygote" will select one of them.
PRODUCT_COPY_FILES += \
system/core/rootdir/init.zygote32.rc:system/etc/init/hw/init.zygote32.rc \
system/core/rootdir/init.zygote64.rc:system/etc/init/hw/init.zygote64.rc \
system/core/rootdir/init.zygote64_32.rc:system/etc/init/hw/init.zygote64_32.rc \
# Enable dynamic partition size
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
PRODUCT_ENFORCE_RRO_TARGETS := *
PRODUCT_NAME := generic_system
PRODUCT_BRAND := generic
# Define /system partition-specific product properties to identify that /system
# partition is generic_system.
PRODUCT_SYSTEM_NAME := mainline
PRODUCT_SYSTEM_BRAND := Android
PRODUCT_SYSTEM_MANUFACTURER := Android
PRODUCT_SYSTEM_MODEL := mainline
PRODUCT_SYSTEM_DEVICE := generic
_base_mk_allowed_list :=
_my_allowed_list := $(_base_mk_allowed_list)
# For mainline, system.img should be mounted at /, so we include ROOT here.
_my_paths := \
$(TARGET_COPY_OUT_ROOT)/ \
$(TARGET_COPY_OUT_SYSTEM)/ \
$(call require-artifacts-in-path, $(_my_paths), $(_my_allowed_list))

View file

@ -0,0 +1,45 @@
#
# Copyright (C) 2018 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 components inherited here go to system image
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
$(call enforce-product-packages-exist,)
# Enable mainline checking
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
PRODUCT_BUILD_CACHE_IMAGE := false
PRODUCT_BUILD_ODM_IMAGE := false
PRODUCT_BUILD_VENDOR_DLKM_IMAGE := false
PRODUCT_BUILD_ODM_DLKM_IMAGE := false
PRODUCT_BUILD_PRODUCT_IMAGE := false
PRODUCT_BUILD_RAMDISK_IMAGE := false
PRODUCT_BUILD_SYSTEM_IMAGE := true
PRODUCT_BUILD_SYSTEM_EXT_IMAGE := false
PRODUCT_BUILD_SYSTEM_OTHER_IMAGE := false
PRODUCT_BUILD_USERDATA_IMAGE := false
PRODUCT_BUILD_VENDOR_IMAGE := false
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_RESTRICT_VENDOR_FILES := all
PRODUCT_NAME := generic_system_arm64
PRODUCT_DEVICE := mainline_arm64
PRODUCT_BRAND := generic

View file

@ -0,0 +1,44 @@
#
# 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 components inherited here go to system image
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
$(call enforce-product-packages-exist,)
# Enable mainline checking
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
PRODUCT_BUILD_CACHE_IMAGE := false
PRODUCT_BUILD_ODM_IMAGE := false
PRODUCT_BUILD_VENDOR_DLKM_IMAGE := false
PRODUCT_BUILD_ODM_DLKM_IMAGE := false
PRODUCT_BUILD_PRODUCT_IMAGE := false
PRODUCT_BUILD_RAMDISK_IMAGE := false
PRODUCT_BUILD_SYSTEM_IMAGE := true
PRODUCT_BUILD_SYSTEM_EXT_IMAGE := false
PRODUCT_BUILD_SYSTEM_OTHER_IMAGE := false
PRODUCT_BUILD_USERDATA_IMAGE := false
PRODUCT_BUILD_VENDOR_IMAGE := false
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_RESTRICT_VENDOR_FILES := all
PRODUCT_NAME := generic_system_x86
PRODUCT_DEVICE := mainline_x86
PRODUCT_BRAND := generic

View file

@ -0,0 +1,45 @@
#
# 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 components inherited here go to system image
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
$(call enforce-product-packages-exist,)
# Enable mainline checking
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
PRODUCT_BUILD_CACHE_IMAGE := false
PRODUCT_BUILD_ODM_IMAGE := false
PRODUCT_BUILD_VENDOR_DLKM_IMAGE := false
PRODUCT_BUILD_ODM_DLKM_IMAGE := false
PRODUCT_BUILD_PRODUCT_IMAGE := false
PRODUCT_BUILD_RAMDISK_IMAGE := false
PRODUCT_BUILD_SYSTEM_IMAGE := true
PRODUCT_BUILD_SYSTEM_EXT_IMAGE := false
PRODUCT_BUILD_SYSTEM_OTHER_IMAGE := false
PRODUCT_BUILD_USERDATA_IMAGE := false
PRODUCT_BUILD_VENDOR_IMAGE := false
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_RESTRICT_VENDOR_FILES := all
PRODUCT_NAME := generic_system_x86_64
PRODUCT_DEVICE := mainline_x86_64
PRODUCT_BRAND := generic

View file

@ -0,0 +1,44 @@
#
# 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 components inherited here go to system image
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
$(call enforce-product-packages-exist,)
# Enable mainline checking
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
PRODUCT_BUILD_CACHE_IMAGE := false
PRODUCT_BUILD_ODM_IMAGE := false
PRODUCT_BUILD_VENDOR_DLKM_IMAGE := false
PRODUCT_BUILD_ODM_DLKM_IMAGE := false
PRODUCT_BUILD_PRODUCT_IMAGE := false
PRODUCT_BUILD_RAMDISK_IMAGE := false
PRODUCT_BUILD_SYSTEM_IMAGE := true
PRODUCT_BUILD_SYSTEM_EXT_IMAGE := false
PRODUCT_BUILD_SYSTEM_OTHER_IMAGE := false
PRODUCT_BUILD_USERDATA_IMAGE := false
PRODUCT_BUILD_VENDOR_IMAGE := false
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_RESTRICT_VENDOR_FILES := all
PRODUCT_NAME := generic_system_x86_arm
PRODUCT_DEVICE := mainline_x86_arm
PRODUCT_BRAND := generic

View file

@ -18,7 +18,7 @@
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking # Enable mainline checking
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed

View file

@ -1,143 +0,0 @@
#
# Copyright (C) 2018 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 is the basis of a generic system image for a handheld device.
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
# Add adb keys to debuggable AOSP builds (if they exist)
$(call inherit-product-if-exists, vendor/google/security/adb/vendor_key.mk)
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Shared java libs
PRODUCT_PACKAGES += \
com.android.nfc_extras \
# Applications
PRODUCT_PACKAGES += \
LiveWallpapersPicker \
PartnerBookmarksProvider \
PresencePolling \
RcsService \
SafetyRegulatoryInfo \
Stk \
Tag \
TimeZoneUpdater \
# Binaries
PRODUCT_PACKAGES += llkd
# OTA support
PRODUCT_PACKAGES += \
recovery-refresh \
update_engine \
update_verifier \
# Wrapped net utils for /vendor access.
PRODUCT_PACKAGES += netutils-wrapper-1.0
# Charger images
PRODUCT_PACKAGES += charger_res_images
# system_other support
PRODUCT_PACKAGES += \
cppreopts.sh \
otapreopt_script \
# Bluetooth libraries
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.hearing_aid.default \
# For ringtones that rely on forward lock encryption
PRODUCT_PACKAGES += libfwdlockengine
# System libraries commonly depended on by things on the system_ext or product partitions.
# These lists will be pruned periodically.
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1 \
android.hardware.radio@1.0 \
android.hardware.radio@1.1 \
android.hardware.radio@1.2 \
android.hardware.radio@1.3 \
android.hardware.radio@1.4 \
android.hardware.radio.config@1.0 \
android.hardware.radio.deprecated@1.0 \
android.hardware.secure_element@1.0 \
android.hardware.wifi@1.0 \
libaudio-resampler \
libaudiohal \
libdrm \
liblogwrap \
liblz4 \
libminui \
libnl \
libprotobuf-cpp-full \
# These libraries are empty and have been combined into libhidlbase, but are still depended
# on by things off /system.
# TODO(b/135686713): remove these
PRODUCT_PACKAGES += \
libhidltransport \
libhwbinder \
PRODUCT_PACKAGES_DEBUG += \
avbctl \
bootctl \
tinycap \
tinyhostless \
tinymix \
tinypcminfo \
tinyplay \
update_engine_client \
PRODUCT_HOST_PACKAGES += \
tinyplay
# Include all zygote init scripts. "ro.zygote" will select one of them.
PRODUCT_COPY_FILES += \
system/core/rootdir/init.zygote32.rc:system/etc/init/hw/init.zygote32.rc \
system/core/rootdir/init.zygote64.rc:system/etc/init/hw/init.zygote64.rc \
system/core/rootdir/init.zygote64_32.rc:system/etc/init/hw/init.zygote64_32.rc \
# Enable dynamic partition size
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
PRODUCT_ENFORCE_RRO_TARGETS := *
PRODUCT_NAME := mainline_system
PRODUCT_BRAND := generic
# Define /system partition-specific product properties to identify that /system
# partition is mainline_system.
PRODUCT_SYSTEM_NAME := mainline
PRODUCT_SYSTEM_BRAND := Android
PRODUCT_SYSTEM_MANUFACTURER := Android
PRODUCT_SYSTEM_MODEL := mainline
PRODUCT_SYSTEM_DEVICE := generic
_base_mk_allowed_list :=
_my_allowed_list := $(_base_mk_allowed_list)
# For mainline, system.img should be mounted at /, so we include ROOT here.
_my_paths := \
$(TARGET_COPY_OUT_ROOT)/ \
$(TARGET_COPY_OUT_SYSTEM)/ \
$(call require-artifacts-in-path, $(_my_paths), $(_my_allowed_list))

View file

@ -0,0 +1 @@
generic_system.mk

View file

@ -14,32 +14,10 @@
# limitations under the License. # limitations under the License.
# #
# # Do not modify this file. It's just alias of generic_system_arm64.mk
# All components inherited here go to system image # Will be removed when renaming from mainline_system to generic_system
# # complete
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
$(call enforce-product-packages-exist,)
# Enable mainline checking $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system_arm64.mk)
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
PRODUCT_BUILD_CACHE_IMAGE := false
PRODUCT_BUILD_ODM_IMAGE := false
PRODUCT_BUILD_VENDOR_DLKM_IMAGE := false
PRODUCT_BUILD_ODM_DLKM_IMAGE := false
PRODUCT_BUILD_PRODUCT_IMAGE := false
PRODUCT_BUILD_RAMDISK_IMAGE := false
PRODUCT_BUILD_SYSTEM_IMAGE := true
PRODUCT_BUILD_SYSTEM_EXT_IMAGE := false
PRODUCT_BUILD_SYSTEM_OTHER_IMAGE := false
PRODUCT_BUILD_USERDATA_IMAGE := false
PRODUCT_BUILD_VENDOR_IMAGE := false
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_RESTRICT_VENDOR_FILES := all
PRODUCT_NAME := mainline_system_arm64 PRODUCT_NAME := mainline_system_arm64
PRODUCT_DEVICE := mainline_arm64
PRODUCT_BRAND := generic

View file

@ -14,31 +14,10 @@
# limitations under the License. # limitations under the License.
# #
# # Do not modify this file. It's just alias of generic_system_x86.mk
# All components inherited here go to system image # Will be removed when renaming from mainline_system to generic_system
# # complete
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
$(call enforce-product-packages-exist,)
# Enable mainline checking $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system_x86.mk)
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
PRODUCT_BUILD_CACHE_IMAGE := false
PRODUCT_BUILD_ODM_IMAGE := false
PRODUCT_BUILD_VENDOR_DLKM_IMAGE := false
PRODUCT_BUILD_ODM_DLKM_IMAGE := false
PRODUCT_BUILD_PRODUCT_IMAGE := false
PRODUCT_BUILD_RAMDISK_IMAGE := false
PRODUCT_BUILD_SYSTEM_IMAGE := true
PRODUCT_BUILD_SYSTEM_EXT_IMAGE := false
PRODUCT_BUILD_SYSTEM_OTHER_IMAGE := false
PRODUCT_BUILD_USERDATA_IMAGE := false
PRODUCT_BUILD_VENDOR_IMAGE := false
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_RESTRICT_VENDOR_FILES := all
PRODUCT_NAME := mainline_system_x86 PRODUCT_NAME := mainline_system_x86
PRODUCT_DEVICE := mainline_x86
PRODUCT_BRAND := generic

View file

@ -14,32 +14,10 @@
# limitations under the License. # limitations under the License.
# #
# # Do not modify this file. It's just alias of generic_system_x86_64.mk
# All components inherited here go to system image # Will be removed when renaming from mainline_system to generic_system
# # complete
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
$(call enforce-product-packages-exist,)
# Enable mainline checking $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system_x86_64.mk)
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
PRODUCT_BUILD_CACHE_IMAGE := false
PRODUCT_BUILD_ODM_IMAGE := false
PRODUCT_BUILD_VENDOR_DLKM_IMAGE := false
PRODUCT_BUILD_ODM_DLKM_IMAGE := false
PRODUCT_BUILD_PRODUCT_IMAGE := false
PRODUCT_BUILD_RAMDISK_IMAGE := false
PRODUCT_BUILD_SYSTEM_IMAGE := true
PRODUCT_BUILD_SYSTEM_EXT_IMAGE := false
PRODUCT_BUILD_SYSTEM_OTHER_IMAGE := false
PRODUCT_BUILD_USERDATA_IMAGE := false
PRODUCT_BUILD_VENDOR_IMAGE := false
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_RESTRICT_VENDOR_FILES := all
PRODUCT_NAME := mainline_system_x86_64 PRODUCT_NAME := mainline_system_x86_64
PRODUCT_DEVICE := mainline_x86_64
PRODUCT_BRAND := generic

View file

@ -14,31 +14,10 @@
# limitations under the License. # limitations under the License.
# #
# # Do not modify this file. It's just alias of generic_system_x86_arm.mk
# All components inherited here go to system image # Will be removed when renaming from mainline_system to generic_system
# # complete
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
$(call enforce-product-packages-exist,)
# Enable mainline checking $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system_x86_arm.mk)
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
PRODUCT_BUILD_CACHE_IMAGE := false
PRODUCT_BUILD_ODM_IMAGE := false
PRODUCT_BUILD_VENDOR_DLKM_IMAGE := false
PRODUCT_BUILD_ODM_DLKM_IMAGE := false
PRODUCT_BUILD_PRODUCT_IMAGE := false
PRODUCT_BUILD_RAMDISK_IMAGE := false
PRODUCT_BUILD_SYSTEM_IMAGE := true
PRODUCT_BUILD_SYSTEM_EXT_IMAGE := false
PRODUCT_BUILD_SYSTEM_OTHER_IMAGE := false
PRODUCT_BUILD_USERDATA_IMAGE := false
PRODUCT_BUILD_VENDOR_IMAGE := false
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_RESTRICT_VENDOR_FILES := all
PRODUCT_NAME := mainline_system_x86_arm PRODUCT_NAME := mainline_system_x86_arm
PRODUCT_DEVICE := mainline_x86_arm
PRODUCT_BRAND := generic

View file

@ -30,7 +30,7 @@ endif
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# #
# All components inherited here go to system_ext image # All components inherited here go to system_ext image

View file

@ -29,7 +29,7 @@ endif
# #
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# #
# All components inherited here go to system_ext image # All components inherited here go to system_ext image

View file

@ -24,7 +24,7 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
# #
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for exact this product name # Enable mainline checking for exact this product name
ifeq (sdk_phone_x86,$(TARGET_PRODUCT)) ifeq (sdk_phone_x86,$(TARGET_PRODUCT))

View file

@ -25,7 +25,7 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
# All components inherited here go to system image # All components inherited here go to system image
# #
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# Enable mainline checking for exact this product name # Enable mainline checking for exact this product name
ifeq (sdk_phone_x86_64,$(TARGET_PRODUCT)) ifeq (sdk_phone_x86_64,$(TARGET_PRODUCT))