• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2018 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16# arm64 emulator specific definitions
17TARGET_ARCH := arm64
18TARGET_ARCH_VARIANT := armv8-a
19TARGET_CPU_VARIANT := generic
20TARGET_CPU_ABI := arm64-v8a
21
22TARGET_2ND_ARCH := arm
23TARGET_2ND_CPU_ABI := armeabi-v7a
24TARGET_2ND_CPU_ABI2 := armeabi
25
26ifneq ($(TARGET_BUILD_APPS)$(filter cts sdk,$(MAKECMDGOALS)),)
27# DO NOT USE
28# DO NOT USE
29#
30# This architecture / CPU variant must NOT be used for any 64 bit
31# platform builds. It is the lowest common denominator required
32# to build an unbundled application or cts for all supported 32 and 64 bit
33# platforms.
34#
35# If you're building a 64 bit platform (and not an application) the
36# ARM-v8 specification allows you to assume all the features available in an
37# armv7-a-neon CPU. You should set the following as 2nd arch/cpu variant:
38#
39# TARGET_2ND_ARCH_VARIANT := armv8-a
40# TARGET_2ND_CPU_VARIANT := generic
41#
42# DO NOT USE
43# DO NOT USE
44TARGET_2ND_ARCH_VARIANT := armv7-a-neon
45# DO NOT USE
46# DO NOT USE
47TARGET_2ND_CPU_VARIANT := generic
48# DO NOT USE
49# DO NOT USE
50else
51TARGET_2ND_ARCH_VARIANT := armv8-a
52TARGET_2ND_CPU_VARIANT := generic
53endif
54
55include build/make/target/board/BoardConfigGsiCommon.mk
56include build/make/target/board/BoardConfigGkiCommon.mk
57
58BOARD_KERNEL-4.19-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
59BOARD_KERNEL-4.19-GZ-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 47185920
60BOARD_KERNEL-5.4_BOOTIMAGE_PARTITION_SIZE := 67108864
61BOARD_KERNEL-5.4-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 67108864
62BOARD_KERNEL-5.4-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
63BOARD_KERNEL-5.4-GZ-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 47185920
64BOARD_KERNEL-5.4-LZ4_BOOTIMAGE_PARTITION_SIZE := 53477376
65BOARD_KERNEL-5.4-LZ4-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 53477376
66BOARD_KERNEL-5.10_BOOTIMAGE_PARTITION_SIZE := 67108864
67BOARD_KERNEL-5.10-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 67108864
68BOARD_KERNEL-5.10-GZ_BOOTIMAGE_PARTITION_SIZE := 47185920
69BOARD_KERNEL-5.10-GZ-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 47185920
70BOARD_KERNEL-5.10-LZ4_BOOTIMAGE_PARTITION_SIZE := 53477376
71BOARD_KERNEL-5.10-LZ4-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 53477376
72
73BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
74
75BOARD_KERNEL_BINARIES := \
76    kernel-4.19-gz \
77    kernel-5.4 kernel-5.4-gz kernel-5.4-lz4 \
78    kernel-5.10 kernel-5.10-gz kernel-5.10-lz4 \
79
80ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
81BOARD_KERNEL_BINARIES += \
82    kernel-4.19-gz-allsyms \
83    kernel-5.4-allsyms kernel-5.4-gz-allsyms kernel-5.4-lz4-allsyms \
84    kernel-5.10-allsyms kernel-5.10-gz-allsyms kernel-5.10-lz4-allsyms \
85
86endif
87
88# Some vendors still haven't cleaned up all device specific directories under
89# root!
90
91# TODO(b/111434759, b/111287060) SoC specific hacks
92BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
93BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
94BOARD_ROOT_EXTRA_SYMLINKS += /vendor/firmware_mnt:/firmware
95
96# TODO(b/36764215): remove this setting when the generic system image
97# no longer has QCOM-specific directories under /.
98BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy
99