Lineage-fy

This commit is contained in:
followmsi 2019-01-17 13:28:00 +01:00
parent 5e3393ae27
commit ed36b149cc
8 changed files with 68 additions and 48 deletions

View File

@ -1,19 +0,0 @@
#
# Copyright (C) 2011 The Android Open-Source 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.
#
ifeq ($(TARGET_PREBUILT_KERNEL),)
TARGET_PREBUILT_KERNEL := device/asus/flo-kernel/kernel
endif

View File

@ -17,5 +17,5 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/razor.mk \
$(LOCAL_DIR)/razor_go.mk \
$(LOCAL_DIR)/full_flo.mk
$(LOCAL_DIR)/lineage_flo.mk

View File

@ -23,11 +23,14 @@ TARGET_CPU_VARIANT := krait
TARGET_NO_BOOTLOADER := true
BOARD_KERNEL_BASE := 0x80200000
BOARD_KERNEL_IMAGE_NAME = zImage
BOARD_KERNEL_PAGESIZE := 2048
# BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=msm8960 maxcpus=2
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=flo user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.selinux=permissive
BOARD_KERNEL_CMDLINE += vmalloc=340M
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000
TARGET_KERNEL_SOURCE := kernel/google/msm
TARGET_KERNEL_CONFIG := followmsi-aosp_defconfig
BOARD_USES_ALSA_AUDIO:= true
BOARD_USES_LEGACY_ALSA_AUDIO:= false
@ -81,6 +84,7 @@ TARGET_USERIMAGES_USE_F2FS := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 23068672 # 22M
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672 # 22M
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 880803840 # 840M
#BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1336934400 # 1275M
#Reduce space taken by the journal
BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0
@ -109,13 +113,16 @@ BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true
TARGET_NO_RPC := true
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_CACHEIMAGE_PARTITION_SIZE := 33554432
BOARD_CACHEIMAGE_PARTITION_SIZE := 587202560 # 560M (STOCK)
#BOARD_CACHEIMAGE_PARTITION_SIZE := 157286400 # 150M
#BOARD_CACHEIMAGE_PARTITION_SIZE := 33554432 # 32MB (AOSP)
BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_PERSISTIMAGE_PARTITION_SIZE := 5242880
TARGET_USES_POST_PROCESSING := true
TARGET_CUSTOM_DISPLAY_TUNING := true
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
USE_DEVICE_SPECIFIC_QCOM_PROPRIETARY := true
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so

View File

@ -19,14 +19,16 @@
#
# Everything in this directory will become public
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/asus/flo/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES := \
$(LOCAL_KERNEL):kernel
#
#ifeq ($(TARGET_PREBUILT_KERNEL),)
#LOCAL_KERNEL := device/asus/flo/kernel
#else
#LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
#endif
#
#PRODUCT_COPY_FILES := \
# $(LOCAL_KERNEL):kernel
#
# This device is xhdpi. However the platform doesn't
# currently contain all of the bitmaps at xhdpi density so

View File

@ -1,18 +0,0 @@
#
# Copyright 2013 The Android Open-Source 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.
#
$(call inherit-product, device/asus/flo/razor.mk)
PRODUCT_NAME := full_flo

6
lineage.dependencies Normal file
View File

@ -0,0 +1,6 @@
[
{
"repository": "android_kernel_google_msm",
"target_path": "kernel/google/msm"
}
]

42
lineage_flo.mk Normal file
View File

@ -0,0 +1,42 @@
#
# Copyright 2012 The Android Open Source 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.
#
# Sample: This is where we'd set a backup provider if we had one
# $(call inherit-product, device/sample/products/backup_overlay.mk)
# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_mini_tablet_wifionly.mk)
# Inherit from the common Open Source product configuration
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
# Inherit from hardware-specific part of the product configuration
$(call inherit-product, device/asus/flo/device.mk)
$(call inherit-product-if-exists, vendor/asus/flo/flo-vendor.mk)
#$(call inherit-product-if-exists, vendor/qcom/proprietary/common/config/device-vendor.mk)
PRODUCT_DEVICE := flo
PRODUCT_NAME := lineage_flo
PRODUCT_BRAND := google
PRODUCT_MODEL := Nexus 7
PRODUCT_MANUFACTURER := asus
PRODUCT_RESTRICT_VENDOR_FILES := false
PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME=razor \
PRIVATE_BUILD_DESC="razor-user 6.0.1 MOB30X 3036618 release-keys"
BUILD_FINGERPRINT := google/razor/flo:6.0.1/MOB30X/3036618:user/release-keys

View File

@ -16,5 +16,5 @@
add_lunch_combo razor-userdebug
add_lunch_combo razor_go-userdebug
add_lunch_combo full_flo-userdebug
add_lunch_combo lineage_flo-userdebug