update_gpu_drivers: Rename ${PV}-rX to ${PV}_pX

Even though this has not been a problem for graphics binary
blobs so far, -rX should technically not be used for package name,
and only used to track ebuild versions.

We rename ${PV}-rX to ${PV}_pX to make it easy to match source
and binary versions, e.g. mali-drivers-bifrost-13.0-r6 will be
packaged as mali-drivers-bifrost-bin-13.0_p6 .

We also avoid checking out m/master on the overlays directory,
instead trusting the developer to use a clean tree (which needs
to happen before the build anyway), and clarify one print-out.

BRANCH=none
BUG=none
TEST=../platform/dev/contrib/update_gpu_drivers.sh \
        --package mali-drivers-bifrost

Change-Id: I3c3e2ba2db10590d0fc93daa0a6f8975ee7458ac
Reviewed-on: https://chromium-review.googlesource.com/1184127
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
1 file changed