summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended')
-rw-r--r--meta-oe/recipes-extended/ostree/ostree_2022.7.bb25
1 files changed, 17 insertions, 8 deletions
diff --git a/meta-oe/recipes-extended/ostree/ostree_2022.7.bb b/meta-oe/recipes-extended/ostree/ostree_2022.7.bb
index 9cc1bd801..2683c4f24 100644
--- a/meta-oe/recipes-extended/ostree/ostree_2022.7.bb
+++ b/meta-oe/recipes-extended/ostree/ostree_2022.7.bb
@@ -39,7 +39,9 @@ BUILD_OPTIMIZATION:remove = "-Og"
39BUILD_OPTIMIZATION:append = " -O2" 39BUILD_OPTIMIZATION:append = " -O2"
40 40
41# Package configuration - match ostree defaults, but without rofiles-fuse 41# Package configuration - match ostree defaults, but without rofiles-fuse
42# otherwise we introduce a dependendency on meta-filesystems 42# otherwise we introduce a dependendency on meta-filesystems and swap
43# soup for curl to avoid bringing in deprecated libsoup2 (though
44# to run ptest requires that you have soup).
43PACKAGECONFIG ??= " \ 45PACKAGECONFIG ??= " \
44 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \ 46 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \
45 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd libmount', '', d)} \ 47 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd libmount', '', d)} \
@@ -48,7 +50,7 @@ PACKAGECONFIG ??= " \
48 curl \ 50 curl \
49" 51"
50 52
51# We include soup because ostree can't (currently) be built without 53# We include curl because ostree can't (currently) be built without
52# soup or curl - https://github.com/ostreedev/ostree/issues/1897 54# soup or curl - https://github.com/ostreedev/ostree/issues/1897
53PACKAGECONFIG:class-native ??= " \ 55PACKAGECONFIG:class-native ??= " \
54 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \ 56 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \
@@ -175,13 +177,20 @@ RDEPENDS:${PN}:class-target = " \
175# 177#
176# Note that to get ptest to pass you also need: 178# Note that to get ptest to pass you also need:
177# 179#
178# xattr in DISTRO_FEATURES 180# xattr in DISTRO_FEATURES (default)
179# static ostree-prepare-root (PACKAGECONFIG:append:pn-ostree = " static") 181# static ostree-prepare-root
180# meta-python in your layers 182# ostree-trivial-httpd (requires soup - note soup and curl can coexist)
181# overlayfs in your kernel (KERNEL_EXTRA_FEATURES += "features/overlayfs/overlayfs.scc") 183# overlayfs in your kernel
182# busybox built statically 184# busybox built statically
183# /var/tmp as a real filesystem (not a tmpfs) 185# C.UTF-8 locale available
184# Sufficient disk space (IMAGE_ROOTFS_SIZE = "524288") and RAM (QB_MEM = "-m 1024") 186# Sufficient disk space/RAM (e.g. core-image-sato-sdk)
187#
188# Something like this in your local.conf:
189#
190# PACKAGECONFIG:append:pn-ostree = " static soup"
191# KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc"
192# TARGET_CFLAGS:append:pn-busybox = " -static"
193# IMAGE_LINGUAS:append:libc-glibc = " c"
185# 194#
186RDEPENDS:${PN}-ptest += " \ 195RDEPENDS:${PN}-ptest += " \
187 attr \ 196 attr \