- 保存内部 Flash 的程序和启动标记,在编程结束、擦除及复位时将变化页写入本地镜像 - 首次启动从 ELF 初始化内部镜像,后续启动恢复镜像并由 Factory 选择运行版本 - 增加 H723_INTERNAL_FLASH_IMAGE 配置和内部镜像独占锁 - 增加 just clean flash1、flash2 及默认全部清理,分别处理内部和外部 Flash 镜像 - 清理前取得全部目标镜像锁,保留固件、OTA 备份、日志及本地配置 - 更新持久化行为、镜像路径和清理命令说明 - BREAKING CHANGE: 已存在内部镜像时启动程序以镜像为准,更换 ELF 后需执行 just clean flash1 才会重新初始化内部 Flash
39 lines
1.4 KiB
Makefile
39 lines
1.4 KiB
Makefile
set windows-shell := ["powershell.exe", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"]
|
|
|
|
# Show available commands when invoked without a task.
|
|
[default]
|
|
help:
|
|
@just --list
|
|
|
|
# Check network-mode dependencies; add --usb for virtual COM dependencies.
|
|
check *args:
|
|
@powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/bootstrap.ps1 check {{ args }}
|
|
|
|
# Select the ELF firmware used by subsequent runs.
|
|
elf path:
|
|
@powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/bootstrap.ps1 elf '{{ replace(path, "'", "''") }}'
|
|
|
|
# Update machine-dependent paths for the current project directory.
|
|
format:
|
|
@powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/bootstrap.ps1 format
|
|
|
|
# Run over TCP; add --usb for virtual COM, --debug to wait for GDB.
|
|
[script('powershell.exe', '-NoProfile', '-ExecutionPolicy', 'Bypass', '-File')]
|
|
[extension('.ps1')]
|
|
[positional-arguments]
|
|
run *args:
|
|
& './scripts/bootstrap.ps1' run @args
|
|
exit $LASTEXITCODE
|
|
|
|
# Stop this checkout's Renode instance and release its virtual COM port.
|
|
stop:
|
|
@powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/bootstrap.ps1 stop
|
|
|
|
# Clear flash1 (internal), flash2 (external), or both by default; stop Renode first.
|
|
[script('powershell.exe', '-NoProfile', '-ExecutionPolicy', 'Bypass', '-File')]
|
|
[extension('.ps1')]
|
|
[positional-arguments]
|
|
clean *args:
|
|
& './scripts/bootstrap.ps1' clean @args
|
|
exit $LASTEXITCODE
|