Files
system76-embedded-controller/src/common/version.c
Tim Crawford d3894392d5 Replace clang-format with uncrustify
LLVM/clang is not used for any compilation due to it not supporting the
8-bit architectures we use (MCS-51, AVR). This means we are effectively
installing 250+ MiB of dependencies for a C formatting tool.

Replace it with uncrustify, which uses only ~600 KiB of space and has
more granular control of formatting (800+ options).

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-07-03 15:58:28 -06:00

25 lines
417 B
C

// SPDX-License-Identifier: GPL-3.0-only
#include <common/macro.h>
// Prevent failures to compile on AVR
#ifndef __SDCC
#define __code
#endif
static const char __code BOARD[] =
"76EC_BOARD="
xstr(__BOARD__);
static const char __code VERSION[] =
"76EC_VERSION="
xstr(__FIRMWARE_VERSION__);
const char *board(void) {
return &BOARD[11];
}
const char *version(void) {
return &VERSION[13];
}