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# x86_64 emulator specific definitions
17TARGET_CPU_ABI := x86_64
18TARGET_ARCH := x86_64
19TARGET_ARCH_VARIANT := x86_64
20
21TARGET_2ND_CPU_ABI := x86
22TARGET_2ND_ARCH := x86
23TARGET_2ND_ARCH_VARIANT := x86_64
24
25include build/make/target/board/BoardConfigGsiCommon.mk
26
27ifdef BUILDING_GSI
28include build/make/target/board/BoardConfigGkiCommon.mk
29
30BOARD_KERNEL-5.4_BOOTIMAGE_PARTITION_SIZE := 67108864
31BOARD_KERNEL-5.4-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 67108864
32BOARD_KERNEL-5.10_BOOTIMAGE_PARTITION_SIZE := 67108864
33BOARD_KERNEL-5.10-ALLSYMS_BOOTIMAGE_PARTITION_SIZE := 67108864
34
35BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
36
37BOARD_KERNEL_BINARIES := \
38    kernel-5.4 \
39    kernel-5.10 \
40
41ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
42BOARD_KERNEL_BINARIES += \
43    kernel-5.4-allsyms \
44    kernel-5.10-allsyms \
45
46endif
47
48else # BUILDING_GSI
49include build/make/target/board/BoardConfigEmuCommon.mk
50
51BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
52
53BOARD_SEPOLICY_DIRS += device/generic/goldfish/sepolicy/x86
54
55# Wifi.
56BOARD_WLAN_DEVICE           := emulator
57BOARD_HOSTAPD_DRIVER        := NL80211
58BOARD_WPA_SUPPLICANT_DRIVER := NL80211
59BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_simulated
60BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated
61WPA_SUPPLICANT_VERSION      := VER_0_8_X
62WIFI_DRIVER_FW_PATH_PARAM   := "/dev/null"
63WIFI_DRIVER_FW_PATH_STA     := "/dev/null"
64WIFI_DRIVER_FW_PATH_AP      := "/dev/null"
65
66endif # BUILDING_GSI
67