2018-06-11 12:52:22 +08:00
|
|
|
# Copyright (C) 2018 The Android Open Source Project
|
2013-10-05 07:02:59 +08:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2018-06-11 12:52:22 +08:00
|
|
|
# arm64 emulator specific definitions
|
2014-01-22 11:35:38 +08:00
|
|
|
TARGET_ARCH := arm64
|
2013-10-05 07:02:59 +08:00
|
|
|
TARGET_ARCH_VARIANT := armv8-a
|
|
|
|
TARGET_CPU_VARIANT := generic
|
2014-01-22 11:35:38 +08:00
|
|
|
TARGET_CPU_ABI := arm64-v8a
|
2013-10-05 07:02:59 +08:00
|
|
|
|
2014-01-29 06:35:16 +08:00
|
|
|
TARGET_2ND_ARCH := arm
|
2014-08-19 20:03:01 +08:00
|
|
|
TARGET_2ND_CPU_ABI := armeabi-v7a
|
|
|
|
TARGET_2ND_CPU_ABI2 := armeabi
|
2014-08-19 02:20:07 +08:00
|
|
|
|
2020-10-06 01:17:21 +08:00
|
|
|
ifneq ($(TARGET_BUILD_APPS)$(filter cts sdk,$(MAKECMDGOALS)),)
|
2014-08-19 02:20:07 +08:00
|
|
|
# DO NOT USE
|
|
|
|
# DO NOT USE
|
|
|
|
#
|
|
|
|
# This architecture / CPU variant must NOT be used for any 64 bit
|
|
|
|
# platform builds. It is the lowest common denominator required
|
2014-10-22 12:20:41 +08:00
|
|
|
# to build an unbundled application or cts for all supported 32 and 64 bit
|
2014-08-19 02:20:07 +08:00
|
|
|
# platforms.
|
|
|
|
#
|
|
|
|
# If you're building a 64 bit platform (and not an application) the
|
2017-08-23 18:58:57 +08:00
|
|
|
# ARM-v8 specification allows you to assume all the features available in an
|
|
|
|
# armv7-a-neon CPU. You should set the following as 2nd arch/cpu variant:
|
2014-08-19 02:20:07 +08:00
|
|
|
#
|
2017-08-23 18:58:57 +08:00
|
|
|
# TARGET_2ND_ARCH_VARIANT := armv8-a
|
|
|
|
# TARGET_2ND_CPU_VARIANT := generic
|
2014-08-19 02:20:07 +08:00
|
|
|
#
|
|
|
|
# DO NOT USE
|
|
|
|
# DO NOT USE
|
2019-01-11 00:53:38 +08:00
|
|
|
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
|
2014-08-19 02:20:07 +08:00
|
|
|
# DO NOT USE
|
|
|
|
# DO NOT USE
|
2014-08-09 01:26:44 +08:00
|
|
|
TARGET_2ND_CPU_VARIANT := generic
|
2014-08-19 02:20:07 +08:00
|
|
|
# DO NOT USE
|
|
|
|
# DO NOT USE
|
|
|
|
else
|
2017-08-23 18:58:57 +08:00
|
|
|
TARGET_2ND_ARCH_VARIANT := armv8-a
|
|
|
|
TARGET_2ND_CPU_VARIANT := generic
|
2014-08-19 02:20:07 +08:00
|
|
|
endif
|
2014-01-29 06:35:16 +08:00
|
|
|
|
2018-06-11 12:52:22 +08:00
|
|
|
include build/make/target/board/BoardConfigGsiCommon.mk
|
2013-10-05 07:02:59 +08:00
|
|
|
|
2020-06-17 08:09:23 +08:00
|
|
|
BOARD_KERNEL-4.19-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
|
2020-05-08 08:32:10 +08:00
|
|
|
BOARD_KERNEL-5.4_BOOTIMAGE_PARTITION_SIZE := 67108864
|
2020-08-18 06:16:30 +08:00
|
|
|
BOARD_KERNEL-5.4-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 67108864
|
2020-05-08 08:32:10 +08:00
|
|
|
BOARD_KERNEL-5.4-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
|
2020-08-18 06:16:30 +08:00
|
|
|
BOARD_KERNEL-5.4-GZ-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 47185920
|
2020-05-08 08:32:10 +08:00
|
|
|
BOARD_KERNEL-5.4-LZ4_BOOTIMAGE_PARTITION_SIZE := 53477376
|
2020-08-18 06:16:30 +08:00
|
|
|
BOARD_KERNEL-5.4-LZ4-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 53477376
|
2020-12-17 02:38:51 +08:00
|
|
|
BOARD_KERNEL-5.10_BOOTIMAGE_PARTITION_SIZE := 67108864
|
|
|
|
BOARD_KERNEL-5.10-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 67108864
|
|
|
|
BOARD_KERNEL-5.10-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
|
|
|
|
BOARD_KERNEL-5.10-GZ-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 47185920
|
|
|
|
BOARD_KERNEL-5.10-LZ4_BOOTIMAGE_PARTITION_SIZE := 53477376
|
|
|
|
BOARD_KERNEL-5.10-LZ4-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 53477376
|
2020-07-24 06:08:33 +08:00
|
|
|
BOARD_KERNEL-MAINLINE_BOOTIMAGE_PARTITION_SIZE := 67108864
|
|
|
|
BOARD_KERNEL-MAINLINE-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
|
|
|
|
BOARD_KERNEL-MAINLINE-LZ4_BOOTIMAGE_PARTITION_SIZE := 53477376
|
|
|
|
|
2014-04-03 00:16:37 +08:00
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
|
2018-04-19 14:18:54 +08:00
|
|
|
|
2020-06-18 00:00:51 +08:00
|
|
|
BOARD_RAMDISK_USE_LZ4 := true
|
2020-02-13 05:38:28 +08:00
|
|
|
BOARD_BOOT_HEADER_VERSION := 3
|
|
|
|
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
|
|
|
|
|
2020-12-17 02:38:51 +08:00
|
|
|
BOARD_KERNEL_BINARIES := \
|
|
|
|
kernel-4.19-gz \
|
|
|
|
kernel-5.4 kernel-5.4-gz kernel-5.4-lz4 \
|
|
|
|
kernel-5.10 kernel-5.10-gz kernel-5.10-lz4 \
|
|
|
|
kernel-mainline kernel-mainline-gz kernel-mainline-lz4 \
|
|
|
|
|
2020-08-18 06:16:30 +08:00
|
|
|
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
|
2020-12-17 02:38:51 +08:00
|
|
|
BOARD_KERNEL_BINARIES += \
|
|
|
|
kernel-5.4-allsyms kernel-5.4-gz-allsyms kernel-5.4-lz4-allsyms \
|
|
|
|
kernel-5.10-allsyms kernel-5.10-gz-allsyms kernel-5.10-lz4-allsyms \
|
|
|
|
|
2020-08-18 06:16:30 +08:00
|
|
|
endif
|
2020-10-13 02:56:54 +08:00
|
|
|
|
|
|
|
# Boot image
|
|
|
|
BOARD_USES_RECOVERY_AS_BOOT :=
|
|
|
|
TARGET_NO_KERNEL := false
|
|
|
|
BOARD_USES_GENERIC_KERNEL_IMAGE := true
|
2020-12-17 02:38:51 +08:00
|
|
|
BOARD_KERNEL_MODULE_INTERFACE_VERSIONS := \
|
|
|
|
5.4-android12-0 \
|
|
|
|
5.10-android12-0 \
|
|
|
|
|
2020-11-10 03:52:52 +08:00
|
|
|
# Copy boot image in $OUT to target files. This is defined for targets where
|
|
|
|
# the installed GKI APEXes are built from source.
|
|
|
|
BOARD_COPY_BOOT_IMAGE_TO_TARGET_FILES := true
|
2020-04-14 08:07:13 +08:00
|
|
|
|
2020-10-13 02:56:54 +08:00
|
|
|
# No vendor_boot
|
|
|
|
BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT :=
|
|
|
|
|
|
|
|
# No recovery
|
|
|
|
BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE :=
|
|
|
|
|
2020-04-14 08:07:13 +08:00
|
|
|
# Some vendors still haven't cleaned up all device specific directories under
|
|
|
|
# root!
|
2018-04-19 14:18:54 +08:00
|
|
|
|
2018-07-13 18:52:42 +08:00
|
|
|
# TODO(b/111434759, b/111287060) SoC specific hacks
|
2018-10-19 16:40:33 +08:00
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
|
2018-07-13 18:52:42 +08:00
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
|
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/firmware_mnt:/firmware
|
2018-04-19 14:18:54 +08:00
|
|
|
|
|
|
|
# TODO(b/36764215): remove this setting when the generic system image
|
|
|
|
# no longer has QCOM-specific directories under /.
|
2019-06-25 18:09:23 +08:00
|
|
|
BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy
|