Add kugo stubs

This commit is contained in:
Les De Ridder 2019-11-11 20:52:56 +01:00
commit 9aefe1be3d
11 changed files with 284 additions and 0 deletions

21
Android.mk Normal file
View File

@ -0,0 +1,21 @@
#
# 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 ($(TARGET_DEVICE),kugo)
include $(call first-makefiles-under,$(LOCAL_PATH))
endif

18
AndroidProducts.mk Normal file
View File

@ -0,0 +1,18 @@
#
# 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.
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_kugo.mk

48
BoardConfig.mk Normal file
View File

@ -0,0 +1,48 @@
#
# 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.
#
# inherit from the loire-common
include device/sony/loire-common/BoardConfigCommon.mk
DEVICE_PATH := device/sony/kugo
# Assert
TARGET_OTA_ASSERT_DEVICE := kugo
# TODO
# HIDL
#DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
# Include path
TARGET_SPECIFIC_HEADER_PATH += $(DEVICE_PATH)/include
# TODO
# Kernel properties
#TARGET_KERNEL_CONFIG := lineageos_loire_kugo_defconfig
# TODO
# Partition information
#BOARD_VOLD_MAX_PARTITIONS := 25
# TODO
# Power
#TARGET_TAP_TO_WAKE_NODE := "/sys/devices/virtual/input/clearpad/wakeup_gesture"
# SELinux
BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy
# Inherit from proprietary files
include vendor/sony/kugo/BoardConfigVendor.mk

30
extract-files.sh Normal file
View File

@ -0,0 +1,30 @@
#!/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.
#
# If we're being sourced by the common script that we called,
# stop right here. No need to go down the rabbit hole.
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
return
fi
set -e
export DEVICE=kugo
export DEVICE_COMMON=loire-common
export VENDOR=sony
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

81
kugo.mk Normal file
View File

@ -0,0 +1,81 @@
#
# 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.
#
# Inherit loire-common definitions
$(call inherit-product, device/sony/loire-common/loire.mk)
DEVICE_PATH := device/sony/kugo
# TODO
# Audio configs
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
# $(LOCAL_PATH)/configs/audio/mixer_paths_auxpcm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_auxpcm.xml
# Boot animation
TARGET_SCREEN_HEIGHT := 1280
TARGET_SCREEN_WIDTH := 720
# TODO
# Hardware-specific permissions
#PRODUCT_COPY_FILES += \
# frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
# frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
# frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
# frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
# frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
# TODO
# Lineage Hardware
#PRODUCT_PACKAGES += \
# vendor.lineage.touch@1.0-service.kugo
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(DEVICE_PATH)/overlay \
$(DEVICE_PATH)/overlay-lineage
# TODO
# Permissions
#PRODUCT_COPY_FILES += \
# frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
# Properties
include $(DEVICE_PATH)/system_prop.mk
# TODO
# Sensors
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/configs/sensor_def_qcomdev.conf:system/etc/sensor_def_qcomdev.conf
# TODO: Check
# Screen density
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xhdpi
# TODO
# Thermal manager
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/configs/thermanager.xml:$(TARGET_COPY_OUT_VENDOR)/etc/thermanager.xml
# TODO
# Wifi
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/configs/wifi/bcmdhd.cal:$(TARGET_COPY_OUT_VENDOR)/firmware/bcmdhd.cal
# Call the proprietary setup
$(call inherit-product, vendor/sony/kugo/kugo-vendor.mk)

6
lineage.dependencies Normal file
View File

@ -0,0 +1,6 @@
[
{
"repository": "android_device_sony_loire-common",
"target_path": "device/sony/loire-common"
}
]

30
lineage_kugo.mk Normal file
View File

@ -0,0 +1,30 @@
#
# 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.
#
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from kugo device
$(call inherit-product, device/sony/kugo/kugo.mk)
# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
PRODUCT_NAME := lineage_kugo
PRODUCT_DEVICE := kugo
PRODUCT_BRAND := Sony
PRODUCT_MODEL := Xperia X Compact
PRODUCT_MANUFACTURER := Sony

1
proprietary-files.txt Normal file
View File

@ -0,0 +1 @@
# TODO

30
setup-makefiles.sh Normal file
View File

@ -0,0 +1,30 @@
#!/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.
#
# If we're being sourced by the common script that we called,
# stop right here. No need to go down the rabbit hole.
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
return
fi
set -e
export DEVICE=kugo
export DEVICE_COMMON=loire-common
export VENDOR=sony
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"

17
system_prop.mk Normal file
View File

@ -0,0 +1,17 @@
#
# 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

2
vendorsetup.sh Normal file
View File

@ -0,0 +1,2 @@
add_lunch_combo lineage_kugo-eng
add_lunch_combo lineage_kugo-userdebug