Steve Muckle | 1e1514a | 2020-04-13 17:30:57 -0700 | [diff] [blame] | 1 | # Copyright (C) 2020 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 |
| 17 | TARGET_ARCH := arm64 |
| 18 | TARGET_ARCH_VARIANT := armv8-a |
| 19 | TARGET_CPU_VARIANT := generic |
| 20 | TARGET_CPU_ABI := arm64-v8a |
| 21 | |
| 22 | TARGET_2ND_ARCH := arm |
| 23 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 24 | TARGET_2ND_CPU_ABI2 := armeabi |
| 25 | |
Dan Shi | 82c4cb7 | 2020-10-05 10:17:21 -0700 | [diff] [blame^] | 26 | ifneq ($(TARGET_BUILD_APPS)$(filter cts sdk,$(MAKECMDGOALS)),) |
Steve Muckle | 1e1514a | 2020-04-13 17:30:57 -0700 | [diff] [blame] | 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 |
| 44 | TARGET_2ND_ARCH_VARIANT := armv7-a-neon |
| 45 | # DO NOT USE |
| 46 | # DO NOT USE |
| 47 | TARGET_2ND_CPU_VARIANT := generic |
| 48 | # DO NOT USE |
| 49 | # DO NOT USE |
| 50 | else |
| 51 | TARGET_2ND_ARCH_VARIANT := armv8-a |
| 52 | TARGET_2ND_CPU_VARIANT := generic |
| 53 | endif |
| 54 | |
| 55 | include build/make/target/board/BoardConfigGsiCommon.mk |
| 56 | include build/make/target/board/BoardConfigEmuCommon.mk |
| 57 | |
| 58 | TARGET_NO_KERNEL := false |
| 59 | TARGET_NO_VENDOR_BOOT := false |
| 60 | BOARD_USES_RECOVERY_AS_BOOT := true |
| 61 | |
| 62 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x02000000 |
| 63 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 |
| 64 | |
| 65 | BOARD_BOOT_HEADER_VERSION := 3 |
| 66 | BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 67 | |
| 68 | # Wifi. |
| 69 | BOARD_WLAN_DEVICE := emulator |
| 70 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 71 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 72 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated |
| 73 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated |
| 74 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 75 | WIFI_DRIVER_FW_PATH_PARAM := "/dev/null" |
| 76 | WIFI_DRIVER_FW_PATH_STA := "/dev/null" |
| 77 | WIFI_DRIVER_FW_PATH_AP := "/dev/null" |