Z_GENERIC_SECTION(.ext_apis) \
const uint8_t _CONCAT(name, _ext_api_counter) = 0xFF; \
BUILD_ASSERT((sizeof(type) % 4) == 0, \
"Size of EXT_API " #type " is not word-aligned"); \
struct __packed _CONCAT(name, _t) \
{ \
type ext_api; \
}; \
Z_GENERIC_SECTION(.firmware_info.1) __attribute__((used)) \
const struct _CONCAT(name, _t) name = { \
.header = {\
.magic = {EXT_API_MAGIC}, \
.ext_api_id = CONFIG_ ## ext_api_name ## _EXT_API_ID, \
.ext_api_flags = CONFIG_ ## ext_api_name ## _EXT_API_FLAGS, \
.ext_api_version = CONFIG_ ## ext_api_name ## _EXT_API_VER, \
.ext_api_len = sizeof(struct __packed _CONCAT(name, _t)), \
}, \
.ext_api
Definition fw_info_bare.h:42