]> git.baikalelectronics.ru Git - uboot.git/commit
fastboot: add support for 'getvar platform'
authorEugeniu Rosca <erosca@de.adit-jv.com>
Tue, 9 Apr 2019 19:11:40 +0000 (21:11 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 21 Apr 2019 08:26:52 +0000 (10:26 +0200)
commit75d49ff15a6dc28e84b4a3ddc8d4936f105d72a0
treec315f849af9502cd1dbc656a864229b602a0dfe2
parentb7d28b853a17bfb039bfff0856520ea956c39350
fastboot: add support for 'getvar platform'

Our R-Car3 Android userspace relies on the output of 'fastboot
getvar platform' and U-Boot currently is not able to handle it:

host $> fastboot getvar platform
getvar:platform FAILED (remote: Variable not implemented)
finished. total time: 0.001s

We either have the option of adding 'fastboot.platform' variable
to the default/saved environment as a workaround or add proper
'fastboot getvar platform' support in U-Boot via this patch.
In the latter case, other platforms can benefit from it too.

Note that R-Car3 already exports 'platform' environment variable via
v2019.01 commit 6a052c03f178fc ("ARM: rmobile: Set environment variable
containing CPU type").

Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
drivers/fastboot/fb_getvar.c