Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add firmware command #26

Merged
merged 3 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ and this project adheres to
- Exposed previously private function `grisp_tools_util:read_file/2`: [#25](https://github.com/grisp/grisp_tools/pull/25)
- Utility functions `grisp_tools_util:make_relative/[1,2]` to convert a path to
relative: [#25](https://github.com/grisp/grisp_tools/pull/25)
- Utility functions `grisp_tools_util:maybe_relative/[2,3]` to convert a path to
relative with a maximum number of double-dots: [#26](https://github.com/grisp/grisp_tools/pull/26)
- Add iteration function to iterate over a list that behave nicely with `pipe`
and `weave` functions.
- Add optional cleanup actions to `weave` and `pipe` functions that will be
called if any exception is raised while performing the actions, and that will
receive the last know state before the exception was raised. The cleanup
actions will **NOT** be called if the actions do not raise any exception.
[#25](https://github.com/grisp/grisp_tools/pull/25)
- Add a firmware command to generate GRiSP 2 binary firmwares: [#26](https://github.com/grisp/grisp_tools/pull/26)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@

END OF TERMS AND CONDITIONS

Copyright 2018, Adam Lindberg <hello@alind.io>.
Copyright 2018, Peer Stritzinger GmbH <grisp@stritzinger.com>.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 2 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
{deps, [
{mapz, "~> 2.2"},
bbmustache,
hackney
hackney,
edifa
]}.
6 changes: 6 additions & 0 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{"1.2.0",
[{<<"bbmustache">>,{pkg,<<"bbmustache">>,<<"1.12.2">>},0},
{<<"certifi">>,{pkg,<<"certifi">>,<<"2.9.0">>},1},
{<<"edifa">>,{pkg,<<"edifa">>,<<"1.0.0">>},0},
{<<"erlexec">>,{pkg,<<"erlexec">>,<<"2.0.7">>},1},
{<<"hackney">>,{pkg,<<"hackney">>,<<"1.18.1">>},0},
{<<"idna">>,{pkg,<<"idna">>,<<"6.1.1">>},1},
{<<"mapz">>,{pkg,<<"mapz">>,<<"2.2.0">>},0},
Expand All @@ -13,6 +15,8 @@
{pkg_hash,[
{<<"bbmustache">>, <<"0CABDCE0DB9FE6D3318131174B9F2B351328A4C0AFBEB3E6E99BB0E02E9B621D">>},
{<<"certifi">>, <<"6F2A475689DD47F19FB74334859D460A2DC4E3252A3324BD2111B8F0429E7E21">>},
{<<"edifa">>, <<"0F1A01A0C79B7135F334B3FCEEB624F0574C5ED3E4554B06C8664AADA6A339C8">>},
{<<"erlexec">>, <<"76D0BC7487929741B5BB9F74DA2AF5DAF1492134733CF9A05C7AAA278B6934C5">>},
{<<"hackney">>, <<"F48BF88F521F2A229FC7BAE88CF4F85ADC9CD9BCF23B5DC8EB6A1788C662C4F6">>},
{<<"idna">>, <<"8A63070E9F7D0C62EB9D9FCB360A7DE382448200FBBD1B106CC96D3D8099DF8D">>},
{<<"mapz">>, <<"81EE5AD249BBC9427DAA6C3EE5166F88A448C5B0B2F5BBEE0495266308AFF2BA">>},
Expand All @@ -24,6 +28,8 @@
{pkg_hash_ext,[
{<<"bbmustache">>, <<"688B33A4D5CC2D51F575ADF0B3683FC40A38314A2F150906EDCFC77F5B577B3B">>},
{<<"certifi">>, <<"266DA46BDB06D6C6D35FDE799BCB28D36D985D424AD7C08B5BB48F5B5CDD4641">>},
{<<"edifa">>, <<"A1E010561E7D236A24C668D95626BE2BFE082ED0331CE1E6798BE0CD43F59A7B">>},
{<<"erlexec">>, <<"AF2DD940BB8E32F5AA40A65CB455DCAA18F5334FD3507E9BFD14A021E9630897">>},
{<<"hackney">>, <<"A4ECDAFF44297E9B5894AE499E9A070EA1888C84AFDD1FD9B7B2BC384950128E">>},
{<<"idna">>, <<"92376EB7894412ED19AC475E4A86F7B413C1B9FBB5BD16DCCD57934157944CEA">>},
{<<"mapz">>, <<"861A878A86AB7E5897A9B57B3CA0B188FB53CE2935B153872C61F6641E709AA8">>},
Expand Down
3 changes: 3 additions & 0 deletions src/grisp_tools.erl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
-export([list_packages/1]).
-export([report/1]).
-export([configure/1]).
-export([firmware/1]).

%--- API -----------------------------------------------------------------------

Expand All @@ -30,3 +31,5 @@ list_packages(Opts) -> grisp_tools_package:list(Opts).
report(Opts) -> grisp_tools_report:run(Opts).

configure(Opts) -> grisp_tools_configure:run(Opts).

firmware(Opts) -> grisp_tools_firmware:run(Opts).
Loading
Loading