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

Fix standard plugin build with ledger_assert #507

Merged
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
20 changes: 19 additions & 1 deletion src_plugin_sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,25 @@
| :rotating_light: | Breaks build |
| :warning: | Breaks compatibility with app |

## [latest](/) - 2023/10/19
## [latest](/) - 2023/12/06

### Fixed

* standard\_plugin build ([this PR on the SDK](https://github.com/LedgerHQ/ledger-secure-sdk/pull/473) had broken it)

### Changed

* utils renamed to plugin\_utils to prevent filename conflicts in plugins

## [4d8e044](/../../commit/4d8e044) - 2023/11/09

### Added

* standard\_plugin Makefile so plugins can use it & have a really small Makefile
with only the relevant information
* Comments in the plugin interface header file

## [1fe4085](/../../commit/1fe4085) - 2023/10/19

### Changed

Expand Down
2 changes: 1 addition & 1 deletion src_plugin_sdk/utils.c → src_plugin_sdk/plugin_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*****************************************************************************/

#include "utils.h"
#include "plugin_utils.h"

bool find_selector(uint32_t selector, const uint32_t *array, size_t size, size_t *idx) {
for (size_t i = 0; i < size; ++i) {
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions src_plugin_sdk/standard_plugin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ DISABLE_STANDARD_SNPRINTF = 1
DISABLE_STANDARD_USB = 1
DISABLE_STANDARD_WEBUSB = 1
DISABLE_STANDARD_BAGL_UX_FLOW = 1
DISABLE_DEBUG_LEDGER_ASSERT = 1
DISABLE_DEBUG_THROW = 1

# Required for PRINTFs to compile
ifeq ($(DEBUG),0)
Expand Down
4 changes: 2 additions & 2 deletions tools/build_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ def merge_c_files(sources, nodes_to_extract):

files_to_copy = [
"main.c",
"utils.c",
"utils.h",
"plugin_utils.c",
"plugin_utils.h",
]
for file in files_to_copy:
shutil.copyfile("src_plugin_sdk/" + file,
Expand Down
Loading