klte-common: Sort makefile sections sanely
Change-Id: Idb20e4befc873925003f2ede74c154aba2417d99
This commit is contained in:
parent
3c4c6b5df6
commit
adf0999b2a
|
@ -20,27 +20,9 @@ LOCAL_PATH := device/samsung/klte-common
|
||||||
|
|
||||||
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
|
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
|
||||||
|
|
||||||
# Use Snapdragon LLVM if available on build server
|
|
||||||
TARGET_USE_SDCLANG := true
|
|
||||||
|
|
||||||
# ADB Legacy Interface
|
# ADB Legacy Interface
|
||||||
TARGET_USES_LEGACY_ADB_INTERFACE := true
|
TARGET_USES_LEGACY_ADB_INTERFACE := true
|
||||||
|
|
||||||
# Bootloader
|
|
||||||
TARGET_BOOTLOADER_BOARD_NAME := MSM8974
|
|
||||||
|
|
||||||
# Kernel
|
|
||||||
BOARD_KERNEL_BASE := 0x00000000
|
|
||||||
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 zcache.enabled=1 zcache.compressor=lz4 androidboot.bootdevice=msm_sdcc.1
|
|
||||||
BOARD_KERNEL_IMAGE_NAME := zImage
|
|
||||||
BOARD_KERNEL_PAGESIZE := 2048
|
|
||||||
BOARD_KERNEL_SEPARATED_DT := true
|
|
||||||
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01e00000
|
|
||||||
BOARD_CUSTOM_BOOTIMG := true
|
|
||||||
BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
|
|
||||||
LZMA_RAMDISK_TARGETS := recovery
|
|
||||||
TARGET_KERNEL_SOURCE := kernel/samsung/msm8974
|
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
BOARD_HAVE_NEW_QCOM_CSDCLIENT := true
|
BOARD_HAVE_NEW_QCOM_CSDCLIENT := true
|
||||||
USE_CUSTOM_AUDIO_POLICY := 1
|
USE_CUSTOM_AUDIO_POLICY := 1
|
||||||
|
@ -54,6 +36,9 @@ BOARD_CUSTOM_BT_CONFIG := $(LOCAL_PATH)/bluetooth/vnd_klte.txt
|
||||||
BOARD_HAVE_BLUETOOTH_BCM := true
|
BOARD_HAVE_BLUETOOTH_BCM := true
|
||||||
BOARD_HAVE_SAMSUNG_BLUETOOTH := true
|
BOARD_HAVE_SAMSUNG_BLUETOOTH := true
|
||||||
|
|
||||||
|
# Bootloader
|
||||||
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8974
|
||||||
|
|
||||||
# Camera
|
# Camera
|
||||||
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
|
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
|
||||||
USE_DEVICE_SPECIFIC_CAMERA := true
|
USE_DEVICE_SPECIFIC_CAMERA := true
|
||||||
|
@ -67,6 +52,18 @@ TARGET_KERNEL_HAVE_EXFAT := true
|
||||||
# HIDL
|
# HIDL
|
||||||
DEVICE_MANIFEST_FILE := $(LOCAL_PATH)/manifest.xml
|
DEVICE_MANIFEST_FILE := $(LOCAL_PATH)/manifest.xml
|
||||||
|
|
||||||
|
# Kernel
|
||||||
|
BOARD_KERNEL_BASE := 0x00000000
|
||||||
|
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 zcache.enabled=1 zcache.compressor=lz4 androidboot.bootdevice=msm_sdcc.1
|
||||||
|
BOARD_KERNEL_IMAGE_NAME := zImage
|
||||||
|
BOARD_KERNEL_PAGESIZE := 2048
|
||||||
|
BOARD_KERNEL_SEPARATED_DT := true
|
||||||
|
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01e00000
|
||||||
|
BOARD_CUSTOM_BOOTIMG := true
|
||||||
|
BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
|
||||||
|
LZMA_RAMDISK_TARGETS := recovery
|
||||||
|
TARGET_KERNEL_SOURCE := kernel/samsung/msm8974
|
||||||
|
|
||||||
# Legacy BLOB Support
|
# Legacy BLOB Support
|
||||||
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
|
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
|
||||||
|
|
||||||
|
@ -107,6 +104,9 @@ ifeq ($(WITH_TWRP),true)
|
||||||
-include $(LOCAL_PATH)/twrp.mk
|
-include $(LOCAL_PATH)/twrp.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Use Snapdragon LLVM if available on build server
|
||||||
|
TARGET_USE_SDCLANG := true
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
BOARD_HAVE_SAMSUNG_WIFI := true
|
BOARD_HAVE_SAMSUNG_WIFI := true
|
||||||
BOARD_WLAN_DEVICE := bcmdhd
|
BOARD_WLAN_DEVICE := bcmdhd
|
||||||
|
|
82
klte.mk
82
klte.mk
|
@ -16,9 +16,8 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
||||||
|
$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
|
||||||
# Get non-open-source specific aspects
|
$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
|
||||||
$(call inherit-product-if-exists, vendor/samsung/klte-common/klte-common-vendor.mk)
|
|
||||||
|
|
||||||
# Overlays
|
# Overlays
|
||||||
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
||||||
|
@ -27,34 +26,11 @@ DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage
|
||||||
# System properties
|
# System properties
|
||||||
-include $(LOCAL_PATH)/system_prop.mk
|
-include $(LOCAL_PATH)/system_prop.mk
|
||||||
|
|
||||||
# Device uses high-density artwork where available
|
|
||||||
PRODUCT_AAPT_CONFIG := normal
|
|
||||||
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
|
||||||
|
|
||||||
# Boot animation
|
# Boot animation
|
||||||
TARGET_SCREEN_HEIGHT := 1920
|
TARGET_SCREEN_HEIGHT := 1920
|
||||||
TARGET_SCREEN_WIDTH := 1080
|
TARGET_SCREEN_WIDTH := 1080
|
||||||
TARGET_BOOTANIMATION_HALF_RES := true
|
TARGET_BOOTANIMATION_HALF_RES := true
|
||||||
|
|
||||||
$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
|
|
||||||
|
|
||||||
$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
|
|
||||||
|
|
||||||
# Permissions
|
|
||||||
PRODUCT_COPY_FILES += \
|
|
||||||
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.consumerir.xml:system/etc/permissions/android.hardware.consumerir.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
|
|
||||||
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
|
|
||||||
frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
|
|
||||||
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
|
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
|
$(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
|
||||||
|
@ -62,18 +38,6 @@ PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
|
$(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
|
||||||
$(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml
|
$(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml
|
||||||
|
|
||||||
# GPS
|
|
||||||
PRODUCT_PACKAGES += \
|
|
||||||
android.hardware.gnss@1.0-impl \
|
|
||||||
gps.msm8974
|
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
|
||||||
$(LOCAL_PATH)/configs/clatd.conf:system/etc/clatd.conf \
|
|
||||||
$(LOCAL_PATH)/configs/flp.conf:system/etc/flp.conf \
|
|
||||||
$(LOCAL_PATH)/configs/gps.conf:system/etc/gps.conf \
|
|
||||||
$(LOCAL_PATH)/configs/izat.conf:system/etc/izat.conf \
|
|
||||||
$(LOCAL_PATH)/configs/sap.conf:system/etc/sap.conf
|
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.bluetooth@1.0-impl \
|
android.hardware.bluetooth@1.0-impl \
|
||||||
|
@ -93,6 +57,10 @@ PRODUCT_PACKAGES += \
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.drm@1.0-impl
|
android.hardware.drm@1.0-impl
|
||||||
|
|
||||||
|
# Device uses high-density artwork where available
|
||||||
|
PRODUCT_AAPT_CONFIG := normal
|
||||||
|
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
||||||
|
|
||||||
# Doze
|
# Doze
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
SamsungDoze
|
SamsungDoze
|
||||||
|
@ -106,6 +74,18 @@ PRODUCT_PACKAGES += \
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
FlipFlap
|
FlipFlap
|
||||||
|
|
||||||
|
# GPS
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
android.hardware.gnss@1.0-impl \
|
||||||
|
gps.msm8974
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/configs/clatd.conf:system/etc/clatd.conf \
|
||||||
|
$(LOCAL_PATH)/configs/flp.conf:system/etc/flp.conf \
|
||||||
|
$(LOCAL_PATH)/configs/gps.conf:system/etc/gps.conf \
|
||||||
|
$(LOCAL_PATH)/configs/izat.conf:system/etc/izat.conf \
|
||||||
|
$(LOCAL_PATH)/configs/sap.conf:system/etc/sap.conf
|
||||||
|
|
||||||
# IPv6 tethering
|
# IPv6 tethering
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
ebtables \
|
ebtables \
|
||||||
|
@ -138,6 +118,21 @@ PRODUCT_PACKAGES += \
|
||||||
NfcNci \
|
NfcNci \
|
||||||
Tag
|
Tag
|
||||||
|
|
||||||
|
# Permissions
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
|
||||||
|
frameworks/native/data/etc/android.hardware.consumerir.xml:system/etc/permissions/android.hardware.consumerir.xml \
|
||||||
|
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
|
||||||
|
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
|
||||||
|
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
|
||||||
|
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
|
||||||
|
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
|
||||||
|
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
|
||||||
|
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
|
||||||
|
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
|
||||||
|
frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
|
||||||
|
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
|
||||||
|
|
||||||
# Radio
|
# Radio
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libsecnativefeature \
|
libsecnativefeature \
|
||||||
|
@ -169,13 +164,11 @@ PRODUCT_PACKAGES += \
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libnetcmdiface \
|
hostapd \
|
||||||
macloader
|
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
|
||||||
hostapd.accept \
|
hostapd.accept \
|
||||||
hostapd.deny \
|
hostapd.deny \
|
||||||
hostapd \
|
libnetcmdiface \
|
||||||
|
macloader \
|
||||||
wpa_supplicant \
|
wpa_supplicant \
|
||||||
wpa_supplicant.conf
|
wpa_supplicant.conf
|
||||||
|
|
||||||
|
@ -183,5 +176,8 @@ PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
|
$(LOCAL_PATH)/configs/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
|
||||||
$(LOCAL_PATH)/configs/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf
|
$(LOCAL_PATH)/configs/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf
|
||||||
|
|
||||||
|
# Get non-open-source specific aspects
|
||||||
|
$(call inherit-product-if-exists, vendor/samsung/klte-common/klte-common-vendor.mk)
|
||||||
|
|
||||||
# common msm8974
|
# common msm8974
|
||||||
$(call inherit-product, device/samsung/msm8974-common/msm8974.mk)
|
$(call inherit-product, device/samsung/msm8974-common/msm8974.mk)
|
||||||
|
|
Loading…
Reference in New Issue