David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 1 | # config.mk |
| 2 | # |
| 3 | # Product-specific compile-time definitions. |
| 4 | # |
| 5 | |
David Ng | ea6c9f6 | 2012-12-19 04:20:33 -0800 | [diff] [blame] | 6 | ifeq ($(TARGET_ARCH),) |
| 7 | TARGET_ARCH := arm |
| 8 | endif |
| 9 | |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 10 | BOARD_USES_GENERIC_AUDIO := true |
| 11 | USE_CAMERA_STUB := true |
| 12 | |
Dhivya Subramanian | ba9eb45 | 2013-10-04 16:09:20 -0700 | [diff] [blame] | 13 | TARGET_USES_AOSP := false |
David Ng | 5534880 | 2013-09-27 12:35:55 -0700 | [diff] [blame] | 14 | # Compile with msm kernel |
| 15 | TARGET_COMPILE_WITH_MSM_KERNEL := true |
David Ng | 04889b0 | 2013-09-27 12:43:35 -0700 | [diff] [blame] | 16 | TARGET_HAS_QC_KERNEL_SOURCE := true |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 17 | |
David Ng | 5534880 | 2013-09-27 12:35:55 -0700 | [diff] [blame] | 18 | -include $(QCPATH)/common/msm8226/BoardConfigVendor.mk |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 19 | |
| 20 | #TODO: Fix-me: Setting TARGET_HAVE_HDMI_OUT to false |
| 21 | # to get rid of compilation error. |
| 22 | TARGET_HAVE_HDMI_OUT := false |
| 23 | TARGET_USES_OVERLAY := true |
Prabhanjan Kandula | df43bbf | 2014-02-20 22:43:12 +0530 | [diff] [blame] | 24 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
Deepa Dinamani | 306ce82 | 2012-12-23 21:13:46 -0800 | [diff] [blame] | 25 | TARGET_NO_BOOTLOADER := false |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 26 | TARGET_NO_KERNEL := false |
| 27 | TARGET_NO_RADIOIMAGE := true |
| 28 | TARGET_NO_RPC := true |
| 29 | |
| 30 | TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp |
| 31 | TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp |
| 32 | TARGET_CPU_ABI := armeabi-v7a |
| 33 | TARGET_CPU_ABI2 := armeabi |
| 34 | TARGET_ARCH_VARIANT := armv7-a-neon |
Ian Maund | 4216a79 | 2013-04-03 17:32:00 -0700 | [diff] [blame] | 35 | TARGET_CPU_VARIANT := krait |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 36 | TARGET_CPU_SMP := true |
| 37 | ARCH_ARM_HAVE_TLS_REGISTER := true |
| 38 | |
| 39 | TARGET_HARDWARE_3D := false |
| 40 | TARGET_BOARD_PLATFORM := msm8226 |
| 41 | TARGET_BOOTLOADER_BOARD_NAME := MSM8226 |
| 42 | |
David Ng | a84510a | 2013-03-06 15:37:26 -0800 | [diff] [blame] | 43 | BOARD_KERNEL_BASE := 0x00000000 |
David Ng | ea6c9f6 | 2012-12-19 04:20:33 -0800 | [diff] [blame] | 44 | BOARD_KERNEL_PAGESIZE := 2048 |
| 45 | BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 |
| 46 | BOARD_RAMDISK_OFFSET := 0x02000000 |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 47 | |
Supreet Mysore Suresh | be59dd2 | 2013-12-12 10:34:25 -0800 | [diff] [blame] | 48 | # Enables Adreno RS driver |
| 49 | OVERRIDE_RS_DRIVER := libRSDriver_adreno.so |
| 50 | |
Deepa Dinamani | 7678dfd | 2013-05-02 11:07:59 -0700 | [diff] [blame] | 51 | #TARGET_BOOTIMG_SIGNED := true |
Deepa Dinamani | 5aec3a9 | 2013-04-02 16:03:03 -0700 | [diff] [blame] | 52 | |
Naomi Luis | 887521f | 2013-03-21 15:06:15 -0700 | [diff] [blame] | 53 | # 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. |
| 56 | MAX_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. |
| 61 | MAX_EGL_CACHE_SIZE := 2048*1024 |
| 62 | |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 63 | TARGET_USERIMAGES_USE_EXT4 := true |
| 64 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 65 | BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 66 | |
Srinivasarao P | b101cad | 2014-12-17 14:02:09 +0530 | [diff] [blame] | 67 | BOARD_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 Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 68 | BOARD_KERNEL_SEPARATED_DT := true |
| 69 | |
| 70 | BOARD_EGL_CFG := device/qcom/$(TARGET_BOARD_PLATFORM)/egl.cfg |
| 71 | |
Satya Durga Srinivasu Prabhala | 2f37bd6 | 2013-09-17 21:02:39 -0700 | [diff] [blame] | 72 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x01000000 |
| 73 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x01000000 |
Maria Yu | 6df83ba | 2013-05-28 12:26:31 +0800 | [diff] [blame] | 74 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 838860800 |
Samir Mehta | dc1487b | 2014-12-05 19:06:49 +0530 | [diff] [blame] | 75 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 5066686464 |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 76 | BOARD_CACHEIMAGE_PARTITION_SIZE := 33554432 |
| 77 | BOARD_PERSISTIMAGE_PARTITION_SIZE := 5242880 |
| 78 | BOARD_TOMBSTONESIMAGE_PARTITION_SIZE := 73400320 |
| 79 | BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64) |
| 80 | |
Ameya Thakur | d38b69a | 2013-08-13 12:40:08 -0700 | [diff] [blame] | 81 | # Enable suspend during charger mode |
| 82 | BOARD_CHARGER_ENABLE_SUSPEND := true |
| 83 | |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 84 | # Add NON-HLOS files for ota upgrade |
Stanimir Varbanov | d64b368 | 2013-05-09 14:31:08 +0300 | [diff] [blame] | 85 | ADD_RADIO_FILES ?= true |
David Ng | fc2fa2b | 2013-03-04 20:18:13 -0800 | [diff] [blame] | 86 | |
Garik Badalyan | 2b41e64 | 2013-07-17 10:23:04 -0700 | [diff] [blame] | 87 | # Added to indicate that protobuf-c is supported in this build |
| 88 | PROTOBUF_SUPPORTED := true |
| 89 | |
David Ng | fc2fa2b | 2013-03-04 20:18:13 -0800 | [diff] [blame] | 90 | TARGET_USES_ION := true |
Vince Leung | 9ff5aa3 | 2014-01-10 17:57:51 -0800 | [diff] [blame] | 91 | TARGET_USE_KINGFISHER_OPTIMIZATION := true |
David Ng | d61c5c6 | 2013-06-20 20:21:44 -0700 | [diff] [blame] | 92 | |
David Ng | 5534880 | 2013-09-27 12:35:55 -0700 | [diff] [blame] | 93 | TARGET_INIT_VENDOR_LIB := libinit_msm |
Pavel Nedev | b3732b1 | 2013-07-01 16:44:15 +0300 | [diff] [blame] | 94 | TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_msm |
Satya Durga Srinivasu Prabhala | e8f48cc | 2013-06-19 14:18:30 -0600 | [diff] [blame] | 95 | |
Sarada Prasanna Garnayak | 10d3260 | 2013-11-22 19:19:59 +0530 | [diff] [blame] | 96 | #Add support for firmare upgrade on 8226 |
Sarada Prasanna Garnayak | 7b92a2b | 2014-03-19 14:32:20 +0530 | [diff] [blame] | 97 | HAVE_FT_FW_UPGRADE := true |
Sarada Prasanna Garnayak | 10d3260 | 2013-11-22 19:19:59 +0530 | [diff] [blame] | 98 | HAVE_SYNAPTICS_I2C_RMI4_FW_UPGRADE := true |
sanketk | 3c4575a | 2014-10-28 16:01:20 +0800 | [diff] [blame] | 99 | |
Linux Build Service Account | 52ff033 | 2014-11-08 12:56:28 -0800 | [diff] [blame] | 100 | TARGET_LDPRELOAD := libNimsWrap.so |
Raghavendra Prasad Nagaraj | c320ad6 | 2015-01-02 20:08:13 +0530 | [diff] [blame] | 101 | |
| 102 | #Use dlmalloc instead of jemalloc for mallocs |
| 103 | MALLOC_IMPL := dlmalloc |
| 104 | |
Raghavendra Prasad Nagaraj | 31fce08 | 2015-01-19 18:54:37 +0530 | [diff] [blame] | 105 | #Disable memcpy_base.S optimization |
| 106 | TARGET_CPU_MEMCPY_BASE_OPT_DISABLE := true |
Sreedhar Lakkaraju | 2556e71 | 2015-02-19 02:25:02 +0530 | [diff] [blame] | 107 | |
| 108 | USE_OPENGL_RENDERER := true |