rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
signature.cpp
Go to the documentation of this file.
1/**
2 * @file signature.cpp
3 * @brief A special file which is recompiled every time the .ini file changes.
4 *
5 * This is a minimalistic fast-compiling cpp-file. Any additional massive includes are not welcomed.
6 *
7 * @date Jul 2, 2020
8 * @author andreika (c) 2020
9 */
10
11#include "pch.h"
12
13#include "signature.h"
14
15// We take these precautions to avoid redefinition of signature in generated .h files
16// todo: do not code generate SIGNATURE_HASH and TS_SIGNATURE so that we do not have to hack here
17#undef SIGNATURE_HASH
18#undef TS_SIGNATURE
19
20#pragma message ("SHORT_BOARD_NAME: " QUOTE(SHORT_BOARD_NAME))
21
22#define SIGNATURE_NAME signature_
23#define SIGNATURE_EXT .h
24
25#if !EFI_UNIT_TEST
26#define SIGNATURE_H_FILENAME QUOTE(SIGNATURE_NAME SHORT_BOARD_NAME SIGNATURE_EXT)
27#include SIGNATURE_H_FILENAME
28
29#pragma message ("TS_SIGNATURE: " TS_SIGNATURE)
30
31const char *getTsSignature() {
32 return TS_SIGNATURE;
33}
34#endif
const char * getTsSignature()
Definition signature.cpp:31
A special file which is recompiled every time the .ini file changes.