Skip to content

Commit

Permalink
chore: Ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vrockz747 committed Dec 13, 2024
1 parent ec124e6 commit a1c8c0a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
url = ../nanopb
[submodule "vendor/mini-gmp"]
path = vendor/mini-gmp
url = https://github.com/Cypherock/mini-gmp
url = ../mini-gmp
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ include(utilities/cmake/version.cmake)
file(GLOB_RECURSE PROTO_SRCS "generated/proto/*.*")
list(APPEND PROTO_SRCS "vendor/nanopb/pb_common.c" "vendor/nanopb/pb_decode.c" "vendor/nanopb/pb_encode.c" "vendor/nanopb/pb_common.h" "vendor/nanopb/pb_decode.h" "vendor/nanopb/pb_encode.h" "vendor/nanopb/pb.h")

list (APPEND MINI_GMP_SRCS "vendor/mini-gmp/mini-gmp-helpers.c" "vendor/mini-gmp/mini-gmp.c")

OPTION(DEV_SWITCH "Additional features/logs to aid developers" OFF)
OPTION(UNIT_TESTS_SWITCH "Compile build for main firmware or unit tests" OFF)

Expand All @@ -49,7 +51,7 @@ else()
endif()

# Include nanopb source headers
target_include_directories( ${EXECUTABLE} PRIVATE vendor/nanopb generated/proto )
target_include_directories( ${EXECUTABLE} PRIVATE vendor/nanopb generated/proto vendor/mini-gmp)

# Enable support for dynamically allocated fields in nanopb
# Ref: vendor/nanopb/pb.h
Expand Down
4 changes: 1 addition & 3 deletions utilities/cmake/firmware/firmware.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ELSE()
file(GLOB_RECURSE SOURCES "stm32-hal/*.*" "common/*.*" "src/*.*" "apps/*.*")
ENDIF(UNIT_TESTS_SWITCH)

add_executable(${EXECUTABLE} ${SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/version.c vendor/mini-gmp/mini-gmp-helpers.c vendor/mini-gmp/mini-gmp.c ${PROTO_SRCS} ${PROTO_HDRS} ${INCLUDES} ${LINKER_SCRIPT} ${STARTUP_FILE})
add_executable(${EXECUTABLE} ${SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/version.c ${MINI_GMP_SRCS} ${PROTO_SRCS} ${PROTO_HDRS} ${INCLUDES} ${LINKER_SCRIPT} ${STARTUP_FILE})
target_compile_definitions(${EXECUTABLE} PRIVATE -DUSE_HAL_DRIVER -DSTM32L486xx )
add_compile_definitions(USE_SIMULATOR=0 USE_BIP32_CACHE=0 USE_BIP39_CACHE=0 STM32L4 USBD_SOF_DISABLED ENABLE_HID_WEBUSB_COMM=1)
IF (DEV_SWITCH)
Expand Down Expand Up @@ -133,8 +133,6 @@ target_include_directories(${EXECUTABLE} PRIVATE
common/lvgl/src/lv_objx
common/lvgl/src/lv_themes

vendor/mini-gmp

# Device
stm32-hal
stm32-hal/BSP
Expand Down
4 changes: 1 addition & 3 deletions utilities/cmake/simulator/simulator.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set(EXECUTABLE ${PROJECT_NAME})
find_package(SDL2 REQUIRED SDL2)
include_directories(${SDL2_INCLUDE_DIRS})

add_executable(${EXECUTABLE} ${SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/version.c vendor/mini-gmp/mini-gmp-helpers.c vendor/mini-gmp/mini-gmp.c ${PROTO_SRCS} ${PROTO_HDRS} ${INCLUDES})
add_executable(${EXECUTABLE} ${SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/version.c ${MINI_GMP_SRCS} ${PROTO_SRCS} ${PROTO_HDRS} ${INCLUDES})

if ("${FIRMWARE_TYPE}" STREQUAL "Main")
add_compile_definitions(X1WALLET_INITIAL=0 X1WALLET_MAIN=1)
Expand Down Expand Up @@ -129,8 +129,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE
common/lvgl/src/lv_objx
common/lvgl/src/lv_themes

vendor/mini-gmp

# Simulator
simulator
simulator/BSP
Expand Down

0 comments on commit a1c8c0a

Please sign in to comment.