commit 458aeefaf06ed6c507eb94361d7591cbb6a99789 Author: Les De Ridder Date: Mon Nov 11 21:26:25 2019 +0100 Add loire stubs diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..64ddca2 --- /dev/null +++ b/Android.mk @@ -0,0 +1,36 @@ +# +# Copyright (C) 2019 The LineageOS 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 ($(BOARD_VENDOR_PLATFORM),loire) + +include $(call all-subdir-makefiles,$(LOCAL_PATH)) + +include $(CLEAR_VARS) + +# TODO +#WCD9320_BIN := wcd9320_anc.bin wcd9320_mad_audio.bin mbhc.bin +#WCD9320_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/wcd9320/,$(notdir $(WCD9320_BIN))) +#$(WCD9320_SYMLINKS): $(LOCAL_INSTALLED_MODULE) +# @echo "WCD9320 bin link: $@" +# @mkdir -p $(dir $@) +# @rm -rf $@ +# $(hide) ln -sf /data/misc/audio/$(notdir $@) $@ +# +#ALL_DEFAULT_INSTALLED_MODULES += $(WCD9320_SYMLINKS) + +endif diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk new file mode 100644 index 0000000..39b208c --- /dev/null +++ b/BoardConfigCommon.mk @@ -0,0 +1,248 @@ +# Copyright (C) 2019 The LineageOS 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. + +COMMON_PATH := device/sony/loire-common + +# Platform +BOARD_VENDOR_PLATFORM := loire +PRODUCT_PLATFORM := loire + +BOARD_VENDOR := sony + +TARGET_SPECIFIC_HEADER_PATH += $(COMMON_PATH)/include + +# Architecture +TARGET_ARCH := arm64 +TARGET_ARCH_VARIANT := armv8-a +TARGET_CPU_ABI := arm64-v8a +TARGET_CPU_ABI2 := +TARGET_CPU_VARIANT := cortex-a53 + +TARGET_2ND_ARCH := arm +TARGET_2ND_ARCH_VARIANT := armv8-a +TARGET_2ND_CPU_ABI := armeabi-v7a +TARGET_2ND_CPU_ABI2 := armeabi +TARGET_2ND_CPU_VARIANT := cortex-a53.a57 + +# TODO +# Bootloader +#TARGET_BOOTLOADER_BOARD_NAME := MSM8974 +#TARGET_NO_BOOTLOADER := true +#TARGET_NO_RADIOIMAGE := true + +# TODO: Partial +# Kernel +BOARD_KERNEL_BASE := 0x20000000 +#BOARD_KERNEL_IMAGE_NAME := zImage-dtb +BOARD_KERNEL_PAGESIZE := 4096 +BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 +#TARGET_KERNEL_CROSS_COMPILE_PREFIX := arm-linux-androideabi- +TARGET_KERNEL_SOURCE := kernel/sony/msm8956 + +# Platform +TARGET_BOARD_PLATFORM := msm8952 + +# TODO +# Audio +#AUDIO_FEATURE_DISABLED_USBAUDIO := true +#AUDIO_FEATURE_ENABLED_EXTN_POST_PROC := true +#BOARD_USES_ALSA_AUDIO := true + +# TODO: Partial +# Bluetooth +BOARD_HAVE_BLUETOOTH := true +BOARD_HAVE_BLUETOOTH_BCM := true + +# TODO +# Camera +#USE_DEVICE_SPECIFIC_CAMERA := true +#TARGET_HAS_LEGACY_CAMERA_HAL1 := true +#TARGET_USES_MEDIA_EXTENSIONS := true + +# TODO +# Camera Shims +#TARGET_LD_SHIM_LIBS := \ +# /system/vendor/bin/credmgrd|/system/vendor/lib/libshims_signal.so \ +# /system/vendor/bin/mm-qcamera-daemon|libandroid.so \ +# /system/vendor/bin/suntrold|/system/vendor/lib/libshims_signal.so \ +# /system/lib/hw/camera.vendor.qcom.so|libsensor.so \ +# /system/lib/libcammw.so|libsensor.so + +# TODO +# Charger +#BOARD_CHARGER_ENABLE_SUSPEND := true + +# TODO +# Filesystem +#TARGET_FS_CONFIG_GEN += $(COMMON_PATH)/config.fs + +# TODO +# Graphics +#TARGET_USES_ION := true +#NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 +#OVERRIDE_RS_DRIVER := libRSDriver_adreno.so +#TARGET_USES_GRALLOC1_ADAPTER := true + +# TODO +# Shader cache config options +# Maximum size of the GLES Shaders that can be cached for reuse. +# Increase the size if shaders of size greater than 12KB are used. +#MAX_EGL_CACHE_KEY_SIZE := 12*1024 + +# TODO +# Maximum GLES shader cache size for each app to store the compiled shader +# binaries. Decrease the size if RAM or Flash Storage size is a limitation +# of the device. +#MAX_EGL_CACHE_SIZE := 2048*1024 +#TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS := 0x02000000U + +# TODO +# Lights HAL +#TARGET_PROVIDES_LIBLIGHT := true + +# TODO +# Partition information +#BOARD_BOOTIMAGE_PARTITION_SIZE := 20971520 +#BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 +#BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200 +#BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216 +#BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64) + +# TODO +#TARGET_USERIMAGES_USE_EXT4 := true +#TARGET_USERIMAGES_USE_F2FS := true + +# TODO +# Power +#TARGET_HAS_LEGACY_POWER_STATS := true +#TARGET_HAS_NO_WLAN_STATS := true +#TARGET_USES_INTERACTION_BOOST := true + +# TODO +# QCOM hardware +#BOARD_USES_QCOM_HARDWARE := true + +# TODO +# Recovery +#TARGET_RECOVERY_UI_BLANK_UNBLANK_ON_INIT := true + +# TODO +# RIL +#TARGET_RIL_VARIANT := caf + +# TODO +# Security patch level +#VENDOR_SECURITY_PATCH := 2016-05-01 + +# TODO +# SELinux +#include device/qcom/sepolicy-legacy/sepolicy.mk + +# TODO +#BOARD_SEPOLICY_DIRS += \ +# $(COMMON_PATH)/sepolicy + +# SODP build barrier +PRODUCT_PLATFORM_SOD := true + +# Treble +#DEVICE_MANIFEST_FILE := $(COMMON_PATH)/manifest.xml + +# Kernel +BOARD_KERNEL_CMDLINE := androidboot.bootdevice=7824900.sdhci + +# TODO +# Audio +#AUDIO_FEATURE_DISABLED_FM_VIRTUAL_RECORD := true +#AUDIO_FEATURE_ENABLED_ANC_HEADSET := true +#AUDIO_FEATURE_ENABLED_AUXPCM_BT := true +#AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true +#AUDIO_FEATURE_ENABLED_HFP := true +#AUDIO_FEATURE_ENABLED_HWDEP_CAL := true +#AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true +#AUDIO_FEATURE_ENABLED_MULTIPLE_TUNNEL := true +#AUDIO_FEATURE_ENABLED_NEW_SAMPLE_RATE = true +#AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true +#AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true +# +#USE_CUSTOM_AUDIO_POLICY := 1 +#USE_XML_AUDIO_POLICY_CONF := 1 + +# TODO +# Binder API version +#TARGET_USES_64_BIT_BINDER := true + +# TODO +# Bluetooth +#BOARD_HAVE_BLUETOOTH_BCM := true +#BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth +#BOARD_CUSTOM_BT_CONFIG := $(COMMON_PATH)/bluetooth/vnd_loire.txt + +# TODO +# BT/FM (Broadcom): Adjust the sysfs patch for 3.4 kernel +#BOARD_HAVE_BCM_FM_SYSFS := "/sys/bus/platform/drivers/bcm_ldisc/bcm_ldisc/" +#BOARD_BRCM_HCI_NUM := 26 + +# TODO +# Camera +#TARGET_USES_MEDIA_EXTENSIONS := true + +# TODO +# Filesystem +#TARGET_FS_CONFIG_GEN += $(COMMON_PATH)/config.fs + +# TODO +# FM +#BOARD_HAVE_BCM_FM := true + +# TODO +# Init +#TARGET_INIT_VENDOR_LIB := libinit_loire + +# TODO +# Partition information +#BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2671771648 +#BOARD_USERDATAIMAGE_PARTITION_SIZE := 12656294912 +#BOARD_ROOT_EXTRA_FOLDERS := lta-label + +# TODO +# Recovery +#TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/rootdir/etc/fstab.qcom +#TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_8888" + +# TODO +# SELinux +#BOARD_SEPOLICY_DIRS += \ +# $(COMMON_PATH)/sepolicy + +# TODO +# Sensors +#USE_SENSOR_MULTI_HAL := true + +# TODO +# Shims +#TARGET_LD_SHIM_LIBS += \ +# /system/lib/libsomc_chokoballpal.so|/vendor/lib/libshim_camera.so + +# TODO +# Wifi +#BOARD_WLAN_DEVICE := bcmdhd +#BOARD_WPA_SUPPLICANT_DRIVER := NL80211 +#WPA_SUPPLICANT_VERSION := VER_0_8_X +#BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd +#BOARD_HOSTAPD_DRIVER := NL80211 +#BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd +#WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" +#WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" +#WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" diff --git a/CleanSpec.mk b/CleanSpec.mk new file mode 100644 index 0000000..0be1546 --- /dev/null +++ b/CleanSpec.mk @@ -0,0 +1,52 @@ +# Copyright (C) 2012 The Android Open Source Project +# Copyright (C) 2013 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. +# + +# If you don't need to do a full clean build but would like to touch +# a file or delete some intermediate files, add a clean step to the end +# of the list. These steps will only be run once, if they haven't been +# run before. +# +# E.g.: +# $(call add-clean-step, touch -c external/sqlite/sqlite3.h) +# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates) +# +# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with +# files that are missing or have been moved. +# +# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory. +# Use $(OUT_DIR) to refer to the "out" directory. +# +# If you need to re-do something that's already mentioned, just copy +# the command and add it to the bottom of the list. E.g., if a change +# that you made last week required touching a file and a change you +# made today requires touching the same file, just copy the old +# touch step and add it to the end of the list. +# +# ************************************************ +# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST +# ************************************************ + +# For example: +#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates) +#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) +#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) +#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) + +# ************************************************ +# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST +# ************************************************ + +# TODO diff --git a/extract-files.sh b/extract-files.sh new file mode 100644 index 0000000..9972084 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Copyright (C) 2017-2019 The LineageOS 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. +# + +set -e + +# TODO diff --git a/lineage.dependencies b/lineage.dependencies new file mode 100644 index 0000000..a5c7d12 --- /dev/null +++ b/lineage.dependencies @@ -0,0 +1,14 @@ +[ + { + "repository": "android_device_sony_common", + "target_path": "device/sony/common" + }, + { + "repository": "android_kernel_sony_msm8956", + "target_path": "kernel/sony/msm8956" + }, + { + "repository": "android_hardware_sony_thermanager", + "target_path": "hardware/sony/thermanager" + } +] diff --git a/loire.mk b/loire.mk new file mode 100644 index 0000000..55f5456 --- /dev/null +++ b/loire.mk @@ -0,0 +1,148 @@ +# Copyright (C) 2019 The LineageOS 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. + +# TODO +#$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_k.mk) + +COMMON_PATH := device/sony/loire-common + +# Overlay +DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay + +# TODO +# Audio +#PRODUCT_COPY_FILES += \ +# $(COMMON_PATH)/configs/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ +# $(COMMON_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml +# +#PRODUCT_COPY_FILES += \ +# frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ +# frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ +# frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ +# frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ +# frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml +# +#PRODUCT_PACKAGES += \ +# tfa9890_amp +# +## Bluetooth +#PRODUCT_PACKAGES += \ +# android.hardware.bluetooth@1.0-impl +# +#PRODUCT_PACKAGES += \ +# libbt-vendor +# +#PRODUCT_COPY_FILES += \ +# $(COMMON_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf +# +## Camera +#PRODUCT_PACKAGES += \ +# libshim_camera +# +#PRODUCT_PACKAGES += \ +# tad_static \ +# wait4tad_static +# +## FM +#PRODUCT_PACKAGES += \ +# FMRadio \ +# brcm-uim-sysfs \ +# libfmradio.v4l2-fm +# +## IPC Security Config +#PRODUCT_COPY_FILES += \ +# $(COMMON_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config +# +## Keylayout +#PRODUCT_COPY_FILES += \ +# $(COMMON_PATH)/configs/keylayout/gpio-keys.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/gpio-keys.kl \ +# $(COMMON_PATH)/configs/keylayout/mhl-rcp.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/mhl-rcp.kl \ +# $(COMMON_PATH)/configs/keylayout/msm8974-taiko-mtp-snd-card_Button_Jack.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/msm8974-taiko-mtp-snd-card_Button_Jack.kl +# +## Keystore +#PRODUCT_PACKAGES += \ +# keystore.msm8974 +# +## MAC address - BT and Wi-Fi +#PRODUCT_PACKAGES += \ +# macaddrsetup +# +## Media profile +#PRODUCT_COPY_FILES += \ +# $(COMMON_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ +# $(COMMON_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ +# $(COMMON_PATH)/configs/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml +# +## NFC +#PRODUCT_PACKAGES += \ +# android.hardware.nfc@1.0-impl \ +# android.hardware.nfc@1.0-service \ +# com.android.nfc_extras \ +# NfcNci \ +# nfc_nci.msm8974 +# +#PRODUCT_PACKAGES += \ +# libnfc-nci.conf \ +# libnfc-nxp.conf +# +#PRODUCT_COPY_FILES += \ +# $(COMMON_PATH)/configs/nfc/nfcee_access.xml:$(TARGET_COPY_OUT_VENDOR)/etc/nfcee_access.xml \ +# frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ +# frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ +# frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \ +# frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml +# +## Permissions +#PRODUCT_COPY_FILES += \ +# frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \ +# frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \ +# frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ +# frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ +# frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ +# frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \ +# frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \ +# frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \ +# frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \ +# frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \ +# frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ +# frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ +# frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ +# frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ +# frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ +# frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml +# + +# Properties +include $(COMMON_PATH)/system_prop.mk + +# TODO +## Ramdisk +#PRODUCT_PACKAGES += \ +# fstab.qcom \ +# init.camera.rc \ +# init.qcom.power.rc \ +# init.qcom.rc \ +# init.recovery.qcom.rc \ +# init.sony.usb.rc \ +# ueventd.qcom.rc +# +#PRODUCT_PACKAGES += \ +# credmgrfirstboot.sh \ +# init.qcom-sensor.sh +# +## Include BCM Wifi +#$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk) + +# Call the proprietary setup +$(call inherit-product, vendor/sony/loire-common/loire-common-vendor.mk) diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..4640904 --- /dev/null +++ b/proprietary-files.txt @@ -0,0 +1 @@ +# TODO diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100644 index 0000000..0af4793 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,77 @@ +#!/bin/bash +# +# Copyright (C) 2019 The LineageOS 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. +# + +# TODO: Check all + +set -e + +INITIAL_COPYRIGHT_YEAR=2019 + +# Load extract_utils and do some sanity checks +MY_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi + +LINEAGE_ROOT="${MY_DIR}/../../.." + +HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh" +if [ ! -f "${HELPER}" ]; then + echo "Unable to find helper script at ${HELPER}" + exit 1 +fi +source "${HELPER}" + +# Initialize the helper for platform +setup_vendor "${DEVICE_PLATFORM}" "${VENDOR}" "${LINEAGE_ROOT}" true + +# Copyright headers and guards +write_headers "kugo" + +# The standard common blobs +write_makefiles "${MY_DIR}/proprietary-files.txt" true + +# Finish +write_footers + +if [ -s "${MY_DIR}/../${DEVICE_COMMON}/proprietary-files.txt" ]; then + # Reinitialize the helper for common + source "${MY_DIR}/../${DEVICE_COMMON}/setup-makefiles.sh" + setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true + + # Copyright headers and guards + write_headers "${DEVICE_PLATFORM_BARRIER}" + + # The standard device blobs + write_makefiles "${MY_DIR}/../${DEVICE_COMMON}/proprietary-files.txt" true + + # Finish + write_footers +fi + +if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then + # Reinitialize the helper for device + source "${MY_DIR}/../${DEVICE}/setup-makefiles.sh" + setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" false + + # Copyright headers and guards + write_headers + + # The standard device blobs + write_makefiles "${MY_DIR}/../${DEVICE}/proprietary-files.txt" true + + # Finish + write_footers +fi diff --git a/system_prop.mk b/system_prop.mk new file mode 100644 index 0000000..9584fea --- /dev/null +++ b/system_prop.mk @@ -0,0 +1,67 @@ +# TODO + +## Active Noise Cancelling +#PRODUCT_PROPERTY_OVERRIDES += \ +# persist.audio.anc.enabled=true +# +## aDSP sensors +### max rate +#PRODUCT_PROPERTY_OVERRIDES += \ +# ro.qti.sensors.max_accel_rate=false \ +# ro.qti.sensors.max_gyro_rate=false \ +# ro.qti.sensors.max_mag_rate=false \ +# ro.qti.sensors.max_geomag_rotv=50 +# +### sensor type +#PRODUCT_PROPERTY_OVERRIDES += \ +# ro.qti.sdk.sensors.gestures=false \ +# ro.qti.sensors.pedometer=false \ +# ro.qti.sensors.step_detector=true \ +# ro.qti.sensors.step_counter=true \ +# ro.qti.sensors.pam=false \ +# ro.qti.sensors.scrn_ortn=false \ +# ro.qti.sensors.smd=true \ +# ro.qti.sensors.game_rv=true \ +# ro.qti.sensors.georv=true \ +# ro.qti.sensors.cmc=false \ +# ro.qti.sensors.bte=false \ +# ro.qti.sensors.fns=false \ +# ro.qti.sensors.qmd=false \ +# ro.qti.sensors.amd=false \ +# ro.qti.sensors.rmd=false \ +# ro.qti.sensors.vmd=false \ +# ro.qti.sensors.gtap=false \ +# ro.qti.sensors.tap=false \ +# ro.qti.sensors.facing=false \ +# ro.qti.sensors.tilt=false \ +# ro.qti.sensors.tilt_detector=true \ +# ro.qti.sensors.dpc=false \ +# ro.qti.sensors.wu=false +# +## Assertive Display +#PRODUCT_PROPERTY_OVERRIDES += \ +# ro.qcom.ad=1 \ +# ro.qcom.ad.calib.data=/vendor/etc/ad_calib.cfg +# +## Audio HAL +#PRODUCT_PROPERTY_OVERRIDES += \ +# persist.vendor.audio.fluence.audiorec=true \ +# persist.vendor.audio.fluence.speaker=true \ +# persist.vendor.audio.fluence.voicecall=true \ +# persist.vendor.audio.fluence.voicerec=false \ +# ro.vendor.audio.sdk.fluencetype=none +# +## Bluetooth +#PRODUCT_PROPERTY_OVERRIDES += \ +# bluetooth.a2dp.sink.enabled=false \ +# ro.bluetooth.hfp.ver=1.6 \ +# ro.bt.bdaddr_path="/data/etc/bluetooth_bdaddr" \ +# ro.rfkilldisabled=1 +# +## Semc +#PRODUCT_PROPERTY_OVERRIDES += \ +# ro.semc.version.sw_revision=23.5.A.1.291 \ +# ro.semc.version.sw_variant=GLOBAL-LTECA \ +# ro.semc.version.sw_type=user \ +# ro.semc.version.fs_revision=23.5.A.1.291 \ +# ro.semc.version.fs=GENERIC