blob: 595a2abd725d237a108cdf42a580cbfd28c1abd9 [file] [log] [blame]
Ajay Dudani50eeeab2011-11-23 21:19:57 -08001# config.mk
2#
David Ngf286ae32012-07-18 16:48:28 -07003# Product-specific compile-time definitions.
Ajay Dudani50eeeab2011-11-23 21:19:57 -08004#
5
Jessica Gonzalez1a34ca72012-11-29 17:21:43 -08006ifeq ($(TARGET_ARCH),)
7TARGET_ARCH := arm
8endif
Sridhar Gujjee9433ed2014-07-04 21:11:56 +05309TARGET_KERNEL_ARCH := arm
Satya Durga Srinivasu Prabhala88199742012-08-30 11:33:43 +053010BOARD_USES_GENERIC_AUDIO := true
Manish Kumara9012922013-09-19 02:41:05 -070011USE_CAMERA_STUB := false
Sameer Thalappil155dfce2012-08-17 11:46:44 -070012
Samir Mehta3dd44072015-06-30 13:01:25 +053013TARGET_KERNEL_APPEND_DTB := true
14
David Ng94703a42013-09-27 01:55:25 -070015# Compile with msm kernel
16TARGET_COMPILE_WITH_MSM_KERNEL := true
David Ngb4745332013-09-27 01:59:12 -070017TARGET_HAS_QC_KERNEL_SOURCE := true
David Ng94703a42013-09-27 01:55:25 -070018
Satya Durga Srinivasu Prabhala7d744d12013-05-07 22:30:29 +053019-include $(QCPATH)/common/msm8974/BoardConfigVendor.mk
Sameer Thalappil155dfce2012-08-17 11:46:44 -070020
David Ngf286ae32012-07-18 16:48:28 -070021#TODO: Fix-me: Setting TARGET_HAVE_HDMI_OUT to false
22# to get rid of compilation error.
23TARGET_HAVE_HDMI_OUT := false
Ajay Dudani50eeeab2011-11-23 21:19:57 -080024TARGET_USES_OVERLAY := true
Naseer Ahmedc2719d12013-11-19 14:16:41 -050025NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
c_pradosf5b86762014-07-28 18:41:37 +053026TARGET_NO_BOOTLOADER := false
Ajay Dudani50eeeab2011-11-23 21:19:57 -080027TARGET_NO_KERNEL := false
28TARGET_NO_RADIOIMAGE := true
29TARGET_NO_RPC := true
30
31TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
32TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
33TARGET_CPU_ABI := armeabi-v7a
34TARGET_CPU_ABI2 := armeabi
35TARGET_ARCH_VARIANT := armv7-a-neon
Ian Maund3b8bde92013-04-03 17:32:00 -070036TARGET_CPU_VARIANT := krait
Ajay Dudani50eeeab2011-11-23 21:19:57 -080037TARGET_CPU_SMP := true
38ARCH_ARM_HAVE_TLS_REGISTER := true
39
40TARGET_HARDWARE_3D := false
David Ngf286ae32012-07-18 16:48:28 -070041TARGET_BOARD_PLATFORM := msm8974
42TARGET_BOOTLOADER_BOARD_NAME := MSM8974
Ajay Dudani50eeeab2011-11-23 21:19:57 -080043
Jessica Gonzalez1a34ca72012-11-29 17:21:43 -080044BOARD_KERNEL_BASE := 0x00000000
45BOARD_KERNEL_PAGESIZE := 2048
46BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
47BOARD_RAMDISK_OFFSET := 0x02000000
Ajay Dudani50eeeab2011-11-23 21:19:57 -080048
Lokesh Batra3944e712013-12-05 14:32:06 -080049# Enables Adreno RS driver
Samir Mehta3dd44072015-06-30 13:01:25 +053050#OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
Lokesh Batra3944e712013-12-05 14:32:06 -080051
Naomi Luis5aeafbd2013-03-21 15:05:25 -070052# Shader cache config options
53# Maximum size of the GLES Shaders that can be cached for reuse.
54# Increase the size if shaders of size greater than 12KB are used.
55MAX_EGL_CACHE_KEY_SIZE := 12*1024
56
57# Maximum GLES shader cache size for each app to store the compiled shader
58# binaries. Decrease the size if RAM or Flash Storage size is a limitation
59# of the device.
60MAX_EGL_CACHE_SIZE := 2048*1024
61
Deepa Dinamanif02367c2012-12-21 12:18:15 -080062# Use signed boot and recovery image
Deepa Dinamani042ade42013-06-06 15:03:05 -070063TARGET_BOOTIMG_SIGNED := true
Deepa Dinamanif02367c2012-12-21 12:18:15 -080064
Ajay Dudani50eeeab2011-11-23 21:19:57 -080065TARGET_USERIMAGES_USE_EXT4 := true
David Ngf286ae32012-07-18 16:48:28 -070066BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
67BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
Ajay Dudani50eeeab2011-11-23 21:19:57 -080068
Bharat Pawar29e14df2015-07-21 10:10:41 +053069BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=qcom user_debug=23 msm_rtb.filter=0x3b7 ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1
David Ng0230c312012-07-27 17:52:03 -070070BOARD_KERNEL_SEPARATED_DT := true
71
Satya Durga Srinivasu Prabhalaf9f685a2012-08-21 13:39:35 +053072BOARD_EGL_CFG := device/qcom/$(TARGET_BOARD_PLATFORM)/egl.cfg
Ajay Dudani50eeeab2011-11-23 21:19:57 -080073
Satya Durga Srinivasu Prabhala23af3402013-07-15 17:15:04 -060074BOARD_BOOTIMAGE_PARTITION_SIZE := 0x01000000
75BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x01000000
David Ng93780bf2013-05-02 16:27:35 -070076BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
Samir Mehta4c699462014-12-03 17:48:17 +053077BOARD_USERDATAIMAGE_PARTITION_SIZE := 10737401856
Ajay Dudani50eeeab2011-11-23 21:19:57 -080078BOARD_CACHEIMAGE_PARTITION_SIZE := 33554432
David Ngf286ae32012-07-18 16:48:28 -070079BOARD_PERSISTIMAGE_PARTITION_SIZE := 5242880
Ajay Dudani50eeeab2011-11-23 21:19:57 -080080BOARD_TOMBSTONESIMAGE_PARTITION_SIZE := 73400320
81BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
82
Ajay Dudani50eeeab2011-11-23 21:19:57 -080083
84# Add NON-HLOS files for ota upgrade
Stanimir Varbanov3111af52013-05-09 14:21:59 +030085ADD_RADIO_FILES ?= true
Xin Qia8594a22012-08-17 10:45:37 -070086
Jaime Lopez33ba1762013-01-18 15:21:47 -080087# Added to indicate that protobuf-c is supported in this build
Samir Mehta3dd44072015-06-30 13:01:25 +053088PROTOBUF_SUPPORTED := false
Jaime Lopez33ba1762013-01-18 15:21:47 -080089
Xin Qia8594a22012-08-17 10:45:37 -070090TARGET_USE_KRAIT_PLD_SET := true
91TARGET_KRAIT_BIONIC_PLDOFFS := 10
92TARGET_KRAIT_BIONIC_PLDTHRESH := 10
93TARGET_KRAIT_BIONIC_BBTHRESH := 64
94TARGET_KRAIT_BIONIC_PLDSIZE := 64
David Ng783b8482012-10-24 18:40:23 -070095
96TARGET_USES_ION := true
Naseer Ahmed767d3cc2012-12-12 12:51:02 -050097TARGET_USES_NEW_ION_API :=true
David Ngb63108b2013-04-03 11:01:16 -070098
Samir Mehta4c699462014-12-03 17:48:17 +053099TARGET_HW_DISK_ENCRYPTION := false
Dinesh K Garg0d1471b2014-02-10 15:12:54 -0800100
Manish Kumarc6c09912014-04-06 23:03:44 -0700101# Workaround framework bluetooth dependency
102BOARD_HAVE_BLUETOOTH := true
Pradeep Panigrahi29cc3822015-12-23 16:26:57 +0530103BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/qcom/common
Samir Mehta3dd44072015-06-30 13:01:25 +0530104#OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
Manish Kumarc6c09912014-04-06 23:03:44 -0700105
David Ng94703a42013-09-27 01:55:25 -0700106TARGET_INIT_VENDOR_LIB := libinit_msm
Pavel Nedev09420852013-08-20 10:28:36 +0300107TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_msm
Satya Durga Srinivasu Prabhala93c69cf2013-06-19 14:18:00 -0600108
sanketk1e8592d2014-10-27 14:06:03 +0800109TARGET_LDPRELOAD := libNimsWrap.so
Sreedhar Lakkaraju07f05892015-02-19 02:22:51 +0530110
111USE_OPENGL_RENDERER := true
Hemant Gupta77d6d5d2015-07-25 11:19:21 +0530112
113FEATURE_QCRIL_UIM_SAP_SERVER_MODE := true
Brahmaji K70283872016-01-22 15:43:48 +0530114
115# Control flag between KM versions
116TARGET_HW_KEYMASTER_V03 := true