Build epoch in info, flash-status command, cmake version embedding

This commit is contained in:
Ian Gulliver
2026-04-12 09:02:31 +09:00
parent 21c7900444
commit a41ee70a3c
9 changed files with 85 additions and 5 deletions

View File

@@ -57,8 +57,9 @@ struct ResponseInfo {
std::array<uint8_t, 4> ip;
std::string firmware_name;
boot_reason boot;
auto as_tuple() const { return std::tie(board_id, mac, ip, firmware_name, boot); }
auto as_tuple() { return std::tie(board_id, mac, ip, firmware_name, boot); }
uint32_t build_epoch;
auto as_tuple() const { return std::tie(board_id, mac, ip, firmware_name, boot, build_epoch); }
auto as_tuple() { return std::tie(board_id, mac, ip, firmware_name, boot, build_epoch); }
};
struct RequestLog {
@@ -121,6 +122,20 @@ struct ResponseReboot {
auto as_tuple() { return std::tie(); }
};
struct RequestFlashStatus {
static constexpr int8_t ext_id = 14;
auto as_tuple() const { return std::tie(); }
auto as_tuple() { return std::tie(); }
};
struct ResponseFlashStatus {
static constexpr int8_t ext_id = 15;
int8_t boot_partition;
uint8_t boot_type;
auto as_tuple() const { return std::tie(boot_partition, boot_type); }
auto as_tuple() { return std::tie(boot_partition, boot_type); }
};
struct RequestListTests {
static constexpr int8_t ext_id = 125;
auto as_tuple() const { return std::tie(); }