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
|
2019-03-07 18:03:41 +00:00
|
|
|
include build/make/target/board/BoardConfigEmuCommon.mk
|
2013-10-04 23:02:59 +00:00
|
|
|
|
2020-02-12 21:38:28 +00:00
|
|
|
TARGET_NO_KERNEL := false
|
2020-03-31 03:16:13 +00:00
|
|
|
TARGET_NO_VENDOR_BOOT := false
|
2020-02-12 21:38:28 +00:00
|
|
|
BOARD_USES_RECOVERY_AS_BOOT := true
|
|
|
|
|
|
|
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x02000000
|
2014-04-02 16:16:37 +00:00
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
|
2018-04-19 06:18:54 +00:00
|
|
|
|
2020-02-12 21:38:28 +00:00
|
|
|
BOARD_BOOT_HEADER_VERSION := 3
|
|
|
|
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
|
|
|
|
|
2018-04-19 06:18:54 +00:00
|
|
|
# Emulator system image is going to be used as GSI and some vendor still hasn't
|
|
|
|
# cleaned up all device specific directories under root!
|
|
|
|
|
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
|
2018-04-19 06:18:54 +00:00
|
|
|
|
2017-05-04 17:51:02 +00:00
|
|
|
# Wifi.
|
2017-11-15 01:10:44 +00:00
|
|
|
BOARD_WLAN_DEVICE := emulator
|
2017-05-04 17:51:02 +00:00
|
|
|
BOARD_HOSTAPD_DRIVER := NL80211
|
|
|
|
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
|
|
|
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated
|
|
|
|
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated
|
|
|
|
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
|
|
|
WIFI_DRIVER_FW_PATH_PARAM := "/dev/null"
|
|
|
|
WIFI_DRIVER_FW_PATH_STA := "/dev/null"
|
|
|
|
WIFI_DRIVER_FW_PATH_AP := "/dev/null"
|