Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a docker image specification that can be used to build rust binaries for the reMarkable. It works on Linux (untested on OS X) and only requires Docker and make as dependencies.
Before this PR, a user compiling on ubuntu 16.04 would need to perform all the steps listed here except for starting a VM. On 18.04, I was unable to cross compile successfully at all due to glibc versioning, despite much effort. However, with this PR merged, any linux user with docker, make and reMarkable ssh set up can do:
and see the demo running on their device. They can also copy the make target for compiling their own programs.
To make it easier to build in docker and deploy directly, the
run
target is now an alias forexamples
anddeploy-demo
. There is a new target,run-docker
, which builds the binary in docker instead of locally before deploying. This pattern can be applied to other deployment targets if desired.It also makes two changes that were needed for a successful build on latest nightly: pinning
atomic
to 0.4.0, and removing theconst_size_of
feature gate (as it appears to have been removed)A couple technical notes:
target
folder is on the host, so the compiler cache is persisted across builds.7m17.09s
demo.rs
:0m8.28s
0m3.24s