diff options
-rw-r--r-- | AndroidProducts.mk | 2 | ||||
-rw-r--r-- | build/tasks/kernel.mk | 2 | ||||
-rw-r--r-- | db845c_mini.mk | 7 | ||||
-rw-r--r-- | mini-manifest.xml | 2 | ||||
-rw-r--r-- | mini.mk | 44 | ||||
-rw-r--r-- | rb5_mini.mk | 7 |
6 files changed, 63 insertions, 1 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk index 3982277..485438f 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -11,7 +11,9 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/db845c.mk \ + $(LOCAL_DIR)/db845c_mini.mk \ $(LOCAL_DIR)/rb5.mk \ + $(LOCAL_DIR)/rb5_mini.mk \ COMMON_LUNCH_CHOICES := \ db845c-userdebug \ diff --git a/build/tasks/kernel.mk b/build/tasks/kernel.mk index a16c54f..7723dc3 100644 --- a/build/tasks/kernel.mk +++ b/build/tasks/kernel.mk @@ -1,4 +1,4 @@ -ifneq ($(filter db845c, $(TARGET_DEVICE)),) +ifneq ($(filter db845c db845c_mini, $(TARGET_DEVICE)),) $(PRODUCT_OUT)/dtb.img: $(TARGET_KERNEL_DIR)/sdm845-db845c.dtb $(wildcard $(TARGET_KERNEL_DIR)/qrb5165-rb5.dtb) cat $^ > $@ diff --git a/db845c_mini.mk b/db845c_mini.mk new file mode 100644 index 0000000..01ff129 --- /dev/null +++ b/db845c_mini.mk @@ -0,0 +1,7 @@ +$(call inherit-product, device/linaro/dragonboard/mini.mk) +$(call inherit-product, device/linaro/dragonboard/db845c/device.mk) + +# Product overrides +PRODUCT_NAME := db845c_mini +PRODUCT_DEVICE := db845c +PRODUCT_BRAND := Android diff --git a/mini-manifest.xml b/mini-manifest.xml new file mode 100644 index 0000000..6d93a06 --- /dev/null +++ b/mini-manifest.xml @@ -0,0 +1,2 @@ +<manifest version="1.0" type="device" target-level="4"> +</manifest> @@ -0,0 +1,44 @@ +# +# Copyright (C) 2022 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. +# + +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_no_zygote.mk) +$(call inherit-product, device/generic/goldfish/minimal_system.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) + +PRODUCT_PACKAGES += \ + android.hardware.keymaster@4.1-service \ + android.hidl.allocator@1.0-service \ + android.system.suspend@1.0-service \ + com.android.i18n \ + com.android.runtime \ + keystore2 \ + init_vendor \ + libstatshidl \ + mediaserver \ + selinux_policy_nonsystem \ + system_compatibility_matrix.xml \ + system_manifest.xml \ + tune2fs \ + vdc \ + vendor_compatibility_matrix.xml \ + vendor_manifest.xml \ + +# Disable vintf manifest checking. The mini targets do not have the usual +# set of hardware interfaces, some of which are required by the vintf +# compatibility matrix. +PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := false +DEVICE_MANIFEST_FILE := device/linaro/dragonboard/mini-manifest.xml diff --git a/rb5_mini.mk b/rb5_mini.mk new file mode 100644 index 0000000..302e217 --- /dev/null +++ b/rb5_mini.mk @@ -0,0 +1,7 @@ +$(call inherit-product, device/linaro/dragonboard/mini.mk) +$(call inherit-product, device/linaro/dragonboard/rb5/device.mk) + +# Product overrides +PRODUCT_NAME := rb5_mini +PRODUCT_DEVICE := rb5 +PRODUCT_BRAND := Android |