hiphi: Rebrand to TWRP
Co-authored-by: Carlo Dee <109793453+carlodeeCrypton@users.noreply.github.com> Co-authored-by: sekaiacg <sekaiacg@gmail.com> Co-authored-by: TheMalachite <eliasgheeraert@gmail.com> Signed-off-by: 7Soldier <reg.fm4@gmail.com>
This commit is contained in:
parent
bfa2b50714
commit
575701c2d4
5 changed files with 9 additions and 116 deletions
|
@ -6,9 +6,9 @@
|
|||
#
|
||||
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/omni_hiphi.mk
|
||||
$(LOCAL_DIR)/twrp_hiphi.mk
|
||||
|
||||
COMMON_LUNCH_CHOICES := \
|
||||
omni_hiphi-user \
|
||||
omni_hiphi-userdebug \
|
||||
omni_hiphi-eng
|
||||
twrp_hiphi-user \
|
||||
twrp_hiphi-userdebug \
|
||||
twrp_hiphi-eng
|
||||
|
|
|
@ -1,61 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2016 The CyanogenMod Project
|
||||
# Copyright (C) 2017-2020 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
DEVICE=hiphi
|
||||
VENDOR=motorola
|
||||
|
||||
# Load extract_utils and do some sanity checks
|
||||
MY_DIR="${BASH_SOURCE%/*}"
|
||||
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
|
||||
|
||||
ANDROID_ROOT="${MY_DIR}/../../.."
|
||||
|
||||
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
|
||||
if [ ! -f "${HELPER}" ]; then
|
||||
echo "Unable to find helper script at ${HELPER}"
|
||||
exit 1
|
||||
fi
|
||||
source "${HELPER}"
|
||||
|
||||
# Default to sanitizing the vendor folder before extraction
|
||||
CLEAN_VENDOR=true
|
||||
|
||||
KANG=
|
||||
SECTION=
|
||||
|
||||
while [ "${#}" -gt 0 ]; do
|
||||
case "${1}" in
|
||||
-n | --no-cleanup )
|
||||
CLEAN_VENDOR=false
|
||||
;;
|
||||
-k | --kang )
|
||||
KANG="--kang"
|
||||
;;
|
||||
-s | --section )
|
||||
SECTION="${2}"; shift
|
||||
CLEAN_VENDOR=false
|
||||
;;
|
||||
* )
|
||||
SRC="${1}"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [ -z "${SRC}" ]; then
|
||||
SRC="adb"
|
||||
fi
|
||||
|
||||
# Initialize the helper
|
||||
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
|
||||
|
||||
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
|
||||
|
||||
"${MY_DIR}/setup-makefiles.sh"
|
|
@ -1,36 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2016 The CyanogenMod Project
|
||||
# Copyright (C) 2017-2020 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
DEVICE=hiphi
|
||||
VENDOR=motorola
|
||||
|
||||
# Load extract_utils and do some sanity checks
|
||||
MY_DIR="${BASH_SOURCE%/*}"
|
||||
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
|
||||
|
||||
ANDROID_ROOT="${MY_DIR}/../../.."
|
||||
|
||||
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
|
||||
if [ ! -f "${HELPER}" ]; then
|
||||
echo "Unable to find helper script at ${HELPER}"
|
||||
exit 1
|
||||
fi
|
||||
source "${HELPER}"
|
||||
|
||||
# Initialize the helper
|
||||
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
|
||||
|
||||
# Warning headers and guards
|
||||
write_headers
|
||||
|
||||
write_makefiles "${MY_DIR}/proprietary-files.txt" true
|
||||
|
||||
# Finish
|
||||
write_footers
|
|
@ -6,17 +6,17 @@
|
|||
#
|
||||
|
||||
# Inherit from those products. Most specific first.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk)
|
||||
|
||||
# Inherit some common Omni stuff.
|
||||
$(call inherit-product, vendor/omni/config/common.mk)
|
||||
# Inherit some common TWRP stuff.
|
||||
$(call inherit-product, vendor/twrp/config/common.mk)
|
||||
|
||||
# Inherit from hiphi device
|
||||
$(call inherit-product, device/motorola/hiphi/device.mk)
|
||||
|
||||
PRODUCT_DEVICE := hiphi
|
||||
PRODUCT_NAME := omni_hiphi
|
||||
PRODUCT_NAME := twrp_hiphi
|
||||
PRODUCT_BRAND := motorola
|
||||
PRODUCT_MODEL := motorola edge 30 pro
|
||||
PRODUCT_MANUFACTURER := motorola
|
|
@ -1,10 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2023 The Android Open Source Project
|
||||
# Copyright (C) 2023 SebaUbuntu's TWRP device tree generator
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
add_lunch_combo omni_hiphi-user
|
||||
add_lunch_combo omni_hiphi-userdebug
|
||||
add_lunch_combo omni_hiphi-eng
|
Loading…
Reference in a new issue