klte-common: releasetools: Move variant ident logic to hook
* Reverse dependencies are bad, ummkay? Change-Id: I4a1e576cecec84b4997582208ca218bb279fe937
This commit is contained in:
parent
d6b31929f5
commit
167e45f1c0
1 changed files with 9 additions and 4 deletions
|
@ -28,14 +28,19 @@ better_copy()
|
|||
fi
|
||||
}
|
||||
|
||||
VAR_SELECT_HOOK=/tmp/install/bin/variant_blobs_hook.sh
|
||||
|
||||
# Detect variant and copy its specific-blobs
|
||||
BOOTLOADER=`getprop ro.bootloader`
|
||||
|
||||
case $BOOTLOADER in
|
||||
G900V*) VARIANT="vzw" ;;
|
||||
*) VARIANT="gsm" ;;
|
||||
esac
|
||||
if [ -f $VAR_SELECT_HOOK ] ; then
|
||||
. $VAR_SELECT_HOOK
|
||||
else
|
||||
echo "Could not find variant selector hook: $VAR_SELECT_HOOK"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Device with bootloader $BOOTLOADER requires $VARIANT blobs"
|
||||
|
||||
BLOBBASE=/system/blobs/$VARIANT
|
||||
|
||||
|
|
Loading…
Reference in a new issue