refactor: bootloader & cmake cleanup (#5232)

This commit is contained in:
Raphael Coeffic
2024-07-07 21:06:59 +10:00
committed by GitHub
parent 848d7942bf
commit d575242c0f
35 changed files with 483 additions and 547 deletions
+10 -5
View File
@@ -254,6 +254,11 @@ if(SDCARD)
set(FIRMWARE_SRC ${FIRMWARE_SRC})
endif()
if(BLUETOOTH)
add_definitions(-DBLUETOOTH)
set(SRC ${SRC} bluetooth.cpp)
endif()
if(SHUTDOWN_CONFIRMATION)
add_definitions(-DSHUTDOWN_CONFIRMATION)
endif()
@@ -431,11 +436,11 @@ endif()
if(USBJ_EX)
add_definitions(-DUSBJ_EX)
set(SRC
${SRC}
set(SRC ${SRC}
usb_joystick.cpp
)
)
endif()
foreach(FILE ${TARGET_SRC})
set(SRC targets/${TARGET_DIR}/${FILE} ${SRC})
endforeach()
@@ -463,7 +468,6 @@ else()
endif()
if(NATIVE_BUILD)
set(RADIOLIB_NATIVE_SRC ${SRC})
if(SIMU_DISKIO)
set(RADIOLIB_NATIVE_SRC ${RADIOLIB_NATIVE_SRC}
@@ -472,7 +476,8 @@ if(NATIVE_BUILD)
# Pack all radio sources into an object lib
add_library(radiolib_native OBJECT EXCLUDE_FROM_ALL
${RADIOLIB_NATIVE_SRC})
${RADIOLIB_NATIVE_SRC}
)
# Add -DSIMU here PUBLIC, so it can be imported by other targets
# via INTERFACE_COMPILE_OPTIONS