| # Copyright (C) 2009 The Android Open Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| # |
| # This file sets variables that control the way modules are built |
| # thorughout the system. It should not be used to conditionally |
| # disable makefiles (the proper mechanism to control what gets |
| # included in a build is to use PRODUCT_PACKAGES in a product |
| # definition file). |
| # |
| |
| # WARNING: This line must come *before* including the proprietary |
| # variant, so that it gets overwritten by the parent (which goes |
| # against the traditional rules of inheritance). |
| |
| # inherit from msm8660-common |
| -include device/htc/msm8660-common/BoardConfigCommon.mk |
| |
| # Bootloader |
| TARGET_BOOTLOADER_BOARD_NAME := ruby |
| |
| # Kernel |
| BOARD_KERNEL_BASE := 0x48000000 |
| BOARD_KERNEL_CMDLINE := console=ttyHSL3 androidboot.hardware=ruby no_console_suspend=1 |
| BOARD_KERNEL_PAGE_SIZE := 2048 |
| TARGET_PREBUILT_KERNEL := device/htc/ruby/prebuilt/root/kernel |
| TARGET_KERNEL_SOURCE := kernel/htc/msm8660 |
| TARGET_KERNEL_CONFIG := ruby_defconfig |
| BUILD_KERNEL := true |
| |
| WLAN_MODULES: |
| make clean -C hardware/ti/wlan/mac80211/compat_wl12xx |
| make -j8 -C hardware/ti/wlan/mac80211/compat_wl12xx KERNEL_DIR=$(KERNEL_OUT) KLIB=$(KERNEL_OUT) KLIB_BUILD=$(KERNEL_OUT) ARCH=arm CROSS_COMPILE="arm-eabi-" |
| mv hardware/ti/wlan/mac80211/compat_wl12xx/compat/compat.ko $(KERNEL_MODULES_OUT) |
| mv hardware/ti/wlan/mac80211/compat_wl12xx/net/mac80211/mac80211.ko $(KERNEL_MODULES_OUT) |
| mv hardware/ti/wlan/mac80211/compat_wl12xx/net/wireless/cfg80211.ko $(KERNEL_MODULES_OUT) |
| mv hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/wl12xx.ko $(KERNEL_MODULES_OUT) |
| mv hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/wl12xx_spi.ko $(KERNEL_MODULES_OUT) |
| mv hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/wl12xx_sdio.ko $(KERNEL_MODULES_OUT) |
| |
| TARGET_KERNEL_MODULES += WLAN_MODULES |
| |
| # Wifi |
| COMMON_GLOBAL_CFLAGS += -DUSES_TI_MAC80211 |
| |
| USES_TI_MAC80211 := true |
| BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| WPA_SUPPLICANT_VERSION := VER_0_8_X |
| BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wl12xx |
| BOARD_HOSTAPD_DRIVER := NL80211 |
| BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_wl12xx |
| BOARD_WLAN_DEVICE := wl12xx_mac80211 |
| BOARD_SOFTAP_DEVICE := wl12xx_mac80211 |
| WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wl12xx_sdio.ko" |
| WIFI_DRIVER_MODULE_NAME := "wl12xx_sdio" |
| WIFI_FIRMWARE_LOADER := "" |
| |
| # QCOM GPS |
| BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := ruby |
| |
| # NFC |
| BOARD_HAVE_NFC := true |
| |
| # Filesystem |
| TARGET_USERIMAGES_USE_EXT4 := true |
| BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 |
| BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16776192 |
| BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610611712 |
| BOARD_USERDATAIMAGE_PARTITION_SIZE := 2684354048 |
| BOARD_FLASH_BLOCK_SIZE := 131072 |
| |
| # Recovery |
| TARGET_RECOVERY_FSTAB := device/htc/ruby/ramdisk/fstab.ruby |
| BOARD_USES_MMCUTILS := true |
| BOARD_HAS_NO_SELECT_BUTTON := true |
| |
| # TWRP Recovery Settings |
| DEVICE_RESOLUTION = 540x960 |
| |