forked from openkylin/platform_build
66 lines
2.4 KiB
Makefile
66 lines
2.4 KiB
Makefile
#
|
|
# 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 with no telephony.
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk)
|
|
|
|
# Enable dynamic partition size
|
|
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
|
|
|
|
PRODUCT_NAME := mainline_system
|
|
PRODUCT_BRAND := generic
|
|
PRODUCT_SHIPPING_API_LEVEL := 28
|
|
|
|
_base_mk_whitelist := \
|
|
recovery/root/etc/mke2fs.conf \
|
|
|
|
ifeq ($(PRODUCT_USE_FASTBOOTD), true)
|
|
_base_mk_whitelist += \
|
|
recovery/root/system/bin/fastbootd \
|
|
recovery/root/system/lib64/android.hardware.boot@1.0.so \
|
|
recovery/root/system/lib64/hw/bootctrl.default.so \
|
|
recovery/root/system/lib64/libadbd.so \
|
|
recovery/root/system/lib64/libadbd_services.so \
|
|
recovery/root/system/lib64/libasyncio.so \
|
|
recovery/root/system/lib64/libbootloader_message.so \
|
|
recovery/root/system/lib64/libcrypto_utils.so \
|
|
recovery/root/system/lib64/libext2_uuid.so \
|
|
recovery/root/system/lib64/libext4_utils.so \
|
|
recovery/root/system/lib64/libfec.so \
|
|
recovery/root/system/lib64/libfec_rs.so \
|
|
recovery/root/system/lib64/libfs_mgr.so \
|
|
recovery/root/system/lib64/libhidlbase.so \
|
|
recovery/root/system/lib64/libhidltransport.so \
|
|
recovery/root/system/lib64/libhwbinder.so \
|
|
recovery/root/system/lib64/libkeyutils.so \
|
|
recovery/root/system/lib64/liblogwrap.so \
|
|
recovery/root/system/lib64/liblp.so \
|
|
recovery/root/system/lib64/libmdnssd.so \
|
|
recovery/root/system/lib64/libsparse.so \
|
|
recovery/root/system/lib64/libsquashfs_utils.so \
|
|
recovery/root/system/lib64/libutils.so
|
|
endif
|
|
|
|
_my_whitelist := $(_base_mk_whitelist)
|
|
|
|
# Both /system and / are in system.img when PRODUCT_SHIPPING_API_LEVEL>=28.
|
|
_my_paths := \
|
|
$(TARGET_COPY_OUT_ROOT) \
|
|
$(TARGET_COPY_OUT_SYSTEM) \
|
|
|
|
$(call require-artifacts-in-path, $(_my_paths), $(_my_whitelist))
|