Skip to content

Commit

Permalink
Add support for GRiSP Nano
Browse files Browse the repository at this point in the history
  • Loading branch information
sylane committed Dec 4, 2024
1 parent 950e4ce commit 2de126b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/grisp_tools_step.erl
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,19 @@ collect(#{project_root := Root, platform := Platform,
mapz:deep_put([build, hash], #{value => Hash, index => HashIndex}, S3).

toolchain(#{paths := #{toolchain := {docker, _}}} = S0) -> S0;
toolchain(#{platform := grisp_nano,
paths := #{toolchain := {directory, ToolchainRoot}}} = S0) ->
[error({toolchain_root_invalid, ToolchainRoot}) || not filelib:is_dir(ToolchainRoot)],
Files = [
["GRISP_TOOLCHAIN_REVISION"],
["GRISP_TOOLCHAIN_PLATFORM"],
["grisp_buildinfo.hrl"],
["arm-rtems6"],
["arm-rtems6", "stm32u5-grisp-nano"],
["bin","arm-rtems6-gcc"]
],
[ check_toolchain_file([ToolchainRoot|File]) || File <- Files],
S0;
toolchain(#{paths := #{toolchain := {directory, ToolchainRoot}}} = S0) ->
[error({toolchain_root_invalid, ToolchainRoot}) || not filelib:is_dir(ToolchainRoot)],
Files = [
Expand Down

0 comments on commit 2de126b

Please sign in to comment.