littlefs-do binary to work with spi raw file (#52)

Add helper to modify spi raw file, to make experimenting with it easier.

```sh
$ ./littlefs-do --help
Usage: ./littlefs-do <command> [options]
Commands:
  -h, --help           show this help message for the selected command and exit
  -v, --verbose        print status messages to the console
  stat                 show information of specified file or directory
  ls                   list available files in 'spiNorFlash.raw' file
  mkdir                create directory
  rmdir                remove directory
  rm                   remove directory or file
  cp                   copy files into or out of flash file
  settings             list settings from 'settings.h'
```

In the process restructure the CMake file for less duplicate
includes/defines for both executables (`infinisim` and `littlefs-do`).

Upload the `littlefs-do` binary built by the CI additionally to the `infinisim` binary.
Use the updated upload-artifact@v3 template to do that.
This commit is contained in:
NeroBurner
2022-08-29 12:05:21 +02:00
committed by GitHub
parent 741db4ea32
commit 9e15182af2
4 changed files with 774 additions and 56 deletions

View File

@@ -64,7 +64,13 @@ jobs:
cmake --build build_lv_sim
- name: Upload simulator executable
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: infinisim
path: build_lv_sim/infinisim
- name: Upload littlefs-do executable
uses: actions/upload-artifact@v3
with:
name: littlefs-do
path: build_lv_sim/littlefs-do