EHLS.Flash (Elixir HLS v0.1.0)

Copy Markdown View Source

The record of what a board's flash holds: for each part (:vm, :lib, ...) the hash of the file last written there by mix ehls.flash or mix ehls.run. A board is told apart by its target and its port (the machine's uart_port, if the target has one), so one record serves every application on the machine: an AtomVM written for another application's SoC is seen as not matching.

Kept in the user's cache (~/.cache/ehls/flash.json; another directory with EHLS_CACHE_DIR).

Summary

Functions

Forgets what the board holds (the next run writes every part it needs).

The parts among parts whose file differs from what the record says the board holds.

Writes the parts with the target and records them.

Functions

forget(project)

Forgets what the board holds (the next run writes every part it needs).

stale(project, parts)

The parts among parts whose file differs from what the record says the board holds.

write!(project, parts, opts \\ [])

Writes the parts with the target and records them.