631900e6ce
Non-A/B devices using AOSP OTA flow will mount /cache in the fstab file. Without setting BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE, /cache will be a symlink to /data/cache which introduces the failure of `mount_all /vendor/etc/fstab.{ro.hardware}`. This is because all devices laucned in P need to switch to "system-as-root". This CL sets board config to create /cache directory in rootfs (system-as-root GSI image). Note that A/B devices doesn't mount or use /cache so leaving an empty /cache in rootfs has no harm. Bug: 78485405 Test: Boot GSI on walleye Change-Id: Ic260d2917cc64c9497f5f60ea11303e953e80efd Merged-In: Ic260d2917cc64c9497f5f60ea11303e953e80efd
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
#
|
|
# Copyright (C) 2017 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.
|
|
#
|
|
|
|
include build/make/target/board/treble_common_64.mk
|
|
|
|
TARGET_CPU_ABI := x86_64
|
|
TARGET_ARCH := x86_64
|
|
TARGET_ARCH_VARIANT := x86_64
|
|
|
|
TARGET_2ND_CPU_ABI := x86
|
|
TARGET_2ND_ARCH := x86
|
|
TARGET_2ND_ARCH_VARIANT := x86_64
|
|
|
|
# Set this to create /cache mount point for non-A/B devices that mounts /cache.
|
|
# The partition size doesn't matter, just to make build pass.
|
|
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216
|
|
|
|
# Enable A/B update
|
|
TARGET_NO_RECOVERY := true
|
|
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
|