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-10-05 17:17:21 +00:00
|
|
|
ifneq ($(TARGET_BUILD_APPS)$(filter cts sdk,$(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
|
2021-05-14 09:25:12 +00:00
|
|
|
include build/make/target/board/BoardConfigGkiCommon.mk
|
2013-10-04 23:02:59 +00:00
|
|
|
|
2020-06-17 00:09:23 +00:00
|
|
|
BOARD_KERNEL-4.19-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
|
2021-06-29 07:27:09 +00:00
|
|
|
BOARD_KERNEL-4.19-GZ-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 47185920
|
2020-12-16 18:38:51 +00: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-23 22:08:33 +00:00
|
|
|
|
2014-04-02 16:16:37 +00:00
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
|
2018-04-19 06:18:54 +00:00
|
|
|
|
2020-12-16 18:38:51 +00:00
|
|
|
BOARD_KERNEL_BINARIES := \
|
|
|
|
kernel-4.19-gz \
|
|
|
|
kernel-5.10 kernel-5.10-gz kernel-5.10-lz4 \
|
|
|
|
|
2020-08-17 22:16:30 +00:00
|
|
|
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
|
2020-12-16 18:38:51 +00:00
|
|
|
BOARD_KERNEL_BINARIES += \
|
2021-06-29 07:27:09 +00:00
|
|
|
kernel-4.19-gz-allsyms \
|
2020-12-16 18:38:51 +00:00
|
|
|
kernel-5.10-allsyms kernel-5.10-gz-allsyms kernel-5.10-lz4-allsyms \
|
|
|
|
|
2020-08-17 22:16:30 +00:00
|
|
|
endif
|
2020-10-12 18:56:54 +00:00
|
|
|
|
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
|