So that they actually extract the common blobs too... Change-Id: If2acdaec839dac94c40ef14ca4465d3370cec3d5urubino
parent
820e9c073a
commit
5223a075eb
@ -1,63 +1,21 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
# |
# |
||||||
# Copyright (C) 2018-2020 The LineageOS Project |
# Copyright (C) 2016 The CyanogenMod Project |
||||||
|
# Copyright (C) 2017-2023 The LineageOS Project |
||||||
# |
# |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
# |
# |
||||||
|
|
||||||
set -e |
# If we're being sourced by the common script that we called, |
||||||
|
# stop right here. No need to go down the rabbit hole. |
||||||
DEVICE_COMMON=a52q |
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then |
||||||
VENDOR=samsung |
return |
||||||
|
|
||||||
# Load extractutils 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 |
fi |
||||||
|
|
||||||
# Initialize the helper |
set -e |
||||||
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}" |
|
||||||
|
|
||||||
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}" |
|
||||||
|
|
||||||
# Fix proprietary blobs |
export DEVICE=a52q |
||||||
BLOB_ROOT="$ANDROID_ROOT"/vendor/"$VENDOR"/"$DEVICE_COMMON"/proprietary |
export DEVICE_COMMON=sm7125-common |
||||||
|
export VENDOR=samsung |
||||||
|
|
||||||
"${MY_DIR}/setup-makefiles.sh" |
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" |
||||||
|
@ -1,44 +1,21 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
# |
# |
||||||
# Copyright (C) 2017-2021 The LineageOS Project |
# Copyright (C) 2016 The CyanogenMod Project |
||||||
|
# Copyright (C) 2017-2023 The LineageOS Project |
||||||
# |
# |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
# |
# |
||||||
|
|
||||||
set -e |
# If we're being sourced by the common script that we called, |
||||||
|
# stop right here. No need to go down the rabbit hole. |
||||||
DEVICE_COMMON=a52q |
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then |
||||||
VENDOR=samsung |
return |
||||||
|
|
||||||
# Load extractutils 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 |
fi |
||||||
source "${HELPER}" |
|
||||||
|
|
||||||
# Initialize the helper |
set -e |
||||||
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true |
|
||||||
|
|
||||||
# Warning headers and guards |
|
||||||
write_headers "a52q" |
|
||||||
|
|
||||||
write_makefiles "${MY_DIR}/proprietary-files.txt" true |
|
||||||
|
|
||||||
################################################################################################### |
|
||||||
# CUSTOM PART START # |
|
||||||
################################################################################################### |
|
||||||
|
|
||||||
OUTDIR=vendor/$VENDOR/$DEVICE_COMMON |
export DEVICE=a52q |
||||||
|
export DEVICE_COMMON=sm7125-common |
||||||
|
export VENDOR=samsung |
||||||
|
|
||||||
################################################################################################### |
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" |
||||||
# CUSTOM PART END # |
|
||||||
################################################################################################### |
|
||||||
# Done |
|
||||||
write_footers |
|
||||||
|
Loading…
Reference in new issue