You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

174 lines
5.8 KiB

  1. #
  2. # Copyright (C) 2012 The Android Open-Source Project
  3. # Copyright (C) 2012 The CyanogenMod Project
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # This variable is set first, so it can be overridden
  18. # by BoardConfigVendor.mk
  19. BOARD_USES_GENERIC_AUDIO := false
  20. BOARD_USES_LEGACY_MMAP := true
  21. TARGET_CPU_ABI := armeabi-v7a
  22. TARGET_CPU_ABI2 := armeabi
  23. TARGET_CPU_SMP := true
  24. TARGET_ARCH := arm
  25. TARGET_ARCH_VARIANT := armv7-a-neon
  26. TARGET_ARCH_VARIANT_CPU := cortex-a9
  27. TARGET_CPU_VARIANT := cortex-a9
  28. ARCH_ARM_HAVE_NEON := true
  29. ARCH_ARM_HAVE_TLS_REGISTER := true
  30. EXYNOS4210_ENHANCEMENTS := true
  31. TARGET_GLOBAL_CFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp
  32. TARGET_GLOBAL_CPPFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp
  33. ifdef EXYNOS4210_ENHANCEMENTS
  34. COMMON_GLOBAL_CFLAGS += -DEXYNOS4_ENHANCEMENTS
  35. COMMON_GLOBAL_CFLAGS += -DEXYNOS4210_ENHANCEMENTS
  36. COMMON_GLOBAL_CFLAGS += -DDISABLE_HW_ID_MATCH_CHECK
  37. endif
  38. BOARD_VENDOR := samsung
  39. TARGET_BOARD_PLATFORM := exynos4
  40. TARGET_SOC := exynos4210
  41. TARGET_BOOTLOADER_BOARD_NAME := smdk4210
  42. TARGET_NO_BOOTLOADER := true
  43. TARGET_NO_RADIOIMAGE := true
  44. TARGET_NO_SEPARATE_RECOVERY := true
  45. TARGET_PROVIDES_INIT := true
  46. TARGET_PROVIDES_INIT_TARGET_RC := true
  47. BOARD_NAND_PAGE_SIZE := 4096
  48. BOARD_NAND_SPARE_SIZE := 128
  49. BOARD_KERNEL_PAGESIZE := 4096
  50. BOARD_KERNEL_BASE := 0x40000000
  51. BOARD_KERNEL_CMDLINE := console=ttySAC2,115200 consoleblank=0
  52. # Include an expanded selection of fonts
  53. EXTENDED_FONT_FOOTPRINT := true
  54. # Memory management
  55. MALLOC_IMPL := dlmalloc
  56. # Filesystem
  57. TARGET_USERIMAGES_USE_EXT4 := true
  58. TARGET_USERIMAGES_USE_F2FS := true
  59. BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608
  60. BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
  61. BOARD_USERDATAIMAGE_PARTITION_SIZE := 13950255104
  62. BOARD_FLASH_BLOCK_SIZE := 4096
  63. # Releasetools
  64. TARGET_RELEASETOOLS_EXTENSIONS := ./device/samsung/galaxys2-common/releasetools/extensions
  65. # Hardware tunables
  66. BOARD_HARDWARE_CLASS := hardware/samsung/cmhw
  67. # Graphics
  68. USE_OPENGL_RENDERER := false
  69. TARGET_REQUIRES_SYNCHRONOUS_SETSURFACE := true
  70. COMMON_GLOBAL_CFLAGS += -DFORCE_SCREENSHOT_CPU_PATH -DWORKAROUND_BUG_10194508
  71. # FIMG Acceleration
  72. BOARD_USES_FIMGAPI := true
  73. BOARD_USES_SKIA_FIMGAPI := true
  74. # Enable WEBGL in WebKit
  75. ENABLE_WEBGL := true
  76. # HWComposer
  77. BOARD_USES_HWCOMPOSER := true
  78. BOARD_USE_SYSFS_VSYNC_NOTIFICATION := true
  79. # OMX
  80. BOARD_USE_SAMSUNG_COLORFORMAT := true
  81. BOARD_NONBLOCK_MODE_PROCESS := true
  82. BOARD_USE_STOREMETADATA := true
  83. BOARD_USE_METADATABUFFERTYPE := true
  84. BOARD_USES_MFC_FPS := true
  85. BOARD_USE_S3D_SUPPORT := true
  86. BOARD_USE_CSC_FIMC := false
  87. # Audio
  88. BOARD_USE_TINYALSA_AUDIO := true
  89. BOARD_USE_YAMAHA_MC1N2_AUDIO := true
  90. TARGET_YAMAHA_MC1N2_AUDIO_PATH := device/samsung/galaxys2-common/yamaha-mc1n2-audio
  91. TARGET_YAMAHA_MC1N2_AUDIO_DEVICE := galaxys2
  92. # RIL
  93. BOARD_MODEM_TYPE := xmm6260
  94. COMMON_GLOBAL_CFLAGS += -DDISABLE_ASHMEM_TRACKING
  95. # Camera
  96. BOARD_CAMERA_HAVE_ISO := true
  97. COMMON_GLOBAL_CFLAGS += -DHAVE_ISO
  98. COMMON_GLOBAL_CFLAGS += -DSAMSUNG_CAMERA_HARDWARE
  99. # Wifi
  100. BOARD_WLAN_DEVICE := bcmdhd
  101. BOARD_WLAN_DEVICE_REV := bcm4330_b1
  102. WPA_SUPPLICANT_VERSION := VER_0_8_X
  103. BOARD_WPA_SUPPLICANT_DRIVER := NL80211
  104. BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
  105. BOARD_HOSTAPD_DRIVER := NL80211
  106. BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
  107. WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko"
  108. WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path"
  109. WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/bcmdhd_sta.bin"
  110. WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/bcmdhd_apsta.bin"
  111. WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/bcmdhd_p2p.bin"
  112. WIFI_DRIVER_MODULE_NAME := "dhd"
  113. WIFI_DRIVER_MODULE_ARG := "firmware_path=/vendor/firmware/bcmdhd_sta.bin nvram_path=/vendor/firmware/nvram_net.txt"
  114. WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/vendor/firmware/bcmdhd_apsta.bin nvram_path=/vendor/firmware/nvram_net.txt"
  115. WIFI_BAND := 802_11_ABG
  116. BOARD_HAVE_SAMSUNG_WIFI := true
  117. # Bluetooth
  118. BOARD_HAVE_BLUETOOTH := true
  119. BOARD_HAVE_BLUETOOTH_BCM := true
  120. BOARD_HAVE_SAMSUNG_BLUETOOTH := true
  121. BOARD_BLUEDROID_VENDOR_CONF := device/samsung/galaxys2-common/bluetooth/vnd_smdk4210.txt
  122. # Selinux
  123. BOARD_SEPOLICY_DIRS += device/samsung/galaxys2-common/selinux
  124. # Recovery
  125. BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/samsung/galaxys2-common/recovery/recovery_keys.c
  126. BOARD_CUSTOM_GRAPHICS := ../../../device/samsung/galaxys2-common/recovery/graphics.c
  127. BOARD_UMS_LUNFILE := "/sys/class/android_usb/android0/f_mass_storage/lun0/file"
  128. BOARD_USES_MMCUTILS := true
  129. BOARD_HAS_NO_MISC_PARTITION := true
  130. BOARD_HAS_NO_SELECT_BUTTON := true
  131. BOARD_SUPPRESS_EMMC_WIPE := true
  132. BOARD_RECOVERY_SWIPE := true
  133. TARGET_RECOVERY_FSTAB := device/samsung/galaxys2-common/rootdir/fstab.smdk4210
  134. RECOVERY_FSTAB_VERSION := 2
  135. # Device specific headers
  136. TARGET_SPECIFIC_HEADER_PATH := device/samsung/galaxys2-common/include
  137. # Charging mode
  138. BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging
  139. BOARD_BATTERY_DEVICE_NAME := "battery"
  140. BOARD_CHARGER_ENABLE_SUSPEND := true
  141. BOARD_CHARGER_SHOW_PERCENTAGE := true
  142. BOARD_CUSTOM_BOOTIMG_MK := device/samsung/galaxys2-common/shbootimg.mk
  143. # Override healthd HAL
  144. BOARD_HAL_STATIC_LIBRARIES := libhealthd.exynos4
  145. # Use the non-open-source parts, if they're present
  146. -include vendor/samsung/galaxys2-common/BoardConfigVendor.mk