aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbohu2018-10-18 02:27:28 -0500
committerandroid-build-merger2018-10-18 02:27:28 -0500
commitef14e322c2f019d009d0e30fdbd95afd127e717c (patch)
tree42c8ed1fdb9eb05fb599e1df874b1e600779946b /target/board
parentdfb64ca033524034ea6bdc10fc268180811b924a (diff)
parent569ddd300b487ec150414786fbbb1c568ffc1542 (diff)
downloadplatform-build-ef14e322c2f019d009d0e30fdbd95afd127e717c.tar.gz
platform-build-ef14e322c2f019d009d0e30fdbd95afd127e717c.tar.xz
platform-build-ef14e322c2f019d009d0e30fdbd95afd127e717c.zip
Merge "fix generic_x86_arm"
am: 569ddd300b Change-Id: I66338017c69b4ecfad9c630b1f9cbc6c45041d86
Diffstat (limited to 'target/board')
-rw-r--r--target/board/generic_x86_arm/BoardConfig.mk52
-rw-r--r--target/board/generic_x86_arm/README.txt10
-rw-r--r--target/board/generic_x86_arm/device.mk24
-rw-r--r--target/board/generic_x86_arm/system.prop5
4 files changed, 57 insertions, 34 deletions
diff --git a/target/board/generic_x86_arm/BoardConfig.mk b/target/board/generic_x86_arm/BoardConfig.mk
index d1e488408..8e70b2589 100644
--- a/target/board/generic_x86_arm/BoardConfig.mk
+++ b/target/board/generic_x86_arm/BoardConfig.mk
@@ -1,4 +1,4 @@
1# Copyright (C) 2016 The Android Open Source Project 1# Copyright (C) 2018 The Android Open Source Project
2# 2#
3# Licensed under the Apache License, Version 2.0 (the "License"); 3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License. 4# you may not use this file except in compliance with the License.
@@ -13,11 +13,7 @@
13# limitations under the License. 13# limitations under the License.
14# 14#
15 15
16# Configuration for generic_x86 + arm libraries needed by binary translation. 16# x86 emulator specific definitions
17
18# The generic product target doesn't have any hardware-specific pieces.
19TARGET_NO_BOOTLOADER := true
20TARGET_NO_KERNEL := true
21TARGET_CPU_ABI := x86 17TARGET_CPU_ABI := x86
22TARGET_ARCH := x86 18TARGET_ARCH := x86
23TARGET_ARCH_VARIANT := x86 19TARGET_ARCH_VARIANT := x86
@@ -28,39 +24,27 @@ TARGET_2ND_CPU_ABI2 := armeabi
28TARGET_2ND_ARCH_VARIANT := armv7-a 24TARGET_2ND_ARCH_VARIANT := armv7-a
29TARGET_2ND_CPU_VARIANT := generic 25TARGET_2ND_CPU_VARIANT := generic
30 26
31# Tell the build system this isn't a typical 64bit+32bit multilib configuration. 27TARGET_CPU_ABI_LIST := x86 armeabi-v7a armeabi
32TARGET_TRANSLATE_2ND_ARCH := true 28TARGET_TRANSLATE_2ND_ARCH := true
33 29
34BUILD_BROKEN_DUP_RULES := true 30BUILD_BROKEN_DUP_RULES := true
35 31
36# no hardware camera
37USE_CAMERA_STUB := true
38
39# Enable dex-preoptimization to speed up the first boot sequence
40# of an SDK AVD. Note that this operation only works on Linux for now
41ifeq ($(HOST_OS),linux)
42 ifeq ($(WITH_DEXPREOPT),)
43 WITH_DEXPREOPT := true
44 WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false
45 endif
46endif
47
48TARGET_USES_HWC2 := true
49NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
50 32
51# Build OpenGLES emulation host and guest libraries 33include build/make/target/board/BoardConfigEmuCommon.mk
52BUILD_EMULATOR_OPENGL := true 34include build/make/target/board/BoardConfigGsiCommon.mk
53 35
54# Build and enable the OpenGL ES View renderer. When running on the emulator, 36# Resize to 4G to accomodate ASAN and CTS
55# the GLES renderer disables itself if host GL acceleration isn't available. 37BOARD_USERDATAIMAGE_PARTITION_SIZE := 4294967296
56USE_OPENGL_RENDERER := true
57 38
58TARGET_USERIMAGES_USE_EXT4 := true 39BOARD_SEPOLICY_DIRS += device/generic/goldfish/sepolicy/x86
59BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1879048192 # 1.75 GB
60BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
61BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
62BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
63BOARD_FLASH_BLOCK_SIZE := 512
64TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
65 40
66BOARD_SEPOLICY_DIRS += device/generic/goldfish/sepolicy/common 41# Wifi.
42BOARD_WLAN_DEVICE := emulator
43BOARD_HOSTAPD_DRIVER := NL80211
44BOARD_WPA_SUPPLICANT_DRIVER := NL80211
45BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated
46BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated
47WPA_SUPPLICANT_VERSION := VER_0_8_X
48WIFI_DRIVER_FW_PATH_PARAM := "/dev/null"
49WIFI_DRIVER_FW_PATH_STA := "/dev/null"
50WIFI_DRIVER_FW_PATH_AP := "/dev/null"
diff --git a/target/board/generic_x86_arm/README.txt b/target/board/generic_x86_arm/README.txt
new file mode 100644
index 000000000..05f7ca2d3
--- /dev/null
+++ b/target/board/generic_x86_arm/README.txt
@@ -0,0 +1,10 @@
1The "generic_x86_arm" product defines a non-hardware-specific IA target
2without a kernel or bootloader.
3
4It can be used to build the entire user-level system, and
5will work with the IA version of the emulator,
6
7It is not a product "base class"; no other products inherit
8from it or use it in any way.
9
10Third party arm to x86 translator has to be installed as well
diff --git a/target/board/generic_x86_arm/device.mk b/target/board/generic_x86_arm/device.mk
new file mode 100644
index 000000000..0a3241511
--- /dev/null
+++ b/target/board/generic_x86_arm/device.mk
@@ -0,0 +1,24 @@
1#
2# Copyright (C) 2009 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# NFC:
18# Provide default libnfc-nci.conf file for devices that does not have one in
19# vendor/etc because aosp system image (of aosp_$arch products) is going to
20# be used as GSI.
21# May need to remove the following for newly launched devices in P since this
22# NFC configuration file should be in vendor/etc, instead of system/etc
23PRODUCT_COPY_FILES += \
24 device/generic/common/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf
diff --git a/target/board/generic_x86_arm/system.prop b/target/board/generic_x86_arm/system.prop
new file mode 100644
index 000000000..64829f3ce
--- /dev/null
+++ b/target/board/generic_x86_arm/system.prop
@@ -0,0 +1,5 @@
1#
2# system.prop for generic sdk
3#
4
5rild.libpath=/vendor/lib/libreference-ril.so