summaryrefslogtreecommitdiff
path: root/tc0/device.mk
blob: f93983e9d07958201e091b196ffcdba83087de0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# Copyright (C) 2020 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.
#

PRODUCT_COPY_FILES += \
  $(LOCAL_PATH)/fstab.total_compute:$(TARGET_COPY_OUT_RAMDISK)/fstab.total_compute \
  $(LOCAL_PATH)/fstab.total_compute:$(TARGET_COPY_OUT_ROOT)/fstab.total_compute

# verify system image using avb when built with userdebug and user profiles only
ifeq ($(TARGET_BUILD_VARIANT),eng)
PRODUCT_COPY_FILES += \
    $(call arm-fstab-copy, $(LOCAL_PATH)/fstab.total_compute, fstab.total_compute)
else
PRODUCT_COPY_FILES += \
    $(call arm-fstab-copy, $(LOCAL_PATH)/fstab.total_compute_avb, fstab.total_compute)
endif

# Boot image is only built in user and userdebug modes, In these modes,
# the kernel Image is copied to device profile and used to build the boot image.
# The boot image is signed during Android Verified Boot process.
ifneq ($(TARGET_BUILD_VARIANT),eng)
PRODUCT_COPY_FILES += \
    $(LOCAL_PATH)/Image:kernel
endif