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

Host packages and merging Docker images #25

Open
matteodelabre opened this issue Aug 13, 2021 · 0 comments
Open

Host packages and merging Docker images #25

matteodelabre opened this issue Aug 13, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@matteodelabre
Copy link
Member

(I’m using target to refer to the reMarkable system and host to refer to the containerized build environment—see #22)

Some packages, when compiled, provide binaries to be used in the build context of other recipes. Such binaries are built for the host architecture instead of the target architecture. OpenWrt refers to these as host tools (see their docs). For example, qtbase provides qmake, that is used to build Qt-dependent projects. We should provide a way for recipes to export some of their artifacts as “host packages”, and a way for other recipes to reuse those artifacts as part of their build process. We should make sure such packages are not installable on the target.

We could leverage this feature to merge all of our Docker images (qt, rust, python, golang) into a single one, by moving the different build tools provided by each of them to separate packages that can be required by individual recipes, and only leaving the base cross-compiling toolchain in the image. This would also make it easier to compose several tools together (what if we need to compile something that needs both Qt and Go? currently, we’d need to create a custom Docker image, see https://blog.redteam-pentesting.de/2021/remarkable-encryption/#developing-the-passphrase-prompt and https://github.com/RedTeamPentesting/remarkable-encryption).

@matteodelabre matteodelabre added the enhancement New feature or request label Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant