Skip to content

Bundle applet-mdflash.bin into executable - #61

Merged
just-another-jxliu merged 4 commits into
Massdrop:masterfrom
zvecr:feature/bundle_applet
Oct 5, 2021
Merged

Bundle applet-mdflash.bin into executable#61
just-another-jxliu merged 4 commits into
Massdrop:masterfrom
zvecr:feature/bundle_applet

Conversation

@zvecr

@zvecr zvecr commented Sep 29, 2021

Copy link
Copy Markdown
Collaborator

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
Copy Markdown

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

zvecr commented Sep 30, 2021

Copy link
Copy Markdown
Collaborator Author

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