Skip to content

Commit 2419f65

Browse files
committed
update Readme for cmake build system, remove all makefile
1 parent 0805c2e commit 2419f65

File tree

18 files changed

+94
-394
lines changed

18 files changed

+94
-394
lines changed

ports/family_support.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,13 @@ endfunction()
335335
# included with msdk or compiled from release branch of https://github.com/analogdevicesinc/openocd
336336
function(family_flash_openocd_adi TARGET)
337337
if (DEFINED $ENV{MAXIM_PATH})
338-
# use openocd from msdk
338+
# use openocd from msdk with MAXIM_PATH environment variable
339339
set(OPENOCD ENV{MAXIM_PATH}/Tools/OpenOCD/openocd)
340340
set(OPENOCD_OPTION2 "-s $ENV{MAXIM_PATH}/Tools/OpenOCD/scripts")
341+
elseif (DEFINED MAXIM_PATH)
342+
# use openocd from msdk with MAXIM_PATH cmake variable
343+
set(OPENOCD ${MAXIM_PATH}/Tools/OpenOCD/openocd)
344+
set(OPENOCD_OPTION2 "-s $ENV{MAXIM_PATH}/Tools/OpenOCD/scripts")
341345
else()
342346
# compiled from source
343347
if (NOT DEFINED OPENOCD_ADI_PATH)

ports/maxim/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

ports/maxim/Makefile

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)