Home | History | Annotate | Download | only in flo
      1 #
      2 # Copyright (C) 2011 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 TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
     18 TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
     19 TARGET_CPU_ABI := armeabi-v7a
     20 TARGET_CPU_ABI2 := armeabi
     21 TARGET_CPU_SMP := true
     22 TARGET_ARCH := arm
     23 TARGET_ARCH_VARIANT := armv7-a-neon
     24 TARGET_CPU_VARIANT := krait
     25 ARCH_ARM_HAVE_TLS_REGISTER := true
     26 
     27 TARGET_NO_BOOTLOADER := false
     28 
     29 BOARD_KERNEL_BASE := 0x80200000
     30 BOARD_KERNEL_PAGESIZE := 2048
     31 # BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=msm8960 maxcpus=2
     32 BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=flo user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3
     33 BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000
     34 
     35 BOARD_USES_ALSA_AUDIO:= true
     36 BOARD_USES_LEGACY_ALSA_AUDIO:= false
     37 BOARD_USES_FLUENCE_INCALL := true
     38 BOARD_USES_SEPERATED_AUDIO_INPUT := true
     39 
     40 BOARD_HAVE_BLUETOOTH := true
     41 BOARD_HAVE_BLUETOOTH_QCOM := true
     42 BLUETOOTH_HCI_USE_MCT := true
     43 
     44 TARGET_NO_RADIOIMAGE := true
     45 TARGET_BOARD_PLATFORM := msm8960
     46 
     47 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/asus/flo/bluetooth
     48 
     49 # FIXME: HOSTAPD-derived wifi driver
     50 BOARD_HAS_QCOM_WLAN := true
     51 BOARD_WLAN_DEVICE := qcwcn
     52 WPA_SUPPLICANT_VERSION := VER_0_8_X
     53 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
     54 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
     55 BOARD_HOSTAPD_DRIVER := NL80211
     56 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
     57 WIFI_DRIVER_FW_PATH_STA := "sta"
     58 WIFI_DRIVER_FW_PATH_AP  := "ap"
     59 
     60 BOARD_EGL_CFG := device/asus/flo/egl.cfg
     61 
     62 #BOARD_USES_HGL := true
     63 #BOARD_USES_OVERLAY := true
     64 USE_OPENGL_RENDERER := true
     65 PRESENT_TIME_OFFSET_FROM_VSYNC_NS := 3200000
     66 TARGET_USES_ION := true
     67 TARGET_USES_OVERLAY := true
     68 TARGET_USES_SF_BYPASS := true
     69 TARGET_USES_C2D_COMPOSITON := true
     70 
     71 # Enable dex-preoptimization to speed up first boot sequence
     72 ifeq ($(HOST_OS),linux)
     73   ifeq ($(TARGET_BUILD_VARIANT),user)
     74     ifeq ($(WITH_DEXPREOPT),)
     75       WITH_DEXPREOPT := true
     76     endif
     77   endif
     78 endif
     79 WITH_DEXPREOPT_BOOT_IMG_ONLY ?= true
     80 
     81 TARGET_USERIMAGES_USE_EXT4 := true
     82 BOARD_BOOTIMAGE_PARTITION_SIZE := 23068672 # 22M
     83 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672 # 22M
     84 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 880803840 # 840M
     85 
     86 BOARD_USERDATAIMAGE_PARTITION_SIZE := 12348030976 # 11.5G
     87 BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
     88 
     89 BOARD_USES_SECURE_SERVICES := true
     90 
     91 
     92 USE_CAMERA_STUB := false
     93 BOARD_USES_CAMERA_FAST_AUTOFOCUS := false
     94 
     95 BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
     96 TARGET_NO_RPC := true
     97 
     98 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
     99 BOARD_CACHEIMAGE_PARTITION_SIZE := 33554432
    100 
    101 BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
    102 BOARD_PERSISTIMAGE_PARTITION_SIZE := 5242880
    103 
    104 TARGET_USES_POST_PROCESSING := true
    105 TARGET_CUSTOM_DISPLAY_TUNING := true
    106 
    107 USE_DEVICE_SPECIFIC_QCOM_PROPRIETARY := true
    108 OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
    109 
    110 USE_DEVICE_SPECIFIC_CAMERA:= true
    111 
    112 HAVE_ADRENO_SOURCE:= false
    113 
    114 BOARD_SEPOLICY_DIRS += device/asus/flo/sepolicy
    115 
    116 # The list below is order dependent
    117 BOARD_SEPOLICY_UNION += \
    118         bluetooth_loader.te \
    119         bridge.te \
    120         camera.te \
    121         conn_init.te \
    122         device.te \
    123         domain.te \
    124         file.te \
    125         file_contexts \
    126         hostapd.te \
    127         irsc_util.te \
    128         kickstart.te \
    129         mediaserver.te \
    130         mpdecision.te \
    131         netmgrd.te \
    132         property.te \
    133         property_contexts \
    134         qmux.te \
    135         rild.te \
    136         rmt.te \
    137         sensors.te \
    138         surfaceflinger.te \
    139         system_server.te \
    140         tee.te \
    141         te_macros \
    142         thermald.te \
    143         ueventd.te
    144 
    145 # Enable Minikin text layout engine (will be the default soon)
    146 USE_MINIKIN := true
    147 
    148 # Include an expanded selection of fonts
    149 EXTENDED_FONT_FOOTPRINT := true
    150