BoardConfigCommon.mk revision 7b97740f1d9d3bd4852e370e4c59f748b2f24360
1a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# Copyright (C) 2010 The Android Open Source Project
2a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru#
3a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# Licensed under the Apache License, Version 2.0 (the "License");
4a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# you may not use this file except in compliance with the License.
5a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# You may obtain a copy of the License at
6a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru#
7a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru#      http://www.apache.org/licenses/LICENSE-2.0
8a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru#
9a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# Unless required by applicable law or agreed to in writing, software
10a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# distributed under the License is distributed on an "AS IS" BASIS,
11a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# See the License for the specific language governing permissions and
13a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# limitations under the License.
14a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
15a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru#
16a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# This file sets variables that control the way modules are built
17a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# thorughout the system. It should not be used to conditionally
18a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# disable makefiles (the proper mechanism to control what gets
19a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# included in a build is to use PRODUCT_PACKAGES in a product
20a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# definition file).
21a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru#
22a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
23a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# inherit from the proprietary version
24a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# needed for BP-flashing updater extensions
25a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
262c9956ef4a1346c13b17fb03c40dc8faaec3ae23Wink Saville# Default value, if not overridden else where.
272c9956ef4a1346c13b17fb03c40dc8faaec3ae23Wink SavilleBOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR ?= device/asus/grouper/bluetooth
282c9956ef4a1346c13b17fb03c40dc8faaec3ae23Wink Saville
29a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruTARGET_BOARD_PLATFORM := tegra3
30a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruTARGET_TEGRA_VERSION := t30
31a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
32a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruTARGET_CPU_ABI := armeabi-v7a
33a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruTARGET_CPU_ABI2 := armeabi
34a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruTARGET_CPU_SMP := true
35a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruTARGET_ARCH := arm
36a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruTARGET_ARCH_VARIANT := armv7-a-neon
37aee493bf55715f983c26f32e81d911f5304c9a3cChristopher FerrisTARGET_CPU_VARIANT := cortex-a9
38a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
39a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruTARGET_USERIMAGES_USE_EXT4 := true
40a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
41a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_SYSTEMIMAGE_PARTITION_SIZE := 681574400
42a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_USERDATAIMAGE_PARTITION_SIZE := 6567231488
43a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_FLASH_BLOCK_SIZE := 4096
44a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
45a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# Wifi related defines
46a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_WPA_SUPPLICANT_DRIVER := NL80211
47a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruWPA_SUPPLICANT_VERSION      := VER_0_8_X
48a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
49a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_HOSTAPD_DRIVER        := NL80211
50a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_bcmdhd
51a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_WLAN_DEVICE           := bcmdhd
52a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru#WIFI_DRIVER_MODULE_PATH     := "/system/lib/modules/bcm4329.ko"
53a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruWIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
54a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruWIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
55a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruWIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
56a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
57a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruTARGET_BOOTLOADER_BOARD_NAME := grouper
58a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
59a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_USES_GENERIC_AUDIO := false
60a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_USES_ALSA_AUDIO := false
61a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
62a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_USES_GENERIC_INVENSENSE := false
63a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
64a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_HAVE_BLUETOOTH := true
65a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_HAVE_BLUETOOTH_BCM := true
66a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
67a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruUSE_OPENGL_RENDERER := true
68a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruBOARD_EGL_CFG := device/asus/grouper/egl.cfg
69a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
70a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queruifneq ($(HAVE_NVIDIA_PROP_SRC),false)
71a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# needed for source compilation of nvidia libraries
72a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru-include vendor/nvidia/proprietary_src/build/definitions.mk
73a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru-include vendor/nvidia/build/definitions.mk
74a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queruendif
75a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
76a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru# Avoid the generation of ldrcc instructions
77a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste QueruNEED_WORKAROUND_CORTEX_A9_745320 := true
78a057d5d0b095a5442923d0427d8792be0d59af54Jean-Baptiste Queru
79125fd3e6d914d0b7b83df4f8d5a7061ebbf239e5Ramanan RajeswaranBOARD_USES_GROUPER_MODULES := true
80afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig
8145dc0f499e86667eee293c80b6ab2cbbd5aa8f76Jesse HallTARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true
82bcdf76076bdb6a3dfb728ee8165e23aefede2f95Jesse Hall
83afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraigBOARD_SEPOLICY_DIRS += \
84afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        device/asus/grouper/sepolicy
85afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig
86afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraigBOARD_SEPOLICY_UNION += \
87afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        file_contexts \
88afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        genfs_contexts \
897b97740f1d9d3bd4852e370e4c59f748b2f24360Stephen Smalley        bluetooth.te \
90afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        device.te \
91afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        drmserver.te \
92afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        init_shell.te \
93afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        file.te \
9426dc522dd34e6ff127845d0af36d38ae7342db64Stephen Smalley        gpsd.te \
9526dc522dd34e6ff127845d0af36d38ae7342db64Stephen Smalley        keystore.te \
9627980970a99d5ba3fd39d3d5612e2c5c49a5b3c8rpcraig        mediaserver.te \
97afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        rild.te \
98afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        sensors_config.te \
99afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        shell.te \
100afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        surfaceflinger.te \
101afb7a0a5bf30ed967cf91d96e7f3100123d93455rpcraig        system_app.te \
102edc8b9da86dadb624da0eb8a032f094254324272Nick Kralevich        system_server.te \
103edc8b9da86dadb624da0eb8a032f094254324272Nick Kralevich        ueventd.te
104