diff options
-rw-r--r-- | AndroidProducts.mk | 10 | ||||
-rw-r--r-- | gsi_product.mk | 37 | ||||
-rw-r--r-- | gsi_system_ext.mk (renamed from mgsi/AndroidProducts.mk) | 26 | ||||
-rw-r--r-- | gsi_x86.mk | 47 | ||||
-rw-r--r-- | gsi_x86_64.mk | 48 |
5 files changed, 158 insertions, 10 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk index 7f4fdfb..658333d 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -16,3 +16,13 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/gsi_arm64.mk \ + $(LOCAL_DIR)/gsi_x86.mk \ + $(LOCAL_DIR)/gsi_x86_64.mk \ + $(LOCAL_DIR)/mgsi/csi_arm.mk \ + $(LOCAL_DIR)/mgsi/csi_arm64.mk \ + $(LOCAL_DIR)/mgsi/csi_x86.mk \ + $(LOCAL_DIR)/mgsi/csi_x86_64.mk \ + $(LOCAL_DIR)/mgsi/mgsi_arm.mk \ + $(LOCAL_DIR)/mgsi/mgsi_arm64.mk \ + $(LOCAL_DIR)/mgsi/mgsi_x86.mk \ + $(LOCAL_DIR)/mgsi/mgsi_x86_64.mk diff --git a/gsi_product.mk b/gsi_product.mk new file mode 100644 index 0000000..f955e2a --- /dev/null +++ b/gsi_product.mk @@ -0,0 +1,37 @@ +# +# Copyright (C) 2021 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 CTS on +# GSI compliance testing. Only add something here for this purpose. +$(call inherit-product, $(SRC_TARGET_DIR)/product/media_product.mk) + +PRODUCT_PACKAGES += \ + Browser2 \ + Camera2 \ + Dialer \ + messaging \ + +# Default AOSP sounds +$(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk) + +# Additional settings used in all AOSP builds +PRODUCT_PRODUCT_PROPERTIES += \ + ro.config.ringtone?=Ring_Synth_04.ogg \ + ro.config.notification_sound?=pixiedust.ogg \ + ro.com.android.dataroaming?=true \ + +PRODUCT_COPY_FILES += \ + device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml diff --git a/mgsi/AndroidProducts.mk b/gsi_system_ext.mk index 1b1f66e..45ff91f 100644 --- a/mgsi/AndroidProducts.mk +++ b/gsi_system_ext.mk @@ -1,5 +1,5 @@ # -# Copyright 2019 The Android Open-Source Project +# Copyright (C) 2021 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. @@ -14,12 +14,18 @@ # limitations under the License. # -PRODUCT_MAKEFILES := \ - device/generic/common/mgsi/csi_arm.mk \ - device/generic/common/mgsi/csi_arm64.mk \ - device/generic/common/mgsi/csi_x86.mk \ - device/generic/common/mgsi/csi_x86_64.mk \ - device/generic/common/mgsi/mgsi_arm.mk \ - device/generic/common/mgsi/mgsi_arm64.mk \ - device/generic/common/mgsi/mgsi_x86.mk \ - device/generic/common/mgsi/mgsi_x86_64.mk \ +# This makefile contains the system_ext partition contents for CTS on +# GSI compliance testing. Only add something here for this purpose. +$(call inherit-product, $(SRC_TARGET_DIR)/product/media_system_ext.mk) + +# handheld packages +PRODUCT_PACKAGES += \ + Launcher3QuickStep \ + Provision \ + Settings \ + StorageManager \ + SystemUI + +# telephony packages +PRODUCT_PACKAGES += \ + CarrierConfig diff --git a/gsi_x86.mk b/gsi_x86.mk new file mode 100644 index 0000000..ca88bed --- /dev/null +++ b/gsi_x86.mk @@ -0,0 +1,47 @@ +# +# Copyright (C) 2021 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) + +# Enable mainline checking +PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true + +# +# All components inherited here go to system_ext image +# +$(call inherit-product, device/generic/common/gsi_system_ext.mk) + +# +# All components below go to product image +# +$(call inherit-product, device/generic/common/gsi_product.mk) + +# +# Special settings to skip mount product and system_ext on the device, +# so this product can be tested isolated from those partitions. +# +$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) + +# Needed to build mk_combined_img used for creating mixed GSI/emu image +PRODUCT_SOONG_NAMESPACES += device/generic/goldfish + +PRODUCT_NAME := gsi_x86 +PRODUCT_DEVICE := generic_x86 +PRODUCT_BRAND := Android +PRODUCT_MODEL := x86 GSI diff --git a/gsi_x86_64.mk b/gsi_x86_64.mk new file mode 100644 index 0000000..d2e3b3a --- /dev/null +++ b/gsi_x86_64.mk @@ -0,0 +1,48 @@ +# +# Copyright (C) 2021 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) + +# Enable mainline checking +PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true + +# +# All components inherited here go to system_ext image +# +$(call inherit-product, device/generic/common/gsi_system_ext.mk) + +# +# All components below go to product image +# +$(call inherit-product, device/generic/common/gsi_product.mk) + +# +# Special settings to skip mount product and system_ext on the device, +# so this product can be tested isolated from those partitions. +# +$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) + +# Needed to build mk_combined_img used for creating mixed GSI/emu image +PRODUCT_SOONG_NAMESPACES += device/generic/goldfish + +PRODUCT_NAME := gsi_x86_64 +PRODUCT_DEVICE := generic_x86_64 +PRODUCT_BRAND := Android +PRODUCT_MODEL := x86_64 GSI |