diff --git a/AndroidProducts.mk b/AndroidProducts.mk index cf9020c..606c4e1 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -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 diff --git a/extract-files.sh b/extract-files.sh deleted file mode 100755 index 6596178..0000000 --- a/extract-files.sh +++ /dev/null @@ -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" diff --git a/setup-makefiles.sh b/setup-makefiles.sh deleted file mode 100755 index 99811d1..0000000 --- a/setup-makefiles.sh +++ /dev/null @@ -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 diff --git a/omni_hiphi.mk b/twrp_hiphi.mk similarity index 72% rename from omni_hiphi.mk rename to twrp_hiphi.mk index 040cb98..ea3034d 100644 --- a/omni_hiphi.mk +++ b/twrp_hiphi.mk @@ -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 diff --git a/vendorsetup.sh b/vendorsetup.sh deleted file mode 100644 index c335c6a..0000000 --- a/vendorsetup.sh +++ /dev/null @@ -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