nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 The CyanogenMod 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 | # This variable is set first, so it can be overridden |
| 18 | # by BoardConfigVendor.mk |
| 19 | USE_CAMERA_STUB := true |
| 20 | BOARD_USES_GENERIC_AUDIO := false |
| 21 | |
| 22 | TARGET_BOOTANIMATION_PRELOAD := true |
| 23 | |
| 24 | TARGET_CPU_ABI := armeabi-v7a |
| 25 | TARGET_CPU_ABI2 := armeabi |
| 26 | TARGET_CPU_SMP := true |
codeworkx | 14c94f7 | 2012-11-23 17:47:29 +0100 | [diff] [blame] | 27 | TARGET_ARCH := arm |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 28 | TARGET_ARCH_VARIANT := armv7-a-neon |
| 29 | TARGET_ARCH_VARIANT_CPU := cortex-a9 |
XpLoDWilD | bdb3fa3 | 2013-07-26 10:38:05 +0200 | [diff] [blame] | 30 | TARGET_CPU_VARIANT := cortex-a9 |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 31 | ARCH_ARM_HAVE_NEON := true |
| 32 | ARCH_ARM_HAVE_TLS_REGISTER := true |
codeworkx | eb02676 | 2013-03-05 18:23:30 +0000 | [diff] [blame] | 33 | TARGET_GLOBAL_CFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp |
| 34 | TARGET_GLOBAL_CPPFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp |
| 35 | |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 36 | EXYNOS4X12_ENHANCEMENTS := true |
| 37 | EXYNOS4_ENHANCEMENTS := true |
| 38 | |
| 39 | ifdef EXYNOS4X12_ENHANCEMENTS |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 40 | COMMON_GLOBAL_CFLAGS += -DEXYNOS4_ENHANCEMENTS |
codeworkx | 84cebac | 2012-11-25 12:01:11 +0100 | [diff] [blame] | 41 | COMMON_GLOBAL_CFLAGS += -DEXYNOS4X12_ENHANCEMENTS |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 42 | COMMON_GLOBAL_CFLAGS += -DDISABLE_HW_ID_MATCH_CHECK |
| 43 | endif |
| 44 | |
Daniel Hillenbrand | d3aed0a | 2013-07-07 10:03:20 +0200 | [diff] [blame] | 45 | BOARD_VENDOR := samsung |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 46 | TARGET_BOARD_PLATFORM := exynos4 |
| 47 | TARGET_SOC := exynos4x12 |
| 48 | TARGET_BOOTLOADER_BOARD_NAME := smdk4x12 |
| 49 | |
| 50 | TARGET_NO_BOOTLOADER := true |
| 51 | TARGET_NO_RADIOIMAGE := true |
| 52 | |
| 53 | TARGET_PROVIDES_INIT := true |
| 54 | TARGET_PROVIDES_INIT_TARGET_RC := true |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 55 | |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 56 | # Kernel |
| 57 | BOARD_KERNEL_CMDLINE := "console=ttySAC2,115200" |
| 58 | BOARD_KERNEL_BASE := 0x40000000 |
| 59 | BOARD_KERNEL_PAGESIZE := 2048 |
| 60 | |
| 61 | # Filesystem |
| 62 | BOARD_NAND_PAGE_SIZE := 4096 |
| 63 | BOARD_NAND_SPARE_SIZE := 128 |
| 64 | BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608 |
| 65 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 8388608 |
| 66 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736 |
| 67 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 12381585408 |
| 68 | BOARD_FLASH_BLOCK_SIZE := 4096 |
| 69 | TARGET_USERIMAGES_USE_EXT4 := true |
| 70 | |
codeworkx | a7af906 | 2013-08-09 19:38:01 +0200 | [diff] [blame] | 71 | # Hardware tunables |
| 72 | BOARD_HARDWARE_CLASS := hardware/samsung/cmhw |
| 73 | |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 74 | # Graphics |
| 75 | BOARD_EGL_CFG := device/samsung/smdk4412-common/configs/egl.cfg |
| 76 | USE_OPENGL_RENDERER := true |
| 77 | BOARD_USES_SKIAHWJPEG := true |
Ricardo Cerqueira | 9af9b69 | 2013-11-02 17:43:31 +0000 | [diff] [blame] | 78 | COMMON_GLOBAL_CFLAGS += -DSEC_HWJPEG_G2D -DFORCE_SCREENSHOT_CPU_PATH -DWORKAROUND_BUG_10194508 |
| 79 | TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 80 | |
Daniel Hillenbrand | 9498ee7 | 2013-06-14 16:19:30 +0200 | [diff] [blame] | 81 | # FIMG Acceleration |
| 82 | BOARD_USES_FIMGAPI := true |
| 83 | BOARD_USES_SKIA_FIMGAPI := true |
| 84 | |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 85 | # Enable WEBGL in WebKit |
| 86 | ENABLE_WEBGL := true |
| 87 | |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 88 | # HWComposer |
| 89 | BOARD_USES_HWCOMPOSER := true |
codeworkx | 0f0d2ef | 2013-01-09 22:33:48 +0100 | [diff] [blame] | 90 | BOARD_USE_SYSFS_VSYNC_NOTIFICATION := true |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 91 | |
| 92 | # TVOut & HDMI |
| 93 | BOARD_USE_SECTVOUT := true |
| 94 | BOARD_USES_SKTEXTBOX := true |
| 95 | |
| 96 | # Camera |
codeworkx | 3294d7c | 2012-11-27 01:36:32 +0100 | [diff] [blame] | 97 | BOARD_CAMERA_HAVE_ISO := true |
codeworkx | 15b0d23 | 2012-11-27 01:51:03 +0100 | [diff] [blame] | 98 | COMMON_GLOBAL_CFLAGS += -DHAVE_ISO |
| 99 | COMMON_GLOBAL_CFLAGS += -DSAMSUNG_CAMERA_HARDWARE |
Ethan Chen | d6eaa96 | 2013-08-05 23:26:36 -0700 | [diff] [blame] | 100 | COMMON_GLOBAL_CFLAGS += -DSAMSUNG_DVFS |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 101 | BOARD_USES_PROPRIETARY_LIBFIMC := true |
Steve Kondik | 9d32da5 | 2014-01-03 02:47:31 -0800 | [diff] [blame] | 102 | BOARD_CAMERA_MSG_MGMT := true |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 103 | |
| 104 | # OMX |
codeworkx | d3c8154 | 2012-11-26 23:48:00 +0100 | [diff] [blame] | 105 | BOARD_USE_SAMSUNG_COLORFORMAT := true |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 106 | BOARD_NONBLOCK_MODE_PROCESS := true |
| 107 | BOARD_USE_STOREMETADATA := true |
| 108 | BOARD_USE_METADATABUFFERTYPE := true |
| 109 | BOARD_USES_MFC_FPS := true |
| 110 | BOARD_USE_S3D_SUPPORT := true |
| 111 | BOARD_USE_CSC_FIMC := false |
| 112 | |
| 113 | # RIL |
| 114 | BOARD_MOBILEDATA_INTERFACE_NAME := "pdp0" |
| 115 | |
| 116 | # Wifi |
| 117 | BOARD_WLAN_DEVICE := bcmdhd |
| 118 | BOARD_WLAN_DEVICE_REV := bcm4334 |
| 119 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 120 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 121 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd |
| 122 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 123 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd |
| 124 | WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko" |
| 125 | WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path" |
| 126 | WIFI_DRIVER_FW_PATH_STA := "/system/etc/wifi/bcmdhd_sta.bin" |
| 127 | WIFI_DRIVER_FW_PATH_AP := "/system/etc/wifi/bcmdhd_apsta.bin" |
| 128 | WIFI_DRIVER_FW_PATH_P2P := "/system/etc/wifi/bcmdhd_p2p.bin" |
| 129 | WIFI_DRIVER_MODULE_NAME := "dhd" |
| 130 | WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt" |
codeworkx | dec7619 | 2012-12-22 13:13:58 +0100 | [diff] [blame] | 131 | WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt" |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 132 | WIFI_BAND := 802_11_ABG |
| 133 | BOARD_HAVE_SAMSUNG_WIFI := true |
| 134 | |
| 135 | # Bluetooth |
| 136 | BOARD_HAVE_BLUETOOTH := true |
| 137 | BOARD_HAVE_BLUETOOTH_BCM := true |
| 138 | BOARD_HAVE_SAMSUNG_BLUETOOTH := true |
codeworkx | 8b53906 | 2012-12-10 20:17:14 +0100 | [diff] [blame] | 139 | BOARD_BLUEDROID_VENDOR_CONF := device/samsung/smdk4412-common/bluetooth/vnd_smdk4x12.txt |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 140 | |
| 141 | # Vold |
| 142 | TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/s3c-usbgadget/gadget/lun%d/file" |
| 143 | |
| 144 | # Recovery |
| 145 | BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/samsung/smdk4412-common/recovery/recovery_keys.c |
| 146 | BOARD_CUSTOM_GRAPHICS := ../../../device/samsung/smdk4412-common/recovery/graphics.c |
| 147 | BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\" |
| 148 | BOARD_UMS_LUNFILE := "/sys/class/android_usb/android0/f_mass_storage/lun0/file" |
| 149 | BOARD_USES_MMCUTILS := true |
| 150 | BOARD_HAS_LARGE_FILESYSTEM := true |
| 151 | BOARD_HAS_NO_MISC_PARTITION := true |
| 152 | BOARD_HAS_NO_SELECT_BUTTON := true |
| 153 | |
| 154 | # Charging mode |
| 155 | BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging |
| 156 | BOARD_BATTERY_DEVICE_NAME := "battery" |
| 157 | |
David Ferguson | ad3d2a2 | 2013-11-17 18:55:37 +0400 | [diff] [blame] | 158 | # Override healthd HAL |
| 159 | BOARD_HAL_STATIC_LIBRARIES := libhealthd.exynos4 |
| 160 | |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 161 | # inherit from the proprietary version |
| 162 | -include vendor/samsung/smdk4412-common/BoardConfigVendor.mk |