diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2025-04-20 12:05:24 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-23 09:47:42 +0100 |
| commit | 741e12d5b9e4a8d1c9935b0ac6f0bd5d3d0f7f27 (patch) | |
| tree | c7d297b7e3ba21b0a9dbf22ca9c96447235237e7 | |
| parent | 87c2effeb91e288f0ddc71f344d8b4a70c99820c (diff) | |
| download | poky-741e12d5b9e4a8d1c9935b0ac6f0bd5d3d0f7f27.tar.gz | |
classes/recipes: remove unnecessary qemu inherit and use qemuwrapper-cross
These classes/recipes inherit qemu.bbclass but do not use anything from it.
What they use is qemuwrapper-cross, which is needed at do_rootfs time and
needs to be pulled-in by PACKAGE_WRITE_DEPS.
Also, in meta/conf/layer.conf, exclude qemuwrapper-cross deps for all arch
recipes that depend on it. This it ensure allarch recipes have the same
signature across different machines.
(From OE-Core rev: 6f3ce94f4c03e7b26f1fcdf78ea969f57717ec56)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-recipe/fontcache.bbclass | 3 | ||||
| -rw-r--r-- | meta/classes-recipe/gio-module-cache.bbclass | 3 | ||||
| -rw-r--r-- | meta/classes-recipe/gtk-immodules-cache.bbclass | 4 | ||||
| -rw-r--r-- | meta/classes-recipe/manpages.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes-recipe/pixbufcache.bbclass | 5 | ||||
| -rw-r--r-- | meta/conf/layer.conf | 3 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd_257.5.bb | 5 | ||||
| -rw-r--r-- | meta/recipes-core/udev/eudev_3.2.14.bb | 4 |
8 files changed, 13 insertions, 16 deletions
diff --git a/meta/classes-recipe/fontcache.bbclass b/meta/classes-recipe/fontcache.bbclass index 6f4978369d..deadcd2fbb 100644 --- a/meta/classes-recipe/fontcache.bbclass +++ b/meta/classes-recipe/fontcache.bbclass | |||
| @@ -9,8 +9,7 @@ | |||
| 9 | # packages. | 9 | # packages. |
| 10 | # | 10 | # |
| 11 | 11 | ||
| 12 | PACKAGE_WRITE_DEPS += "qemu-native" | 12 | PACKAGE_WRITE_DEPS += "qemuwrapper-cross" |
| 13 | inherit qemu | ||
| 14 | 13 | ||
| 15 | FONT_PACKAGES ??= "${PN}" | 14 | FONT_PACKAGES ??= "${PN}" |
| 16 | FONT_PACKAGES:class-native = "" | 15 | FONT_PACKAGES:class-native = "" |
diff --git a/meta/classes-recipe/gio-module-cache.bbclass b/meta/classes-recipe/gio-module-cache.bbclass index d12e03c4a0..3714678c7c 100644 --- a/meta/classes-recipe/gio-module-cache.bbclass +++ b/meta/classes-recipe/gio-module-cache.bbclass | |||
| @@ -4,8 +4,7 @@ | |||
| 4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
| 5 | # | 5 | # |
| 6 | 6 | ||
| 7 | PACKAGE_WRITE_DEPS += "qemu-native" | 7 | PACKAGE_WRITE_DEPS += "qemuwrapper-cross" |
| 8 | inherit qemu | ||
| 9 | 8 | ||
| 10 | GIO_MODULE_PACKAGES ??= "${PN}" | 9 | GIO_MODULE_PACKAGES ??= "${PN}" |
| 11 | 10 | ||
diff --git a/meta/classes-recipe/gtk-immodules-cache.bbclass b/meta/classes-recipe/gtk-immodules-cache.bbclass index 8fbe1dd1fb..585838c105 100644 --- a/meta/classes-recipe/gtk-immodules-cache.bbclass +++ b/meta/classes-recipe/gtk-immodules-cache.bbclass | |||
| @@ -8,9 +8,7 @@ | |||
| 8 | # | 8 | # |
| 9 | # Usage: Set GTKIMMODULES_PACKAGES to the packages that needs to update the inputmethod modules | 9 | # Usage: Set GTKIMMODULES_PACKAGES to the packages that needs to update the inputmethod modules |
| 10 | 10 | ||
| 11 | PACKAGE_WRITE_DEPS += "qemu-native" | 11 | PACKAGE_WRITE_DEPS += "qemuwrapper-cross" |
| 12 | |||
| 13 | inherit qemu | ||
| 14 | 12 | ||
| 15 | GTKIMMODULES_PACKAGES ?= "${PN}" | 13 | GTKIMMODULES_PACKAGES ?= "${PN}" |
| 16 | 14 | ||
diff --git a/meta/classes-recipe/manpages.bbclass b/meta/classes-recipe/manpages.bbclass index e9ca2f895b..f3d034b046 100644 --- a/meta/classes-recipe/manpages.bbclass +++ b/meta/classes-recipe/manpages.bbclass | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | # by default. | 10 | # by default. |
| 11 | PACKAGECONFIG:append:class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages', '', d)}" | 11 | PACKAGECONFIG:append:class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages', '', d)}" |
| 12 | 12 | ||
| 13 | inherit qemu | 13 | PACKAGE_WRITE_DEPS += "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'qemuwrapper-cross', '', d)}" |
| 14 | 14 | ||
| 15 | # usually manual files are packaged to ${PN}-doc except man-pages | 15 | # usually manual files are packaged to ${PN}-doc except man-pages |
| 16 | MAN_PKG ?= "${PN}-doc" | 16 | MAN_PKG ?= "${PN}-doc" |
diff --git a/meta/classes-recipe/pixbufcache.bbclass b/meta/classes-recipe/pixbufcache.bbclass index 107e38885e..c32673df55 100644 --- a/meta/classes-recipe/pixbufcache.bbclass +++ b/meta/classes-recipe/pixbufcache.bbclass | |||
| @@ -9,12 +9,9 @@ | |||
| 9 | # packages. | 9 | # packages. |
| 10 | # | 10 | # |
| 11 | 11 | ||
| 12 | DEPENDS:append:class-target = " qemu-native" | ||
| 13 | inherit qemu | ||
| 14 | |||
| 15 | PIXBUF_PACKAGES ??= "${PN}" | 12 | PIXBUF_PACKAGES ??= "${PN}" |
| 16 | 13 | ||
| 17 | PACKAGE_WRITE_DEPS += "qemu-native gdk-pixbuf-native" | 14 | PACKAGE_WRITE_DEPS += "qemuwrapper-cross gdk-pixbuf-native" |
| 18 | 15 | ||
| 19 | pixbufcache_common() { | 16 | pixbufcache_common() { |
| 20 | if [ "x$D" != "x" ]; then | 17 | if [ "x$D" != "x" ]; then |
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index 6a70cb63a5..e19431e724 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf | |||
| @@ -89,6 +89,9 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \ | |||
| 89 | adwaita-icon-theme->gdk-pixbuf \ | 89 | adwaita-icon-theme->gdk-pixbuf \ |
| 90 | adwaita-icon-theme->gtk+3 \ | 90 | adwaita-icon-theme->gtk+3 \ |
| 91 | run-postinsts->util-linux \ | 91 | run-postinsts->util-linux \ |
| 92 | cantarell-fonts->qemuwrapper-cross \ | ||
| 93 | liberation-fonts->qemuwrapper-cross \ | ||
| 94 | ttf-bitstream-vera->qemuwrapper-cross \ | ||
| 92 | " | 95 | " |
| 93 | 96 | ||
| 94 | # Avoid adding bison-native to the sysroot without a specific | 97 | # Avoid adding bison-native to the sysroot without a specific |
diff --git a/meta/recipes-core/systemd/systemd_257.5.bb b/meta/recipes-core/systemd/systemd_257.5.bb index bd57f1f5a5..1379b21889 100644 --- a/meta/recipes-core/systemd/systemd_257.5.bb +++ b/meta/recipes-core/systemd/systemd_257.5.bb | |||
| @@ -8,7 +8,7 @@ DEPENDS = "gperf-native libcap util-linux python3-jinja2-native" | |||
| 8 | 8 | ||
| 9 | SECTION = "base/shell" | 9 | SECTION = "base/shell" |
| 10 | 10 | ||
| 11 | inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives qemu systemd gettext bash-completion manpages features_check mime | 11 | inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives systemd gettext bash-completion manpages features_check mime |
| 12 | 12 | ||
| 13 | # unmerged-usr support is deprecated upstream, taints the system and will be | 13 | # unmerged-usr support is deprecated upstream, taints the system and will be |
| 14 | # removed in the near future. Fail the build if it is not enabled. | 14 | # removed in the near future. Fail the build if it is not enabled. |
| @@ -932,7 +932,8 @@ pkg_prerm:${PN}:libc-glibc () { | |||
| 932 | fi | 932 | fi |
| 933 | } | 933 | } |
| 934 | 934 | ||
| 935 | PACKAGE_WRITE_DEPS += "qemu-native" | 935 | PACKAGE_WRITE_DEPS += "qemuwrapper-cross" |
| 936 | |||
| 936 | pkg_postinst:udev-hwdb () { | 937 | pkg_postinst:udev-hwdb () { |
| 937 | if test -n "$D"; then | 938 | if test -n "$D"; then |
| 938 | $INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} \ | 939 | $INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} \ |
diff --git a/meta/recipes-core/udev/eudev_3.2.14.bb b/meta/recipes-core/udev/eudev_3.2.14.bb index b3e7d092c5..a2d222e655 100644 --- a/meta/recipes-core/udev/eudev_3.2.14.bb +++ b/meta/recipes-core/udev/eudev_3.2.14.bb | |||
| @@ -20,7 +20,7 @@ SRC_URI[sha256sum] = "8da4319102f24abbf7fff5ce9c416af848df163b29590e666d334cc192 | |||
| 20 | 20 | ||
| 21 | GITHUB_BASE_URI = "https://github.com/eudev-project/eudev/releases" | 21 | GITHUB_BASE_URI = "https://github.com/eudev-project/eudev/releases" |
| 22 | 22 | ||
| 23 | inherit autotools update-rc.d qemu pkgconfig features_check manpages github-releases | 23 | inherit autotools update-rc.d pkgconfig features_check manpages github-releases |
| 24 | 24 | ||
| 25 | CONFLICT_DISTRO_FEATURES = "systemd" | 25 | CONFLICT_DISTRO_FEATURES = "systemd" |
| 26 | 26 | ||
| @@ -77,7 +77,7 @@ RDEPENDS:${PN} += "kmod" | |||
| 77 | RPROVIDES:${PN} = "hotplug udev" | 77 | RPROVIDES:${PN} = "hotplug udev" |
| 78 | RPROVIDES:${PN}-hwdb += "udev-hwdb" | 78 | RPROVIDES:${PN}-hwdb += "udev-hwdb" |
| 79 | 79 | ||
| 80 | PACKAGE_WRITE_DEPS += "qemu-native" | 80 | PACKAGE_WRITE_DEPS += "qemuwrapper-cross" |
| 81 | pkg_postinst:${PN}-hwdb () { | 81 | pkg_postinst:${PN}-hwdb () { |
| 82 | if test -n "$D"; then | 82 | if test -n "$D"; then |
| 83 | $INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} | 83 | $INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} |
