rusefi-1/firmware/console/binary/signature.cpp

38 lines
891 B
C++

/**
* @file signature.cpp
* @brief A special file which is recompiled every time the .ini file changes.
*
* This is a minimalistic fast-compiling cpp-file. Any additional massive includes are not welcomed.
*
* @date Jul 2, 2020
* @author andreika (c) 2020
*/
#include "pch.h"
#include "signature.h"
// We take these precautions to avoid redefinition of signature in generated .h files
#undef SIGNATURE_HASH
#undef TS_SIGNATURE
#ifndef SHORT_BOARD_NAME
#define SHORT_BOARD_NAME all
#endif /* SHORT_BOARD_NAME */
#pragma message ("SHORT_BOARD_NAME: " QUOTE(SHORT_BOARD_NAME))
#define SIGNATURE_NAME signature_
#define SIGNATURE_EXT .h
#if !EFI_UNIT_TEST
#define SIGNATURE_H_FILENAME QUOTE(SIGNATURE_NAME SHORT_BOARD_NAME SIGNATURE_EXT)
#include SIGNATURE_H_FILENAME
#pragma message ("TS_SIGNATURE: " TS_SIGNATURE)
const char *getTsSignature() {
return TS_SIGNATURE;
}
#endif