blob: be903e54ed7258deb222d740a35358db0cdd0823 [file] [log] [blame]
wangxl2497caf2015-02-04 13:48:38 +08001# config.mk
2#
3# Product-specific compile-time definitions.
4#
5
6ifeq ($(TARGET_ARCH),)
7TARGET_ARCH := arm
8endif
9TARGET_KERNEL_ARCH := arm
10BOARD_USES_GENERIC_AUDIO := true
11USE_CAMERA_STUB := false
12
Pekka Pesu2ae03322016-11-09 12:57:35 +020013TARGET_KERNEL_APPEND_DTB := false
14
wangxl2497caf2015-02-04 13:48:38 +080015TARGET_USES_AOSP := false
Pekka Pesu2ae03322016-11-09 12:57:35 +020016
wangxl2497caf2015-02-04 13:48:38 +080017# Compile with msm kernel
18TARGET_COMPILE_WITH_MSM_KERNEL := true
19TARGET_HAS_QC_KERNEL_SOURCE := true
20
21-include $(QCPATH)/common/msm8974/BoardConfigVendor.mk
22
Borjan Tchakaloff0ff56ab2017-09-21 17:28:22 +020023# Vendor-specific definitions
24include vendor/fairphone/FP2/BoardConfigVendor.mk
25
wangxl2497caf2015-02-04 13:48:38 +080026#TODO: Fix-me: Setting TARGET_HAVE_HDMI_OUT to false
27# to get rid of compilation error.
28TARGET_HAVE_HDMI_OUT := false
29TARGET_USES_OVERLAY := true
30NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
31TARGET_NO_BOOTLOADER := false
32TARGET_NO_KERNEL := false
33TARGET_NO_RADIOIMAGE := true
34TARGET_NO_RPC := true
35
36TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
37TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
38TARGET_CPU_ABI := armeabi-v7a
39TARGET_CPU_ABI2 := armeabi
40TARGET_ARCH_VARIANT := armv7-a-neon
41TARGET_CPU_VARIANT := krait
42TARGET_CPU_SMP := true
43ARCH_ARM_HAVE_TLS_REGISTER := true
44
45TARGET_HARDWARE_3D := false
46TARGET_BOARD_PLATFORM := msm8974
Dirk Vogt35b57e62015-11-10 16:28:18 +010047TARGET_BOOTLOADER_BOARD_NAME := FP2
wangxl2497caf2015-02-04 13:48:38 +080048
49BOARD_KERNEL_BASE := 0x00000000
50BOARD_KERNEL_PAGESIZE := 2048
51BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
52BOARD_RAMDISK_OFFSET := 0x02000000
53
54# Enables Adreno RS driver
55OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
56
57# Shader cache config options
58# Maximum size of the GLES Shaders that can be cached for reuse.
59# Increase the size if shaders of size greater than 12KB are used.
60MAX_EGL_CACHE_KEY_SIZE := 12*1024
61
62# Maximum GLES shader cache size for each app to store the compiled shader
63# binaries. Decrease the size if RAM or Flash Storage size is a limitation
64# of the device.
65MAX_EGL_CACHE_SIZE := 2048*1024
66
67# Use signed boot and recovery image
68TARGET_BOOTIMG_SIGNED := true
69
70TARGET_USERIMAGES_USE_EXT4 := true
71BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
72BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
73
wangxled391ea2015-12-25 13:11:44 +080074ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
Pekka Pesuc91905f2016-12-28 11:21:50 +020075BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3b7 ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1
wangxled391ea2015-12-25 13:11:44 +080076else
77BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3b7 ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1
78endif
wangxl2497caf2015-02-04 13:48:38 +080079BOARD_KERNEL_SEPARATED_DT := true
80
wangxl0a117322015-09-23 16:34:37 +080081BOARD_EGL_CFG := device/fairphone_devices/FP2/egl.cfg
wangxl2497caf2015-02-04 13:48:38 +080082
83BOARD_BOOTIMAGE_PARTITION_SIZE := 0x01000000
84BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x01000000
LiuShangbe68b402015-03-05 21:02:59 +080085BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
chenxl0723abefcef2015-09-15 19:34:53 +080086BOARD_USERDATAIMAGE_PARTITION_SIZE := 27358941675
wangxl8259f432015-03-11 11:39:12 +080087BOARD_CACHEIMAGE_PARTITION_SIZE := 671088640
wangxl2497caf2015-02-04 13:48:38 +080088BOARD_PERSISTIMAGE_PARTITION_SIZE := 5242880
89BOARD_TOMBSTONESIMAGE_PARTITION_SIZE := 73400320
90BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
91
92
93# Add NON-HLOS files for ota upgrade
94ADD_RADIO_FILES ?= true
95
96# Added to indicate that protobuf-c is supported in this build
97PROTOBUF_SUPPORTED := true
98
99TARGET_USE_KRAIT_PLD_SET := true
100TARGET_KRAIT_BIONIC_PLDOFFS := 10
101TARGET_KRAIT_BIONIC_PLDTHRESH := 10
102TARGET_KRAIT_BIONIC_BBTHRESH := 64
103TARGET_KRAIT_BIONIC_PLDSIZE := 64
104
105TARGET_USES_ION := true
106TARGET_USES_NEW_ION_API :=true
107
108TARGET_HW_DISK_ENCRYPTION := false
109
110# Workaround framework bluetooth dependency
111BOARD_HAVE_BLUETOOTH := true
Pekka Pesu2ae03322016-11-09 12:57:35 +0200112BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/qcom/common
wangxl2497caf2015-02-04 13:48:38 +0800113OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
114
115TARGET_INIT_VENDOR_LIB := libinit_msm
116TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_msm
117
118TARGET_LDPRELOAD := libNimsWrap.so
wangxld80cd6f2015-05-05 10:46:15 +0800119
120USE_OPENGL_RENDERER := true
Dirk Vogt532bb4b2016-03-04 16:13:07 +0100121
122
123TW_THEME := portrait_hdpi
124TW_NO_USB_STORAGE := false
125TW_TARGET_USES_QCOM_BSP := true
126TW_NO_EXFAT := true
127TW_NO_EXFAT_FUSE := true
128
Pekka Pesu2ae03322016-11-09 12:57:35 +0200129# Control flag between KM versions
130TARGET_HW_KEYMASTER_V03 := true
Dirk Vogt532bb4b2016-03-04 16:13:07 +0100131
132RECOVERY_GRAPHICS_USE_LINELENGTH := true
Dirk Vogt1f506a72017-01-27 17:35:19 +0100133
134# Charger
135BOARD_HAL_STATIC_LIBRARIES := libhealthd.FP2