This repository was archived by the owner on Aug 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
[TEST-BUILD] Basic flatpak support (no flatpak-session yet), reworked on top of latest intel-iot-refkit #181
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flatpack based refkit application framework demands merging of root
folders(/bin, /sbin, /lib*) to their /usr counterparts. This requires the
changes to default bitbake configuration to point all base_{lib,bin,sbin}dir
variables to /usr.
Upstream patches put on hold:
http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133169.html
http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133170.html
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Prepare the root symlinks required for runtime at the time of rootfs creation. The assumption is that in usrmerged distro, no package installs files in /bin,/sbin and /lib* folders. Upstream Patches: http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133166.html Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Get rid of conflicting /usr/sbin/nologin when usrmerge DISTRO_FEATURE is enabled. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Set MOUNT_FUSE_PATH explicitly to ${base_sbindir} before configure.
Making this explicit will let people override base_sbindir with the
desired effect, for instance when ussrmerge DISTRO_FEATURE is enabled.
Upstream-Status: Submitted [openembedded-devel@lists.openembedded.org]
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
quilts autodetection of awk seems to incorrectly pick up gawk (haven't checked but I guess from the host) even when we don't have gawk enabled. Override autodetection by manually setting it to /usr/bin/awk. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
…ing). Added bbappends with native support (where needed), and declared as supported recipes gpgme and gnupg along with its missing dependencies libksba, npth, and pinentry. These are necessary to support signing commits in ostree. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added bbappends to provide native packages and declared as supported recipes. These are needed by ostree-native. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added recipe for ostree and declared it as a supported recipes. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added recipe for bubblewrap and declared it as a supported recipe. It is needed by flatpak. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added recipe for flatpak and declared it as a supported recipe. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added a native-only recipe for gnupg1. We'll use this to generate keys and sign (ostree) repository commits during bitbake/image building in connection with ostree and flatpak repositories. While gnupg2 can be beaten to working obedience with hacks, it is somewhat of a PITA to use both in non-interactive batch mode and in the Yocto relocated native environment. Instead of dealing with those problems we generate/import signing keys and sign repository commits using gnupg1, and check signatures on client devices using gnupg2. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added a script for generating GPG keys, primarily intended for generating signing keys for ostree/flatpak repositories. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added a class for generating or importing signing keys using GPG. Currently we use this to generate signing keys for flatpak ostree repositories. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added a workhorse script for generating/populating a primary flatpak repository for an image. The script can also replicate this repository to another archive-z2 repository which can then be exposed over HTTP for consumption by flatpak clients. This will be necessary for building flatpaks for/against a flatpak-enabled refkit image. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added basic flatpak packagegroup. Only pulls in flatpak with its dependencies. We'll add another dedicated one (probably along with a dedicated DISTRO_FEATURE) for flatpak-session. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added three classes for supporting building flatpak-enabled images, and creating/publishing repositories with flatpak platform and SDK runtimes for such images. flatpak-config.bbclass contains the flatpak-related bitbake/configuration variables. It is separated to a class of its own because we'll probably need to inherit it in a recipe which will support pre-populating an image with pre-declared flatpak application repositories. flatpak-image-variants.bbclass declares two image variants: flatpak- runtime and flatpak-sdk. flatpak-runtime is our flatpak-enabled runtime image variant. It is supposed to get flashed to client devices that need flatpak support. flatpak-sdk is a corresponding image which we use to populate a flatpak repository with a flatpak SDK runtime which can then be used to compile/generate flatpaks for the flatpak-runtime variant. flatpak-repository.bbclass takes care of the details of populating and exporting flatpak repositories with images. Signed-off-by: Krisztian Litkey <kli@iki.fi>
Contributor
Author
|
Test this please. |
Contributor
Author
|
test this please |
If included/required, enable DISTRO_FEATURES (usrmerge, pam, flatpak) necessary for basic flatpak support, and set user-session PACKAGECONFIG for D-Bus. Signed-off-by: Krisztian Litkey <kli@iki.fi>
…port. If flatpak DISTRO_FEATURE is on inherit flatpak-image-variant and flatpak-repository to enable building flatpak-enabled images and generating corresponding flatpak repositories. Signed-off-by: Krisztian Litkey <kli@iki.fi>
Added a recipe for flatpak-image-runtime, a simple systemd service which emulates a flatpak runtime for the currently running image using a bunch of read-only bind mounts. Also added the recipe to the flatpak packagegroup and declared it as a supported recipe. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Enable also flatpak support if refkit config is enabled. Signed-off-by: Krisztian Litkey <kli@iki.fi>
…bbclass. Added a variant of systemd.bbclass which checks that systemd is among DISTRO_FEATURES. This can be used by recipes that not only support systemd but require it to save an extra explicit required distro feature check. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
This was referenced Jun 14, 2017
Contributor
|
superseded by #188 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.