mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Added flag for compile for CI or production.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
2ecfff0ebb
commit
e27c8d4ff6
2 changed files with 11 additions and 0 deletions
|
|
@ -32,6 +32,13 @@ else()
|
|||
pico_sdk_init()
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED __FOR_CI)
|
||||
set(__FOR_CI 0)
|
||||
endif()
|
||||
if (__FOR_CI)
|
||||
add_definitions(-D__FOR_CI)
|
||||
endif()
|
||||
|
||||
add_executable(pico_hsm)
|
||||
|
||||
set(SOURCES ${SOURCES}
|
||||
|
|
|
|||
|
|
@ -289,7 +289,11 @@ bool wait_button_pressed() {
|
|||
}
|
||||
|
||||
int parse_token_info(const file_t *f, int mode) {
|
||||
#ifdef __FOR_CI
|
||||
char *label = "SmartCard-HSM";
|
||||
#else
|
||||
char *label = "Pico-HSM";
|
||||
#endif
|
||||
char *manu = "Pol Henarejos";
|
||||
if (mode == 1) {
|
||||
uint8_t *p = res_APDU;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue