deviceinfo: remove external_disk_install and external_disk, use external_storage instead (#1301)

* deviceinfo: remove external_disk_install and external_disk, use external_storage instead
* Complain when external_disk* is used
This commit is contained in:
Daniele Debernardi 2018-03-07 23:35:02 +01:00 committed by Oliver Smith
parent 915dc8a049
commit 94306b51ee
136 changed files with 207 additions and 269 deletions

View file

@ -66,4 +66,11 @@ def deviceinfo(args, device=None):
" deviceinfo_flash_method. Please adjust your"
" deviceinfo file: " + path)
# Sanity check: "external_disk*" is legacy
if "external_disk" in ret or "external_disk_install" in ret:
raise RuntimeError("Instead of deviceinfo_external_disk and"
" deviceinfo_external_disk_install, please use the"
" new variable deviceinfo_external_storage in your"
" deviceinfo file: " + path)
return ret