Home | History | Annotate | Download | only in wingray
      1 # Copyright (C) 2010 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 # This file sets variables that control the way modules are built
     17 # thorughout the system. It should not be used to conditionally
     18 # disable makefiles (the proper mechanism to control what gets
     19 # included in a build is to use PRODUCT_PACKAGES in a product
     20 # definition file).
     21 #
     22 
     23 # WARNING: This line must come *before* including the proprietary
     24 # variant, so that it gets overwritten by the parent (which goes
     25 # against the traditional rules of inheritance).
     26 # The proprietary variant sets USE_CAMERA_STUB := false, this way
     27 # we use the camera stub when the vendor tree isn't present, and
     28 # the true camera library when the vendor tree is available.  Similarly,
     29 # we set USE_PROPRIETARY_AUDIO_EXTENSIONS to true in the proprietary variant as
     30 # well.
     31 USE_CAMERA_STUB := true
     32 USE_PROPRIETARY_AUDIO_EXTENSIONS := false
     33 
     34 # Use a smaller subset of system fonts to keep image size lower
     35 SMALLER_FONT_FOOTPRINT := true
     36 
     37 # inherit from the proprietary version
     38 # needed for BP-flashing updater extensions
     39 -include vendor/moto/stingray/BoardConfigVendor.mk
     40 
     41 TARGET_BOARD_PLATFORM := tegra
     42 
     43 TARGET_CPU_ABI := armeabi-v7a
     44 TARGET_CPU_ABI2 := armeabi
     45 TARGET_CPU_SMP := true
     46 TARGET_ARCH_VARIANT := armv7-a
     47 ARCH_ARM_HAVE_TLS_REGISTER := true
     48 
     49 TARGET_USERIMAGES_USE_EXT4 := true
     50 
     51 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 251658240
     52 BOARD_USERDATAIMAGE_PARTITION_SIZE := 31399067648
     53 BOARD_FLASH_BLOCK_SIZE := 4096
     54 
     55 # Wifi related defines
     56 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
     57 WPA_SUPPLICANT_VERSION      := VER_0_8_X
     58 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
     59 BOARD_HOSTAPD_DRIVER        := NL80211
     60 BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_bcmdhd
     61 BOARD_WLAN_DEVICE           := bcmdhd
     62 #WIFI_DRIVER_MODULE_PATH     := "/system/lib/modules/bcm4329.ko"
     63 WIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
     64 WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
     65 WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
     66 WIFI_DRIVER_FW_PATH_P2P     := "/vendor/firmware/fw_bcmdhd_p2p.bin"
     67 
     68 BOARD_USES_GENERIC_AUDIO := false
     69 
     70 BOARD_HAVE_BLUETOOTH := true
     71 BOARD_HAVE_BLUETOOTH_BCM := true
     72 
     73 BOARD_HAVE_GPS := true
     74 
     75 USE_OPENGL_RENDERER := true
     76 BOARD_EGL_CFG := device/moto/wingray/egl.cfg
     77 
     78 ifneq ($(HAVE_NVIDIA_PROP_SRC),false)
     79 # needed for source compilation of nvidia libraries
     80 -include vendor/nvidia/proprietary_src/build/definitions.mk
     81 -include vendor/nvidia/build/definitions.mk
     82 endif
     83 
     84 TARGET_RECOVERY_UI_LIB := librecovery_ui_stingray
     85 TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
     86 
     87 # Avoid the generation of ldrcc instructions
     88 NEED_WORKAROUND_CORTEX_A9_745320 := true
     89 BOARD_KERNEL_CMDLINE := androidboot.carrier=wifi-only product_type=w
     90 
     91 # Use the open-source board-info file if none was set by the vendor
     92 # config.
     93 TARGET_BOARD_INFO_FILE ?= device/moto/wingray/board-info.txt
     94