land: Add initial board makefiles and misc dependencies
Change-Id: Ia80204fbcdcbd2076299f92f797fa5a4f40e545c
This commit is contained in:
parent
c11ee2af14
commit
76dc8844c2
28 changed files with 267 additions and 0 deletions
21
Android.mk
Normal file
21
Android.mk
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2016 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 := $(call my-dir)
|
||||||
|
|
||||||
|
ifeq ($(TARGET_DEVICE),land)
|
||||||
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||||
|
endif
|
23
BoardConfig.mk
Normal file
23
BoardConfig.mk
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2016 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
DEVICE_PATH := device/xiaomi/land
|
||||||
|
|
||||||
|
include $(DEVICE_PATH)/PlatformConfig.mk
|
||||||
|
include $(DEVICE_PATH)/board/*.mk
|
||||||
|
|
||||||
|
# Inherit the proprietary files
|
||||||
|
-include vendor/xiaomi/land/BoardConfigVendor.mk
|
16
PlatformConfig.mk
Normal file
16
PlatformConfig.mk
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# Platform
|
||||||
|
TARGET_BOARD_PLATFORM := msm8937
|
||||||
|
|
||||||
|
# Architecture
|
||||||
|
TARGET_ARCH := arm64
|
||||||
|
TARGET_ARCH_VARIANT := armv8-a
|
||||||
|
TARGET_CPU_ABI := arm64-v8a
|
||||||
|
TARGET_CPU_ABI2 :=
|
||||||
|
TARGET_CPU_VARIANT := generic
|
||||||
|
|
||||||
|
# Second architecture
|
||||||
|
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
|
2
board/ant.mk
Normal file
2
board/ant.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# ANT
|
||||||
|
BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"
|
2
board/bluetooth.mk
Normal file
2
board/bluetooth.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Bluetooth
|
||||||
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
|
4
board/bootloader.mk
Normal file
4
board/bootloader.mk
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Bootloader
|
||||||
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8937
|
||||||
|
|
||||||
|
TARGET_NO_BOOTLOADER := true
|
2
board/camera.mk
Normal file
2
board/camera.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Camera
|
||||||
|
USE_DEVICE_SPECIFIC_CAMERA := true
|
3
board/charger.mk
Normal file
3
board/charger.mk
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Charger
|
||||||
|
BOARD_CHARGER_DISABLE_INIT_BLANK := true
|
||||||
|
BOARD_CHARGER_ENABLE_SUSPEND := true
|
2
board/cpusets.mk
Normal file
2
board/cpusets.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# CPUsets
|
||||||
|
ENABLE_CPUSETS := true
|
10
board/filesystem.mk
Normal file
10
board/filesystem.mk
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Partitions
|
||||||
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 41943040
|
||||||
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
|
||||||
|
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 41943040
|
||||||
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
|
||||||
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 27258747904
|
||||||
|
|
||||||
|
BOARD_FLASH_BLOCK_SIZE := 131072
|
||||||
|
|
||||||
|
TARGET_USERIMAGES_USE_EXT4 := true
|
2
board/gps.mk
Normal file
2
board/gps.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# GPS
|
||||||
|
USE_DEVICE_SPECIFIC_GPS := true
|
4
board/hardware.mk
Normal file
4
board/hardware.mk
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# CM Hardware
|
||||||
|
BOARD_USES_CYANOGEN_HARDWARE := true
|
||||||
|
BOARD_HARDWARE_CLASS += \
|
||||||
|
hardware/cyanogen/cmhw
|
11
board/kernel.mk
Normal file
11
board/kernel.mk
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# kernel
|
||||||
|
BOARD_KERNEL_BASE := 0x80000000
|
||||||
|
BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_PATH)/mkbootimg.mk
|
||||||
|
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78B0000
|
||||||
|
BOARD_KERNEL_PAGESIZE := 2048
|
||||||
|
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100
|
||||||
|
TARGET_KERNEL_ARCH := arm64
|
||||||
|
TARGET_KERNEL_CONFIG := cyanogenmod_land_defconfig
|
||||||
|
TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
|
||||||
|
TARGET_KERNEL_SOURCE := kernel/xiaomi/msm8937
|
||||||
|
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/kernel
|
2
board/lights.mk
Normal file
2
board/lights.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Lights
|
||||||
|
TARGET_PROVIDES_LIBLIGHT := true
|
2
board/malloc.mk
Normal file
2
board/malloc.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Malloc
|
||||||
|
MALLOC_IMPL := dlmalloc
|
21
board/qcom-audio.mk
Normal file
21
board/qcom-audio.mk
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Audio
|
||||||
|
AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
|
||||||
|
AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
|
||||||
|
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
|
||||||
|
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
|
||||||
|
AUDIO_FEATURE_ENABLED_DEV_ARBI := true
|
||||||
|
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
|
||||||
|
AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
|
||||||
|
AUDIO_FEATURE_ENABLED_FLUENCE := true
|
||||||
|
AUDIO_FEATURE_ENABLED_HFP := true
|
||||||
|
AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
|
||||||
|
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
|
||||||
|
AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
|
||||||
|
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
|
||||||
|
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
|
||||||
|
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
|
||||||
|
|
||||||
|
AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
|
||||||
|
BOARD_SUPPORTS_SOUND_TRIGGER := true
|
||||||
|
BOARD_USES_ALSA_AUDIO := true
|
||||||
|
USE_CUSTOM_AUDIO_POLICY := 1
|
4
board/qcom-bluetooth.mk
Normal file
4
board/qcom-bluetooth.mk
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
BOARD_HAVE_BLUETOOTH_QCOM := true
|
||||||
|
|
||||||
|
BLUETOOTH_HCI_USE_MCT := true
|
||||||
|
QCOM_BT_USE_SMD_TTY := true
|
2
board/qcom-cne.mk
Normal file
2
board/qcom-cne.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# CNE
|
||||||
|
BOARD_USES_QCNE := true
|
5
board/qcom-crypto.mk
Normal file
5
board/qcom-crypto.mk
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Encryption
|
||||||
|
TARGET_HW_DISK_ENCRYPTION := true
|
||||||
|
|
||||||
|
# Keystore
|
||||||
|
TARGET_KEYMASTER_WAIT_FOR_QSEE := true
|
10
board/qcom-display.mk
Normal file
10
board/qcom-display.mk
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
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_USES_C2D_COMPOSITION := true
|
||||||
|
TARGET_USES_ION := true
|
||||||
|
USE_OPENGL_RENDERER := true
|
4
board/qcom-fm.mk
Normal file
4
board/qcom-fm.mk
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# FM
|
||||||
|
AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
|
||||||
|
|
||||||
|
TARGET_QCOM_NO_FM_FIRMWARE := true
|
22
board/qcom-platform.mk
Normal file
22
board/qcom-platform.mk
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# Binder
|
||||||
|
TARGET_USES_64_BIT_BINDER := true
|
||||||
|
|
||||||
|
# Init
|
||||||
|
TARGET_INIT_VENDOR_LIB := libinit_land
|
||||||
|
TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
|
||||||
|
TARGET_RECOVERY_DEVICE_MODULES := libinit_land
|
||||||
|
|
||||||
|
# Peripheral manager
|
||||||
|
TARGET_PER_MGR_ENABLED := true
|
||||||
|
|
||||||
|
# Power
|
||||||
|
TARGET_POWERHAL_VARIANT := qcom
|
||||||
|
|
||||||
|
# QCOM support
|
||||||
|
BOARD_USES_QCOM_HARDWARE := true
|
||||||
|
|
||||||
|
# RIL
|
||||||
|
TARGET_RIL_VARIANT := caf
|
||||||
|
|
||||||
|
# Time
|
||||||
|
BOARD_USES_QC_TIME_SERVICES := true
|
2
board/qcom-sepolicy.mk
Normal file
2
board/qcom-sepolicy.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# SELinux
|
||||||
|
include device/qcom/sepolicy/sepolicy.mk
|
21
board/qcom-wlan.mk
Normal file
21
board/qcom-wlan.mk
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Wi-Fi
|
||||||
|
BOARD_HAS_QCOM_WLAN := 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
|
||||||
|
|
||||||
|
WIFI_DRIVER_FW_PATH_AP := "ap"
|
||||||
|
WIFI_DRIVER_FW_PATH_STA := "sta"
|
||||||
|
|
||||||
|
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
||||||
|
|
||||||
|
# EAP
|
||||||
|
CONFIG_EAP_PROXY := qmi
|
||||||
|
CONFIG_EAP_PROXY_DUAL_SIM := true
|
1
board/recovery.mk
Normal file
1
board/recovery.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/fstab.qcom
|
3
board/sepolicy.mk
Normal file
3
board/sepolicy.mk
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# SELinux
|
||||||
|
BOARD_SEPOLICY_DIRS += \
|
||||||
|
$(DEVICE_PATH)/sepolicy
|
52
mkbootimg.mk
Normal file
52
mkbootimg.mk
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
|
# Use prebuilt kernel
|
||||||
|
INTERNAL_BOOTIMAGE_ARGS := \
|
||||||
|
$(addprefix --second ,$(INSTALLED_2NDBOOTLOADER_TARGET)) \
|
||||||
|
--kernel $(TARGET_PREBUILT_KERNEL)
|
||||||
|
|
||||||
|
ifneq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true)
|
||||||
|
INTERNAL_BOOTIMAGE_ARGS += --ramdisk $(INSTALLED_RAMDISK_TARGET)
|
||||||
|
endif
|
||||||
|
|
||||||
|
INTERNAL_BOOTIMAGE_FILES := $(filter-out --%,$(INTERNAL_BOOTIMAGE_ARGS))
|
||||||
|
|
||||||
|
INTERNAL_RECOVERYIMAGE_ARGS := \
|
||||||
|
$(addprefix --second ,$(INSTALLED_2NDBOOTLOADER_TARGET)) \
|
||||||
|
--kernel $(TARGET_PREBUILT_KERNEL) \
|
||||||
|
--ramdisk $(recovery_ramdisk)
|
||||||
|
|
||||||
|
BOARD_KERNEL_CMDLINE := $(strip $(BOARD_KERNEL_CMDLINE))
|
||||||
|
ifdef BOARD_KERNEL_CMDLINE
|
||||||
|
INTERNAL_BOOTIMAGE_ARGS += --cmdline "$(BOARD_KERNEL_CMDLINE)"
|
||||||
|
INTERNAL_RECOVERYIMAGE_ARGS += --cmdline "$(BOARD_KERNEL_CMDLINE)"
|
||||||
|
endif
|
||||||
|
|
||||||
|
BOARD_KERNEL_BASE := $(strip $(BOARD_KERNEL_BASE))
|
||||||
|
ifdef BOARD_KERNEL_BASE
|
||||||
|
INTERNAL_BOOTIMAGE_ARGS += --base $(BOARD_KERNEL_BASE)
|
||||||
|
INTERNAL_RECOVERYIMAGE_ARGS += --base $(BOARD_KERNEL_BASE)
|
||||||
|
endif
|
||||||
|
|
||||||
|
BOARD_KERNEL_PAGESIZE := $(strip $(BOARD_KERNEL_PAGESIZE))
|
||||||
|
ifdef BOARD_KERNEL_PAGESIZE
|
||||||
|
INTERNAL_BOOTIMAGE_ARGS += --pagesize $(BOARD_KERNEL_PAGESIZE)
|
||||||
|
INTERNAL_RECOVERYIMAGE_ARGS += --pagesize $(BOARD_KERNEL_PAGESIZE)
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Overload bootimg generation: Same as the original, using prebuilt kernel
|
||||||
|
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES)
|
||||||
|
$(call pretty,"Target boot image: $@")
|
||||||
|
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@
|
||||||
|
$(hide) $(call assert-max-image-size,$@,$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
|
||||||
|
@echo -e ${CL_CYN}"Made boot image: $@"${CL_RST}
|
||||||
|
|
||||||
|
# Overload recoveryimg generation: Same as the original, using prebuilt kernel
|
||||||
|
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \
|
||||||
|
$(recovery_ramdisk) \
|
||||||
|
$(recovery_kernel)
|
||||||
|
$(call build-recoveryimage-target, $@)
|
||||||
|
@echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST}
|
||||||
|
$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@
|
||||||
|
$(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
|
||||||
|
@echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST}
|
14
rootdir/fstab.qcom
Normal file
14
rootdir/fstab.qcom
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Android fstab file.
|
||||||
|
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||||
|
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||||
|
|
||||||
|
#TODO: Add 'check' as fs_mgr_flags with data partition.
|
||||||
|
# Currently we dont have e2fsck compiled. So fs check would failed.
|
||||||
|
|
||||||
|
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||||
|
/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1,discard wait,verify
|
||||||
|
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard wait,resize,check,forceencrypt=footer
|
||||||
|
/dev/block/bootdevice/by-name/cust /cust ext4 nosuid,nodev,barrier=1 wait,check
|
||||||
|
/devices/soc/7864900.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,noemulatedsd,encryptable=footer
|
||||||
|
/dev/block/bootdevice/by-name/config /frp emmc defaults defaults
|
||||||
|
/devices/soc/78db000.usb/msm_hsusb_host* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto
|
Loading…
Reference in a new issue