-
Notifications
You must be signed in to change notification settings - Fork 12
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
Use Makefile to generate manifest to use ledgerctl #161
base: master
Are you sure you want to change the base?
Conversation
74e2417
to
ebc8570
Compare
ebc8570
to
86c761f
Compare
86c761f
to
1798d00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good for me.
Now you need someone from the Os to review it too :)
return int(x, 0) | ||
|
||
def get_argparser(): | ||
parser = argparse.ArgumentParser(description="Load an app onto the device from a hex file.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment explaining this is taken as is from loadApp.py parser which can expect quite a lot of params...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could even import get_argparser()
from ledgerblue.loadApp
? It would make things more obvious. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it means that users will have to use ledgerblue but the point is to use ledgerctl this is why I did not want to add ledgerblue dependancies. But I can add a comment and copy/paste the arguments in the same order that there are in ledgerblue if you want
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know what I used this order is to split element used by ledgerctl and element that are here for ledgerblue compatibility :
ledger-secure-sdk/create_manifest.py
Line 44 in 82a7b01
# Not used - to be compatible with python3 ledgerblue |
1798d00
to
82a7b01
Compare
I'm wondering, couldn't we use the already existing |
Description
Modify Makefile to create a manifest to sideload app with ledgerctl
Changes include