ARM-software / sdm-api

Secure Debug Manager API
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Automation support for user input #6

Closed flit closed 2 years ago

flit commented 2 years ago

There must be a way for scripts and other automated tools to supply responses to the user input requested via, for example, the forms API in #4. Displaying the form UI and waiting for a user to interactively respond is not acceptable.

flit commented 2 years ago

The updated change for #4 adds identifier strings for both forms and elements. The identifiers are required to be valid C identifiers.

As an example, this should make it possible to encode predetermined form input in a YAML file such as this:

certificate_file_form:
  path: /Users/test/Documents/my_debug_credential.cert

# only request nonsecure debug
permissions_request_form:
  DBGEN: true
  SPIDEN: false
flit commented 2 years ago

Resolved via #4.