You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
192 lines
4.9 KiB
Makefile
192 lines
4.9 KiB
Makefile
#
|
|
# Copyright (C) 2015 The CyanogenMod Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
LOCAL_PATH := device/wileyfox/crackling
|
|
|
|
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
|
|
|
|
# Platform
|
|
TARGET_BOARD_PLATFORM := msm8916
|
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8916
|
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno405
|
|
|
|
# Bootloader
|
|
TARGET_NO_BOOTLOADER := true
|
|
|
|
# Architecture
|
|
TARGET_ARCH := arm64
|
|
TARGET_ARCH_VARIANT := armv8-a
|
|
TARGET_CPU_ABI := arm64-v8a
|
|
TARGET_CPU_ABI2 :=
|
|
TARGET_CPU_VARIANT := generic
|
|
|
|
TARGET_2ND_ARCH := arm
|
|
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
|
|
TARGET_2ND_CPU_ABI := armeabi-v7a
|
|
TARGET_2ND_CPU_ABI2 := armeabi
|
|
TARGET_2ND_CPU_VARIANT := cortex-a53
|
|
|
|
TARGET_BOARD_SUFFIX := _64
|
|
TARGET_USES_64_BIT_BINDER := true
|
|
|
|
# Kernel
|
|
BOARD_CUSTOM_BOOTIMG_MK := $(LOCAL_PATH)/mkbootimg.mk
|
|
BOARD_KERNEL_BASE := 0x80000000
|
|
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=30 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1
|
|
BOARD_KERNEL_PAGESIZE := 2048
|
|
BOARD_KERNEL_SEPARATED_DT := true
|
|
BOARD_KERNEL_TAGS_OFFSET := 0x00000100
|
|
BOARD_RAMDISK_OFFSET := 0x01000000
|
|
TARGET_KERNEL_CONFIG := cyanogenmod_crackling-64_defconfig
|
|
TARGET_KERNEL_SOURCE := kernel/cyanogen/msm8916
|
|
|
|
TARGET_KERNEL_ARCH := arm64
|
|
TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
|
|
TARGET_KERNEL_HEADER_ARCH := arm64
|
|
TARGET_USES_UNCOMPRESSED_KERNEL := true
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),user)
|
|
TARGET_KERNEL_ADDITIONAL_CONFIG := cyanogenmod_debug_config
|
|
endif
|
|
|
|
# ANT+
|
|
BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"
|
|
|
|
# Audio
|
|
AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true
|
|
BOARD_USES_ALSA_AUDIO := true
|
|
|
|
# Bluetooth
|
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
|
|
BOARD_HAVE_BLUETOOTH := true
|
|
BOARD_HAVE_BLUETOOTH_QCOM := true
|
|
BLUETOOTH_HCI_USE_MCT := true
|
|
|
|
# Camera
|
|
BOARD_CAMERA_SENSORS := s5k5e2_olq5f19 s5k3m2_olqba20
|
|
TARGET_USE_VENDOR_CAMERA_EXT := true
|
|
USE_DEVICE_SPECIFIC_CAMERA := true
|
|
|
|
# Crypto
|
|
TARGET_HW_DISK_ENCRYPTION := true
|
|
|
|
# Dex
|
|
ifeq ($(HOST_OS),linux)
|
|
ifeq ($(TARGET_BUILD_VARIANT),user)
|
|
ifeq ($(WITH_DEXPREOPT),)
|
|
WITH_DEXPREOPT := true
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
# Display
|
|
BOARD_EGL_CFG := $(LOCAL_PATH)/configs/egl.cfg
|
|
MAX_EGL_CACHE_KEY_SIZE := 12*1024
|
|
MAX_EGL_CACHE_SIZE := 2048*1024
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
|
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
|
|
TARGET_CONTINUOUS_SPLASH_ENABLED := true
|
|
TARGET_USES_C2D_COMPOSITION := true
|
|
TARGET_USES_ION := true
|
|
USE_OPENGL_RENDERER := true
|
|
|
|
# Flags
|
|
COMMON_GLOBAL_CFLAGS += -DNO_SECURE_DISCARD
|
|
|
|
# FM
|
|
AUDIO_FEATURE_ENABLED_FM := true
|
|
TARGET_QCOM_NO_FM_FIRMWARE := true
|
|
|
|
# Fonts
|
|
EXTENDED_FONT_FOOTPRINT := true
|
|
|
|
# GPS
|
|
TARGET_GPS_HAL_PATH := $(LOCAL_PATH)/gps
|
|
TARGET_NO_RPC := true
|
|
|
|
# Init
|
|
TARGET_INIT_VENDOR_LIB := libinit_msm
|
|
TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
|
|
|
|
# Lights
|
|
TARGET_PROVIDES_LIBLIGHT := true
|
|
|
|
# Partitions
|
|
BOARD_FLASH_BLOCK_SIZE := 131072
|
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 33553920
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 157285888
|
|
BOARD_PERSISTIMAGE_PARTITION_SIZE := 33553920
|
|
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33553920
|
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612224
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 13295385600
|
|
|
|
# Power
|
|
TARGET_POWERHAL_VARIANT := qcom
|
|
|
|
# Qualcomm support
|
|
BOARD_USES_QCOM_HARDWARE := true
|
|
|
|
# Recovery
|
|
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/fstab.qcom
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
|
|
# Releasetools
|
|
TARGET_RELEASETOOLS_EXTENSIONS := $(LOCAL_PATH)
|
|
|
|
# RIL
|
|
TARGET_RIL_VARIANT := caf
|
|
|
|
# SELinux
|
|
include device/qcom/sepolicy/sepolicy.mk
|
|
|
|
BOARD_SEPOLICY_DIRS += \
|
|
device/wileyfox/crackling/sepolicy
|
|
|
|
BOARD_SEPOLICY_UNION += \
|
|
bluetooth_loader.te \
|
|
qseecomd.te \
|
|
surfaceflinger.te \
|
|
wcnss_service.te \
|
|
file_contexts \
|
|
property_contexts
|
|
|
|
# Time services
|
|
BOARD_USES_QC_TIME_SERVICES := true
|
|
|
|
# QC PROPRIETARY
|
|
ifneq ($(QCPATH),)
|
|
BOARD_USES_QCNE := true
|
|
endif
|
|
|
|
# Vold
|
|
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
|
|
|
|
# Wifi
|
|
BOARD_HAS_QCOM_WLAN := true
|
|
BOARD_HAS_QCOM_WLAN_SDK := true
|
|
BOARD_HOSTAPD_DRIVER := NL80211
|
|
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn
|
|
BOARD_WLAN_DEVICE := qcwcn
|
|
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
|
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn
|
|
TARGET_USES_QCOM_WCNSS_QMI := true
|
|
TARGET_USES_WCNSS_CTRL := true
|
|
WIFI_DRIVER_FW_PATH_AP := "ap"
|
|
WIFI_DRIVER_FW_PATH_STA := "sta"
|
|
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
|
|
|
# inherit from the proprietary version
|
|
-include vendor/wileyfox/crackling/BoardConfigVendor.mk
|