Skip to content

Commit fa1cacc

Browse files
committed
feat: add ANT_LICENSE_KEY handling for SoftDevice S340
1 parent 6a9a6a3 commit fa1cacc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,13 @@ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
259259
target_compile_definitions(bootloader PUBLIC DFU_APP_DATA_RESERVED=${DFU_APP_DATA_RESERVED})
260260
endif ()
261261

262+
#----------------------------------
263+
# ANT_LICENSE_KEY handling
264+
#----------------------------------
265+
if (DEFINED ANT_LICENSE_KEY)
266+
target_compile_definitions(bootloader PUBLIC ANT_LICENSE_KEY=${ANT_LICENSE_KEY})
267+
endif
268+
262269
#----------------------------------
263270
# Get UF2 version from git
264271
#----------------------------------

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ endif
130130
SD_NAME_UPPER = $(subst s,S,${SD_NAME})
131131
CFLAGS += -D$(SD_NAME_UPPER)
132132

133+
#----------------------------------
134+
# ANT_LICENSE_KEY handling
135+
#----------------------------------
136+
ifdef ANT_LICENSE_KEY
137+
CFLAGS += -DANT_LICENSE_KEY=\"$(ANT_LICENSE_KEY)\"
138+
endif
139+
133140
#------------------------------------------------------------------------------
134141
# SOURCE FILES
135142
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)