Added flag for compile for CI or production.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -32,6 +32,13 @@ else()
|
|||||||
pico_sdk_init()
|
pico_sdk_init()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED __FOR_CI)
|
||||||
|
set(__FOR_CI 0)
|
||||||
|
endif()
|
||||||
|
if (__FOR_CI)
|
||||||
|
add_definitions(-D__FOR_CI)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(pico_hsm)
|
add_executable(pico_hsm)
|
||||||
|
|
||||||
set(SOURCES ${SOURCES}
|
set(SOURCES ${SOURCES}
|
||||||
|
|||||||
@@ -289,7 +289,11 @@ bool wait_button_pressed() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int parse_token_info(const file_t *f, int mode) {
|
int parse_token_info(const file_t *f, int mode) {
|
||||||
|
#ifdef __FOR_CI
|
||||||
|
char *label = "SmartCard-HSM";
|
||||||
|
#else
|
||||||
char *label = "Pico-HSM";
|
char *label = "Pico-HSM";
|
||||||
|
#endif
|
||||||
char *manu = "Pol Henarejos";
|
char *manu = "Pol Henarejos";
|
||||||
if (mode == 1) {
|
if (mode == 1) {
|
||||||
uint8_t *p = res_APDU;
|
uint8_t *p = res_APDU;
|
||||||
|
|||||||
Reference in New Issue
Block a user