blob: 724db04ae26f87930226a313c90ddef8604ebe83 [file] [log] [blame]
David Ng682ef2d2012-11-26 15:07:48 -08001# config.mk
2#
3# Product-specific compile-time definitions.
4#
5
David Ngea6c9f62012-12-19 04:20:33 -08006ifeq ($(TARGET_ARCH),)
7TARGET_ARCH := arm
8endif
9
David Ng682ef2d2012-11-26 15:07:48 -080010BOARD_USES_GENERIC_AUDIO := true
11USE_CAMERA_STUB := true
12
Dhivya Subramanianba9eb452013-10-04 16:09:20 -070013TARGET_USES_AOSP := false
David Ng55348802013-09-27 12:35:55 -070014# Compile with msm kernel
15TARGET_COMPILE_WITH_MSM_KERNEL := true
David Ng04889b02013-09-27 12:43:35 -070016TARGET_HAS_QC_KERNEL_SOURCE := true
David Ng682ef2d2012-11-26 15:07:48 -080017
David Ng55348802013-09-27 12:35:55 -070018-include $(QCPATH)/common/msm8226/BoardConfigVendor.mk
David Ng682ef2d2012-11-26 15:07:48 -080019
20#TODO: Fix-me: Setting TARGET_HAVE_HDMI_OUT to false
21# to get rid of compilation error.
22TARGET_HAVE_HDMI_OUT := false
23TARGET_USES_OVERLAY := true
Prabhanjan Kanduladf43bbf2014-02-20 22:43:12 +053024NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
Deepa Dinamani306ce822012-12-23 21:13:46 -080025TARGET_NO_BOOTLOADER := false
David Ng682ef2d2012-11-26 15:07:48 -080026TARGET_NO_KERNEL := false
27TARGET_NO_RADIOIMAGE := true
28TARGET_NO_RPC := true
29
30TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
31TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
32TARGET_CPU_ABI := armeabi-v7a
33TARGET_CPU_ABI2 := armeabi
34TARGET_ARCH_VARIANT := armv7-a-neon
Ian Maund4216a792013-04-03 17:32:00 -070035TARGET_CPU_VARIANT := krait
David Ng682ef2d2012-11-26 15:07:48 -080036TARGET_CPU_SMP := true
37ARCH_ARM_HAVE_TLS_REGISTER := true
38
39TARGET_HARDWARE_3D := false
40TARGET_BOARD_PLATFORM := msm8226
41TARGET_BOOTLOADER_BOARD_NAME := MSM8226
42
David Nga84510a2013-03-06 15:37:26 -080043BOARD_KERNEL_BASE := 0x00000000
David Ngea6c9f62012-12-19 04:20:33 -080044BOARD_KERNEL_PAGESIZE := 2048
45BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
46BOARD_RAMDISK_OFFSET := 0x02000000
David Ng682ef2d2012-11-26 15:07:48 -080047
Supreet Mysore Sureshbe59dd22013-12-12 10:34:25 -080048# Enables Adreno RS driver
49OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
50
Deepa Dinamani7678dfd2013-05-02 11:07:59 -070051#TARGET_BOOTIMG_SIGNED := true
Deepa Dinamani5aec3a92013-04-02 16:03:03 -070052
Naomi Luis887521f2013-03-21 15:06:15 -070053# Shader cache config options
54# Maximum size of the GLES Shaders that can be cached for reuse.
55# Increase the size if shaders of size greater than 12KB are used.
56MAX_EGL_CACHE_KEY_SIZE := 12*1024
57
58# Maximum GLES shader cache size for each app to store the compiled shader
59# binaries. Decrease the size if RAM or Flash Storage size is a limitation
60# of the device.
61MAX_EGL_CACHE_SIZE := 2048*1024
62
David Ng682ef2d2012-11-26 15:07:48 -080063TARGET_USERIMAGES_USE_EXT4 := true
64BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
65BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
66
Srinivasarao Pb101cad2014-12-17 14:02:09 +053067BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 earlyprintk androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 androidboot.bootdevice=msm_sdcc.1
David Ng682ef2d2012-11-26 15:07:48 -080068BOARD_KERNEL_SEPARATED_DT := true
69
70BOARD_EGL_CFG := device/qcom/$(TARGET_BOARD_PLATFORM)/egl.cfg
71
Satya Durga Srinivasu Prabhala2f37bd62013-09-17 21:02:39 -070072BOARD_BOOTIMAGE_PARTITION_SIZE := 0x01000000
73BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x01000000
Maria Yu6df83ba2013-05-28 12:26:31 +080074BOARD_SYSTEMIMAGE_PARTITION_SIZE := 838860800
Samir Mehtadc1487b2014-12-05 19:06:49 +053075BOARD_USERDATAIMAGE_PARTITION_SIZE := 5066686464
David Ng682ef2d2012-11-26 15:07:48 -080076BOARD_CACHEIMAGE_PARTITION_SIZE := 33554432
77BOARD_PERSISTIMAGE_PARTITION_SIZE := 5242880
78BOARD_TOMBSTONESIMAGE_PARTITION_SIZE := 73400320
79BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
80
Ameya Thakurd38b69a2013-08-13 12:40:08 -070081# Enable suspend during charger mode
82BOARD_CHARGER_ENABLE_SUSPEND := true
83
David Ng682ef2d2012-11-26 15:07:48 -080084# Add NON-HLOS files for ota upgrade
Stanimir Varbanovd64b3682013-05-09 14:31:08 +030085ADD_RADIO_FILES ?= true
David Ngfc2fa2b2013-03-04 20:18:13 -080086
Garik Badalyan2b41e642013-07-17 10:23:04 -070087# Added to indicate that protobuf-c is supported in this build
88PROTOBUF_SUPPORTED := true
89
David Ngfc2fa2b2013-03-04 20:18:13 -080090TARGET_USES_ION := true
Vince Leung9ff5aa32014-01-10 17:57:51 -080091TARGET_USE_KINGFISHER_OPTIMIZATION := true
David Ngd61c5c62013-06-20 20:21:44 -070092
David Ng55348802013-09-27 12:35:55 -070093TARGET_INIT_VENDOR_LIB := libinit_msm
Pavel Nedevb3732b12013-07-01 16:44:15 +030094TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_msm
Satya Durga Srinivasu Prabhalae8f48cc2013-06-19 14:18:30 -060095
Sarada Prasanna Garnayak10d32602013-11-22 19:19:59 +053096#Add support for firmare upgrade on 8226
Sarada Prasanna Garnayak7b92a2b2014-03-19 14:32:20 +053097HAVE_FT_FW_UPGRADE := true
Sarada Prasanna Garnayak10d32602013-11-22 19:19:59 +053098HAVE_SYNAPTICS_I2C_RMI4_FW_UPGRADE := true
sanketk3c4575a2014-10-28 16:01:20 +080099
Linux Build Service Account52ff0332014-11-08 12:56:28 -0800100TARGET_LDPRELOAD := libNimsWrap.so
Raghavendra Prasad Nagarajc320ad62015-01-02 20:08:13 +0530101
102#Use dlmalloc instead of jemalloc for mallocs
103MALLOC_IMPL := dlmalloc
104
Raghavendra Prasad Nagaraj31fce082015-01-19 18:54:37 +0530105#Disable memcpy_base.S optimization
106TARGET_CPU_MEMCPY_BASE_OPT_DISABLE := true
Sreedhar Lakkaraju2556e712015-02-19 02:25:02 +0530107
108USE_OPENGL_RENDERER := true