raphael: Move to the new libinit implementation
Change-Id: I4207a94ff62f0c515c91e186f0ace348c6db7b1d
This commit is contained in:
@@ -15,9 +15,6 @@ TARGET_OTA_ASSERT_DEVICE := raphael,raphaelin
|
|||||||
# Display
|
# Display
|
||||||
TARGET_SCREEN_DENSITY := 440
|
TARGET_SCREEN_DENSITY := 440
|
||||||
|
|
||||||
# Init
|
|
||||||
TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):init_xiaomi_raphael
|
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
TARGET_KERNEL_CONFIG += vendor/xiaomi/raphael.config
|
TARGET_KERNEL_CONFIG += vendor/xiaomi/raphael.config
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ PRODUCT_PACKAGES += \
|
|||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
vendor.xiaomi.hardware.motor@1.0.vendor
|
vendor.xiaomi.hardware.motor@1.0.vendor
|
||||||
|
|
||||||
|
# Init
|
||||||
|
$(call soong_config_set,xiaomi_msmnile,variant_lib,//$(LOCAL_PATH):libvariant_xiaomi_raphael)
|
||||||
|
|
||||||
# Overlays
|
# Overlays
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
ApertureOverlayDevice \
|
ApertureOverlayDevice \
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
//
|
//
|
||||||
// Copyright (C) 2021-2022 The LineageOS Project
|
// Copyright (C) 2021-2025 The LineageOS Project
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
//
|
//
|
||||||
|
|
||||||
cc_library_static {
|
cc_library_static {
|
||||||
name: "init_xiaomi_raphael",
|
name: "libvariant_xiaomi_raphael",
|
||||||
srcs: ["init_xiaomi_raphael.cpp"],
|
srcs: ["libvariant_xiaomi_raphael.cpp"],
|
||||||
whole_static_libs: ["//device/xiaomi/sm8150-common:libinit_xiaomi_msmnile"],
|
header_libs: ["//device/xiaomi/sm8150-common:libvariant_headers"],
|
||||||
include_dirs: ["system/core/init"],
|
|
||||||
recovery_available: true,
|
recovery_available: true,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2021-2022 The LineageOS Project
|
* Copyright (C) 2021-2025 The LineageOS Project
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libinit_dalvik_heap.h>
|
#include <libvariant.h>
|
||||||
#include <libinit_variant.h>
|
|
||||||
|
|
||||||
#include "vendor_init.h"
|
|
||||||
|
|
||||||
#define FINGERPRINT "Xiaomi/raphael/raphael:11/RKQ1.200826.002/V12.5.2.0.RFKMIXM:user/release-keys"
|
#define FINGERPRINT "Xiaomi/raphael/raphael:11/RKQ1.200826.002/V12.5.2.0.RFKMIXM:user/release-keys"
|
||||||
|
|
||||||
static const variant_info_t raphael_global_info = {
|
static const variant_info raphael_global_info = {
|
||||||
.hwc_value = "GLOBAL",
|
.hwc_value = "GLOBAL",
|
||||||
.sku_value = "",
|
.sku_value = "",
|
||||||
|
|
||||||
@@ -24,7 +21,7 @@ static const variant_info_t raphael_global_info = {
|
|||||||
.nfc = true,
|
.nfc = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const variant_info_t raphaelin_info = {
|
static const variant_info raphaelin_info = {
|
||||||
.hwc_value = "INDIA",
|
.hwc_value = "INDIA",
|
||||||
.sku_value = "",
|
.sku_value = "",
|
||||||
|
|
||||||
@@ -37,7 +34,7 @@ static const variant_info_t raphaelin_info = {
|
|||||||
.nfc = false,
|
.nfc = false,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const variant_info_t raphael_info = {
|
static const variant_info raphael_info = {
|
||||||
.hwc_value = "",
|
.hwc_value = "",
|
||||||
.sku_value = "",
|
.sku_value = "",
|
||||||
|
|
||||||
@@ -50,13 +47,8 @@ static const variant_info_t raphael_info = {
|
|||||||
.nfc = true,
|
.nfc = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const std::vector<variant_info_t> variants = {
|
const std::vector<variant_info> variants = {
|
||||||
raphael_global_info,
|
raphael_global_info,
|
||||||
raphaelin_info,
|
raphaelin_info,
|
||||||
raphael_info,
|
raphael_info,
|
||||||
};
|
};
|
||||||
|
|
||||||
void vendor_load_properties() {
|
|
||||||
set_dalvik_heap();
|
|
||||||
search_variant(variants);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user