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

Bundle applet-mdflash.bin into executable #61

Merged
merged 4 commits into from
Oct 5, 2021

Conversation

zvecr
Copy link
Collaborator

@zvecr zvecr commented Sep 29, 2021

Resolve a few of the flashing/packaging issues where the applet is assumed to be in the current working directory.

Introduces https://github.com/graphitemaster/incbin as a dependency, which should be a compatible licence. This was due to objcopy/-Wl,--format=binary -Wl,applet-mdflash.bin not functioning on macos, and was proving to be a bit of a pain to work generically.

Fixes #21 (and maybe a few others).

Testing:

  • Windows
  • Linux (currently only ubuntu and arch)
  • MacOS

@zvecr zvecr changed the title Bundle applet-mdflash.bin into exe Bundle applet-mdflash.bin into executable Sep 29, 2021
zvecr added a commit to zvecr/mdloader that referenced this pull request Sep 29, 2021
Bundle applet-mdflash.bin into executable
@zvecr zvecr marked this pull request as draft September 29, 2021 21:54
@fauxpark
Copy link

I solved this for the Homebrew formula with the following patch: https://github.com/qmk/homebrew-qmk/blob/master/Patch/mdloader-applet-path.patch

@zvecr
Copy link
Collaborator Author

zvecr commented Sep 30, 2021

I solved this for the Homebrew formula with the following patch: https://github.com/qmk/homebrew-qmk/blob/master/Patch/mdloader-applet-path.patch

This PR should remove the need for such patches.

@zvecr zvecr marked this pull request as ready for review September 30, 2021 12:58
@zvecr zvecr mentioned this pull request Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mdloader can't find applet-flash-samd51j18a.bin unless in working directory
3 participants