Add dragon dependencies
This is the Google Pixel C. Initfiles are custom made. Note: The dragon bootloader requires the kernel to packaged in a fit image. This can't easily be handled in a true unified build, so dragon is not added to the assert list. It will be built from a derivative repo that overrides the assert list. Change-Id: Ifaa39cead735f4a677151145474bf47953bdcd0a
This commit is contained in:
1 parent
ca71fa80a1
commit
f9301e4151
5 files changed
+103
-1
No files matched your search
@@ -30,6 +30,7 @@ $(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-he
|
||||
# Init related
|
||||
PRODUCT_PACKAGES += \
|
||||
fstab.darcy \
|
||||
fstab.dragon \
|
||||
fstab.foster \
|
||||
fstab.foster_e \
|
||||
fstab.foster_e_hdd \
|
||||
@@ -44,6 +45,7 @@ PRODUCT_PACKAGES += \
|
||||
fstab.porg_sd \
|
||||
fstab.sif \
|
||||
init.darcy.rc \
|
||||
init.dragon.rc \
|
||||
init.foster_e.rc \
|
||||
init.foster_e_hdd.rc \
|
||||
init.foster_e_common.rc \
|
||||
@@ -61,6 +63,7 @@ PRODUCT_PACKAGES += \
|
||||
init.porg_sd.rc \
|
||||
init.sif.rc \
|
||||
init.recovery.darcy.rc \
|
||||
init.recovery.dragon.rc \
|
||||
init.recovery.foster_e.rc \
|
||||
init.recovery.foster_e_hdd.rc \
|
||||
init.recovery.foster_common.rc \
|
||||
@@ -75,6 +78,7 @@ PRODUCT_PACKAGES += \
|
||||
init.recovery.porg_sd.rc \
|
||||
init.recovery.sif.rc \
|
||||
power.darcy.rc \
|
||||
power.dragon.rc \
|
||||
power.foster_e.rc \
|
||||
power.foster_e_hdd.rc \
|
||||
power.icosa.rc \
|
||||
|
||||
+34
-1
@@ -88,6 +88,20 @@ void vendor_set_usb_product_ids(tegra_init *ti)
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "2000";
|
||||
} else if (ti->is_model("dragon")) {
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.vid"] = "18D1";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "5202";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "5203";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "5206";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "5207";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "5204";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "5205";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.adb"] = "5208";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.accessory.adb"] = "2D01";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.audio_source.adb"] = "2D03";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.midi"] = "5209";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.midi.adb"] = "520A";
|
||||
|
||||
} else {
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "EE02";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "EE03";
|
||||
@@ -120,7 +134,8 @@ void vendor_load_properties()
|
||||
{ "porg", "porg_sd", "Jetson Nano", 3448, 0, tegra_init::boot_dev_type::SD, 28, 320 },
|
||||
{ "porg", "porg", "Jetson Nano", 3448, 2, tegra_init::boot_dev_type::EMMC, 28, 320 },
|
||||
{ "icosa", "icosa_emmc", "Switch", 20, 1, tegra_init::boot_dev_type::EMMC, 27, 192 },
|
||||
{ "icosa", "icosa", "Switch", 20, 0, tegra_init::boot_dev_type::SD, 27, 192 } };
|
||||
{ "icosa", "icosa", "Switch", 20, 0, tegra_init::boot_dev_type::SD, 27, 192 },
|
||||
{ "dragon", "dragon", "Pixel C", 3, 0, tegra_init::boot_dev_type::EMMC, 23, 320 } };
|
||||
tegra_init::build_version tav = { "9", "PPR1.180610.011", "4199485_1739.5219" };
|
||||
std::vector<std::string> parts = { "APP", "CAC", "LNX", "SOS", "UDA", "USP", "vendor" };
|
||||
|
||||
@@ -135,6 +150,24 @@ void vendor_load_properties()
|
||||
}
|
||||
} else if (ti.is_model("icosa") || ti.is_model("icosa_emmc")) {
|
||||
parts.erase(std::remove(parts.begin(), parts.end(), "USP"), parts.end());
|
||||
} else if (ti.is_model("dragon")) {
|
||||
tav = { "8.1.0", "OPM8.190605.005", "5749003" };
|
||||
ti.property_set("ro.product.name", "ryu");
|
||||
|
||||
if (ti.recovery_context()) {
|
||||
std::map<std::string,std::string> dragon_parts;
|
||||
dragon_parts.emplace("KERN-A", "LNX");
|
||||
dragon_parts.emplace("recovery", "SOS");
|
||||
dragon_parts.emplace("VNR", "vendor");
|
||||
ti.recovery_links(dragon_parts);
|
||||
|
||||
parts.erase(std::remove(parts.begin(), parts.end(), "LNX"), parts.end());
|
||||
parts.erase(std::remove(parts.begin(), parts.end(), "SOS"), parts.end());
|
||||
parts.erase(std::remove(parts.begin(), parts.end(), "USP"), parts.end());
|
||||
parts.erase(std::remove(parts.begin(), parts.end(), "vendor"), parts.end());
|
||||
} else if (ti.vendor_context()) {
|
||||
ti.property_set("ro.product.vendor.name", "ryu");
|
||||
}
|
||||
}
|
||||
|
||||
ti.set_properties();
|
||||
|
||||
@@ -21,6 +21,13 @@ LOCAL_SRC_FILES := fstab.darcy
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.dragon
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.dragon
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.foster
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
@@ -120,6 +127,14 @@ LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.dragon.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.dragon.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.foster_e.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
@@ -231,6 +246,13 @@ LOCAL_SRC_FILES := init.recovery.darcy.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.dragon.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.foster.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.foster_e.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
@@ -353,6 +375,13 @@ LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.darcy.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.dragon.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.abca.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.foster_e.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
|
||||
# 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
|
||||
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/APP / ext4 ro,noatime wait
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/KERN-A /boot emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/MSC /misc emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MD1,quota,reservedsize=128M
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/MD1 /metadata emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/recovery /recovery emmc defaults defaults
|
||||
/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata
|
||||
/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly
|
||||
/dev/block/zram0 none swap defaults zramsize=536870912
|
||||
@@ -0,0 +1,21 @@
|
||||
# Copyright (C) 2020 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.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.loki_e_common.rc
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.dragon
|
||||
swapon_all /vendor/etc/fstab.dragon
|
||||
Reference in new issue
Block a user