only use .flag section for hw builds
This commit is contained in:
parent
8b6148ac90
commit
aeafd09007
@ -1,13 +1,17 @@
|
|||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
|
const version_t firmware_version
|
||||||
const version_t firmware_version __attribute__ ((section (".flag"))) __attribute__ ((__used__)) = {
|
#ifdef SOLO
|
||||||
|
__attribute__ ((section (".flag"))) __attribute__ ((__used__))
|
||||||
|
#endif
|
||||||
|
= {
|
||||||
.major = SOLO_VERSION_MAJ,
|
.major = SOLO_VERSION_MAJ,
|
||||||
.minor = SOLO_VERSION_MIN,
|
.minor = SOLO_VERSION_MIN,
|
||||||
.patch = SOLO_VERSION_PATCH,
|
.patch = SOLO_VERSION_PATCH,
|
||||||
.reserved = 0
|
.reserved = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// from tinycbor, for a quick static_assert
|
// from tinycbor, for a quick static_assert
|
||||||
#include <compilersupport_p.h>
|
#include <compilersupport_p.h>
|
||||||
cbor_static_assert(sizeof(version_t) == 4);
|
cbor_static_assert(sizeof(version_t) == 4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user