2018-06-11 04:52:22 +00:00
|
|
|
# Copyright (C) 2018 The Android Open Source Project
|
2013-10-04 23:02:59 +00: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 04:52:22 +00:00
|
|
|
# arm64 emulator specific definitions
|
2014-01-22 03:35:38 +00:00
|
|
|
TARGET_ARCH := arm64
|
2013-10-04 23:02:59 +00:00
|
|
|
TARGET_ARCH_VARIANT := armv8-a
|
|
|
|
TARGET_CPU_VARIANT := generic
|
2014-01-22 03:35:38 +00:00
|
|
|
TARGET_CPU_ABI := arm64-v8a
|
2013-10-04 23:02:59 +00:00
|
|
|
|
2014-01-28 22:35:16 +00:00
|
|
|
TARGET_2ND_ARCH := arm
|
2014-08-19 12:03:01 +00:00
|
|
|
TARGET_2ND_CPU_ABI := armeabi-v7a
|
|
|
|
TARGET_2ND_CPU_ABI2 := armeabi
|
2014-08-18 18:20:07 +00:00
|
|
|
|
2020-03-19 05:40:53 +00:00
|
|
|
ifneq ($(TARGET_BUILD_APPS)$(filter cts sdk vts10,$(MAKECMDGOALS)),)
|
2014-08-18 18:20:07 +00: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 04:20:41 +00:00
|
|
|
# to build an unbundled application or cts for all supported 32 and 64 bit
|
2014-08-18 18:20:07 +00:00
|
|
|
# platforms.
|
|
|
|
#
|
|
|
|
# If you're building a 64 bit platform (and not an application) the
|
2017-08-23 10:58:57 +00: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-18 18:20:07 +00:00
|
|
|
#
|
2017-08-23 10:58:57 +00:00
|
|
|
# TARGET_2ND_ARCH_VARIANT := armv8-a
|
|
|
|
# TARGET_2ND_CPU_VARIANT := generic
|
2014-08-18 18:20:07 +00:00
|
|
|
#
|
|
|
|
# DO NOT USE
|
|
|
|
# DO NOT USE
|
2019-01-10 16:53:38 +00:00
|
|
|
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
|
2014-08-18 18:20:07 +00:00
|
|
|
# DO NOT USE
|
|
|
|
# DO NOT USE
|
2014-08-08 17:26:44 +00:00
|
|
|
TARGET_2ND_CPU_VARIANT := generic
|
2014-08-18 18:20:07 +00:00
|
|
|
# DO NOT USE
|
|
|
|
# DO NOT USE
|
|
|
|
else
|
2017-08-23 10:58:57 +00:00
|
|
|
TARGET_2ND_ARCH_VARIANT := armv8-a
|
|
|
|
TARGET_2ND_CPU_VARIANT := generic
|
2014-08-18 18:20:07 +00:00
|
|
|
endif
|
2014-01-28 22:35:16 +00:00
|
|
|
|
2018-06-11 04:52:22 +00:00
|
|
|
include build/make/target/board/BoardConfigGsiCommon.mk
|
2013-10-04 23:02:59 +00:00
|
|
|
|
2020-02-12 21:38:28 +00:00
|
|
|
TARGET_NO_KERNEL := false
|
2020-04-14 00:07:13 +00:00
|
|
|
TARGET_NO_VENDOR_BOOT := true
|
2020-02-12 21:38:28 +00:00
|
|
|
BOARD_USES_RECOVERY_AS_BOOT := true
|
|
|
|
|
2020-06-17 00:09:23 +00:00
|
|
|
BOARD_KERNEL-4.19-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
|
2020-05-08 00:32:10 +00:00
|
|
|
BOARD_KERNEL-5.4_BOOTIMAGE_PARTITION_SIZE := 67108864
|
2020-08-17 22:16:30 +00:00
|
|
|
BOARD_KERNEL-5.4-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 67108864
|
2020-05-08 00:32:10 +00:00
|
|
|
BOARD_KERNEL-5.4-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
|
2020-08-17 22:16:30 +00:00
|
|
|
BOARD_KERNEL-5.4-GZ-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 47185920
|
2020-05-08 00:32:10 +00:00
|
|
|
BOARD_KERNEL-5.4-LZ4_BOOTIMAGE_PARTITION_SIZE := 53477376
|
2020-08-17 22:16:30 +00:00
|
|
|
BOARD_KERNEL-5.4-LZ4-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 53477376
|
2020-07-23 22:08:33 +00: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-02 16:16:37 +00:00
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
|
2018-04-19 06:18:54 +00:00
|
|
|
|
2020-06-17 16:00:51 +00:00
|
|
|
BOARD_RAMDISK_USE_LZ4 := true
|
2020-02-12 21:38:28 +00:00
|
|
|
BOARD_BOOT_HEADER_VERSION := 3
|
|
|
|
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
|
|
|
|
|
2020-08-29 08:19:44 +00:00
|
|
|
BOARD_KERNEL_BINARIES := kernel-4.19-gz kernel-5.4 kernel-5.4-gz kernel-5.4-lz4 \
|
2020-07-23 22:08:33 +00:00
|
|
|
kernel-mainline kernel-mainline-gz kernel-mainline-lz4
|
2020-08-17 22:16:30 +00:00
|
|
|
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
|
|
|
|
BOARD_KERNEL_BINARIES += kernel-5.4-allsyms kernel-5.4-gz-allsyms kernel-5.4-lz4-allsyms
|
|
|
|
endif
|
2020-08-05 22:04:27 +00:00
|
|
|
BOARD_KERNEL_MODULE_INTERFACE_VERSIONS := 5.4-android12-0
|
2020-04-14 00:07:13 +00:00
|
|
|
|
|
|
|
# Some vendors still haven't cleaned up all device specific directories under
|
|
|
|
# root!
|
2018-04-19 06:18:54 +00:00
|
|
|
|
2018-07-13 10:52:42 +00:00
|
|
|
# TODO(b/111434759, b/111287060) SoC specific hacks
|
2018-10-19 08:40:33 +00:00
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
|
2018-07-13 10:52:42 +00:00
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
|
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/firmware_mnt:/firmware
|
2018-04-19 06:18:54 +00:00
|
|
|
|
|
|
|
# TODO(b/36764215): remove this setting when the generic system image
|
|
|
|
# no longer has QCOM-specific directories under /.
|
2019-06-25 10:09:23 +00:00
|
|
|
BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy
|