sm8450-common: Allow extracting only firmware images
Change-Id: Icab3f013661304e3a9ec89b0816a8139f6b8e8e5
This commit is contained in:
parent
287048e0e8
commit
bbce01c4e5
1 changed files with 8 additions and 2 deletions
|
@ -25,6 +25,7 @@ source "${HELPER}"
|
||||||
CLEAN_VENDOR=true
|
CLEAN_VENDOR=true
|
||||||
|
|
||||||
ONLY_COMMON=
|
ONLY_COMMON=
|
||||||
|
ONLY_FIRMWARE=
|
||||||
ONLY_TARGET=
|
ONLY_TARGET=
|
||||||
KANG=
|
KANG=
|
||||||
SECTION=
|
SECTION=
|
||||||
|
@ -34,6 +35,9 @@ while [ "${#}" -gt 0 ]; do
|
||||||
--only-common )
|
--only-common )
|
||||||
ONLY_COMMON=true
|
ONLY_COMMON=true
|
||||||
;;
|
;;
|
||||||
|
--only-firmware )
|
||||||
|
ONLY_FIRMWARE=true
|
||||||
|
;;
|
||||||
--only-target )
|
--only-target )
|
||||||
ONLY_TARGET=true
|
ONLY_TARGET=true
|
||||||
;;
|
;;
|
||||||
|
@ -72,7 +76,7 @@ function blob_fixup() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "${ONLY_TARGET}" ]; then
|
if [ -z "${ONLY_FIRMWARE}" ] && [ -z "${ONLY_TARGET}" ]; then
|
||||||
# Initialize the helper for common device
|
# Initialize the helper for common device
|
||||||
setup_vendor "${DEVICE_COMMON}" "${VENDOR_COMMON:-$VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"
|
setup_vendor "${DEVICE_COMMON}" "${VENDOR_COMMON:-$VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"
|
||||||
|
|
||||||
|
@ -84,7 +88,9 @@ if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../../${VENDOR}/${DEVICE}/propriet
|
||||||
source "${MY_DIR}/../../${VENDOR}/${DEVICE}/extract-files.sh"
|
source "${MY_DIR}/../../${VENDOR}/${DEVICE}/extract-files.sh"
|
||||||
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
|
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
|
||||||
|
|
||||||
extract "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
|
if [ -z "${ONLY_FIRMWARE}" ]; then
|
||||||
|
extract "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${SECTION}" ] && [ -f "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-firmware.txt" ]; then
|
if [ -z "${SECTION}" ] && [ -f "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-firmware.txt" ]; then
|
||||||
extract_firmware "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-firmware.txt" "${SRC}"
|
extract_firmware "${MY_DIR}/../../${VENDOR}/${DEVICE}/proprietary-firmware.txt" "${SRC}"
|
||||||
|
|
Loading…
Reference in a new issue