Hint

Refer to QMK’s documentation for details on how to use community modules

build_id

Read GCC-provided build id.

This identifier is stored on a special section, so you need to add something like this to your linker script:

SECTIONS {
    .build_id : {
        __gnu_build_id__ = .;
        *(.note.gnu.build-id)
    } > FLASH
}
struct u128
[source]

MD5 id of a build is 128 bits long.

Since there is no such type in C, we have this struct.

uint8_t bytes[128 / 8]
[source]

Bytes composing the 128 bits;

int get_build_id(u128 *id)
[source]

Get the build id for the running program.