Skip to content

Commit

Permalink
Update installer package for v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Jun 29, 2023
1 parent 46e5f85 commit b70c269
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 69 deletions.
19 changes: 0 additions & 19 deletions MaximSDK/New_Project/.vscode/workaround.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"RV_OCD_target_file":"${config:target}_riscv.cfg",

"v_Arm_GCC":"10.3",
"v_xPack_GCC":"10.2.0-1.2",
"v_xPack_GCC":"12.2.0-3.1",

"OCD_path":"${config:MAXIM_PATH}/Tools/OpenOCD",
"ARM_GCC_path":"${config:MAXIM_PATH}/Tools/GNUTools/${config:v_Arm_GCC}",
"xPack_GCC_path":"${config:MAXIM_PATH}/Tools/xPack/riscv-none-embed-gcc/${config:v_xPack_GCC}",
"xPack_GCC_path":"${config:MAXIM_PATH}/Tools/xPack/riscv-none-elf-gcc/${config:v_xPack_GCC}",
"Make_path":"${config:MAXIM_PATH}/Tools/MSYS2/usr/bin",

"C_Cpp.default.includePath": [
Expand Down Expand Up @@ -67,9 +67,9 @@
"${config:MAXIM_PATH}/Libraries/MiscDrivers"
],
"C_Cpp.default.defines": [
"${config:board}",
"TARGET=${config:target}",
"TARGET_REV=0x4131",
"__GNUC__"

],
"C_Cpp.default.forcedInclude": [
"${workspaceFolder}/build/project_defines.h"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ endif
# the variables below.


include ./project.mk
PROJECTMK ?= $(abspath ./project.mk)
include $(PROJECTMK)
$(info Loaded project.mk)
# PROJECTMK is also used by implicit rules and other libraries to add project.mk as a watch file

# *******************************************************************************
# Final path sanitization and re-calculation. No options here.
Expand Down Expand Up @@ -175,8 +177,9 @@ IPATH := $(IPATH)

AUTOSEARCH ?= 1
ifeq ($(AUTOSEARCH), 1)
# Auto-detect all C source files on VPATH
# Auto-detect all C/C++ source files on VPATH
SRCS += $(wildcard $(addsuffix /*.c, $(VPATH)))
SRCS += $(wildcard $(addsuffix /*.cpp, $(VPATH)))
endif

# Collapse SRCS before passing them on to the next stage
Expand Down Expand Up @@ -248,22 +251,6 @@ MFLOAT_ABI ?= softfp
# MFLOAT_ABI must be exported to other Makefiles
export MFLOAT_ABI

ifeq "$(RISCV_CORE)" ""
# Default linkerfile is only specified for standard Arm-core projects.
# Otherwise, gcc_riscv.mk sets the appropriate riscv linkerfile.
LINKERFILE ?= $(TARGET_LC).ld
LINKERPATH ?= $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source/GCC

# Check if linkerfile exists
ifeq ("$(wildcard $(LINKERPATH)/$(LINKERFILE))","")
# Doesn't exists, attempt to use root project folder.
LINKERPATH:=.
endif

# Form full path to linkerfile. Works around MSYS2 edge case from (see MSDK-903).
LINKERFILE:=$(LINKERPATH)/$(LINKERFILE)
endif

# This path contains system-level intialization files for the target micro. Add to the build.
VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"RV_OCD_target_file":"${config:target}_riscv.cfg",

"v_Arm_GCC":"10.3",
"v_xPack_GCC":"10.2.0-1.2",
"v_xPack_GCC":"12.2.0-3.1",

"OCD_path":"${config:MAXIM_PATH}/Tools/OpenOCD",
"ARM_GCC_path":"${config:MAXIM_PATH}/Tools/GNUTools/${config:v_Arm_GCC}",
"xPack_GCC_path":"${config:MAXIM_PATH}/Tools/xPack/riscv-none-embed-gcc/${config:v_xPack_GCC}",
"xPack_GCC_path":"${config:MAXIM_PATH}/Tools/xPack/riscv-none-elf-gcc/${config:v_xPack_GCC}",
"Make_path":"${config:MAXIM_PATH}/Tools/MSYS2/usr/bin",

"C_Cpp.default.includePath": [
Expand Down Expand Up @@ -67,9 +67,9 @@
"${config:MAXIM_PATH}/Libraries/MiscDrivers"
],
"C_Cpp.default.defines": [
"${config:board}",
"TARGET=${config:target}",
"TARGET_REV=0x4131",
"__GNUC__"

],
"C_Cpp.default.forcedInclude": [
"${workspaceFolder}/build/project_defines.h"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ endif
# the variables below.


include ./project.mk
PROJECTMK ?= $(abspath ./project.mk)
include $(PROJECTMK)
$(info Loaded project.mk)
# PROJECTMK is also used by implicit rules and other libraries to add project.mk as a watch file

# *******************************************************************************
# Final path sanitization and re-calculation. No options here.
Expand Down Expand Up @@ -175,8 +177,9 @@ IPATH := $(IPATH)

AUTOSEARCH ?= 1
ifeq ($(AUTOSEARCH), 1)
# Auto-detect all C source files on VPATH
# Auto-detect all C/C++ source files on VPATH
SRCS += $(wildcard $(addsuffix /*.c, $(VPATH)))
SRCS += $(wildcard $(addsuffix /*.cpp, $(VPATH)))
endif

# Collapse SRCS before passing them on to the next stage
Expand Down Expand Up @@ -248,22 +251,6 @@ MFLOAT_ABI ?= softfp
# MFLOAT_ABI must be exported to other Makefiles
export MFLOAT_ABI

ifeq "$(RISCV_CORE)" ""
# Default linkerfile is only specified for standard Arm-core projects.
# Otherwise, gcc_riscv.mk sets the appropriate riscv linkerfile.
LINKERFILE ?= $(TARGET_LC).ld
LINKERPATH ?= $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source/GCC

# Check if linkerfile exists
ifeq ("$(wildcard $(LINKERPATH)/$(LINKERFILE))","")
# Doesn't exists, attempt to use root project folder.
LINKERPATH:=.
endif

# Form full path to linkerfile. Works around MSYS2 edge case from (see MSDK-903).
LINKERFILE:=$(LINKERPATH)/$(LINKERFILE)
endif

# This path contains system-level intialization files for the target micro. Add to the build.
VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Package>
<DisplayName>Visual Studio Code Support</DisplayName>
<Description>Project files, templates, and documentation for integrating Visual Studio Code and the MaximSDK. Example projects come pre-populated with .vscode project folders, and this package contains information on how to use them. It installs to "Tools/VSCode-Maxim".</Description>
<ReleaseDate>2023-03-27</ReleaseDate>
<ReleaseDate>2023-06-29</ReleaseDate>
<Dependencies>net.sourceforge.openocd, net.launchpad.gcc.arm.embedded, net.launchpad.gcc.riscv.embedded, com.maximintegrated.libraries.periphdrivers</Dependencies>
<Script>installscript.js</Script>
<Version>1.6.0</Version>
<Version>1.6.1</Version>
<SortingPriority>1</SortingPriority>
<Default>true</Default>
</Package>

0 comments on commit b70c269

Please sign in to comment.