minigbm: drv: Fix MINIGBM_DEBUG usage on Android

MINIGBM_DEBUG usage in drv_get_os_option() is broken on
Cuttlefish at the moment and we run into following selinux
denial.

W libc    : Access denied finding property "MINIGBM_DEBUG".
I auditd  : type=1400 audit(0.0:39): avc:  denied  { read } \
for  comm="android.hardwar" name="u:object_r:default_prop:s0" \
dev="tmpfs" ino=184 scontext=u:r:hal_graphics_allocator_default:s0 \
tcontext=u:object_r:default_prop:s0 tclass=file permissive=0

On Android builds, MINIGBM_DEBUG can translate to a vendor
property if not used as an env variable. To fix that property
usage on Android, we start with using the proper (lowercase)
Android property nomenclature. This will sadly break the usage
of MINIGBM_DEBUG env variable on Android builds and will
force users to use vendor.minigbm.debug property instead.

Change-Id: I05a6213d2460cf5f7d20d3d04a014965ca03bebe
Signed-off-by: Amit Pundir <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4630128
Reviewed-by: Dominik Behr <[email protected]>
Reviewed-by: Yiwei Zhang <[email protected]>
Reviewed-by: Jason Macnak <[email protected]>
Commit-Queue: Yiwei Zhang <[email protected]>
1 file changed