This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
oe_yp_migration [2021/11/23 09:54] rpjday removed |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Overview ===== | ||
- | Migration issues in various releases. | ||
- | |||
- | ===== Yocto Project 2.3 (morty -> pyro) ===== | ||
- | |||
- | * recipe-specific sysroots, so you must be more rigorous about DEPENDS -- those dependencies will be populated into each recipe's sysroot | ||
- | * PACKAGE_WRITE_DEPS to enumerate host tools necessary for pkg_preinst() and pkg_postinst() scripts; see "Post-Installation Scripts" in Dev Tasks Manual (see do_rootfs() task) | ||
- | <code> | ||
- | PACKAGE_WRITE_DEPS += "${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','systemd-systemctl-native','',d)}" | ||
- | </code> | ||
- | * SYSROOT_PREPROCESS_FUNCS | ||
- | * Check per-recipe settings of SYSTEMD_AUTO_ENABLE | ||
- | <code> | ||
- | |||
- | recipes-bsp/apmd/apmd_3.2.2-15.bb:SYSTEMD_AUTO_ENABLE = "disable" | ||
- | recipes-connectivity/dhcp/dhcp.inc:SYSTEMD_AUTO_ENABLE_${PN}-server = "disable" | ||
- | recipes-connectivity/dhcp/dhcp.inc:SYSTEMD_AUTO_ENABLE_${PN}-relay = "disable" | ||
- | recipes-connectivity/dhcp/dhcp.inc:SYSTEMD_AUTO_ENABLE_${PN}-client = "disable" | ||
- | recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb:SYSTEMD_AUTO_ENABLE = "disable" | ||
- | recipes-core/util-linux/util-linux.inc:SYSTEMD_AUTO_ENABLE_${PN}-uuidd = "disable" | ||
- | recipes-core/util-linux/util-linux.inc:SYSTEMD_AUTO_ENABLE_${PN}-fstrim = "disable" | ||
- | recipes-devtools/dnf/dnf_2.7.5.bb:SYSTEMD_AUTO_ENABLE ?= "disable" | ||
- | recipes-extended/mdadm/mdadm_4.0.bb:SYSTEMD_AUTO_ENABLE = "disable" | ||
- | recipes-extended/watchdog/watchdog_5.15.bb:SYSTEMD_AUTO_ENABLE = "disable" | ||
- | recipes-extended/sysstat/sysstat.inc:SYSTEMD_AUTO_ENABLE = "enable" | ||
- | recipes-extended/sysklogd/sysklogd.inc:SYSTEMD_AUTO_ENABLE = "enable" | ||
- | recipes-kernel/lttng/lttng-tools_2.9.11.bb:SYSTEMD_AUTO_ENABLE = "disable" | ||
- | </code> | ||
- | * Per-recipe STAGING_DIR_NATIVE | ||
- | * lnr (poky/scripts/lnr); relative_symlinks.bbclass | ||
- | <code> | ||
- | do_install[postfuncs] += "install_relative_symlinks" | ||
- | |||
- | python install_relative_symlinks () { | ||
- | oe.path.replace_absolute_symlinks(d.getVar('D'), d) | ||
- | } | ||
- | </code> | ||
- | * Smart package manager replaced by DNF | ||
- | ** Smart no longer maintained | ||
- | ** Smart not ported to Python 3 | ||
- | * RPM 5 downgraded to RPM 4 | ||
- | ** DNF incompatible with RPM 5 | ||
- | ** RPM 5 just not popular | ||
- | |||
- | |||
- | |||
- | |||
- | ===== Yocto Project 2.4 (pyro -> rocko) ===== | ||
- | |||
- | * no need to include linux-dtb.inc anymore | ||
- | * do_image_<type>[depends] | ||
- | <code> | ||
- | image_types.bbclass:# do_image_tar[depends] += "tar-replacement-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_cpio[depends] += "cpio-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_jffs2[depends] += "mtd-utils-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_cramfs[depends] += "util-linux-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_ext2[depends] += "e2fsprogs-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_ext3[depends] += "e2fsprogs-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_ext4[depends] += "e2fsprogs-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_btrfs[depends] += "btrfs-tools-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_squashfs[depends] += "squashfs-tools-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_squashfs_xz[depends] += "squashfs-tools-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_squashfs_lzo[depends] += "squashfs-tools-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_squashfs_lz4[depends] += "squashfs-tools-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_ubi[depends] += "mtd-utils-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_ubifs[depends] += "mtd-utils-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_multiubi[depends] += "mtd-utils-native:do_populate_sysroot" | ||
- | image_types.bbclass:do_image_f2fs[depends] += "f2fs-tools-native:do_populate_sysroot" | ||
- | image_types_wic.bbclass:do_image_wic[depends] += "${@' '.join('%s-native:do_populate_sysroot' % r for r in ('parted', 'gptfdisk', 'dosfstools', 'mtools'))}" | ||
- | </code> | ||
- | |||
- | ===== Yocto Project 2.5 (rocko -> sumo) ===== | ||
- | |||
- | * can't have DEPENDS on python-name anymore, need one of: | ||
- | * IMAGE_INSTALL_append = " python-foo" | ||
- | * RDEPENDS_${PN} = "python-foo" | ||
- | * check new use of KERNEL_PACKAGE_NAME, switch to: | ||
- | <code> | ||
- | RDEPENDS_kernel-base = "" | ||
- | RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" | ||
- | </code> | ||
- | |||
- | ===== Yocto Project 2.6 (sumo -> thud) ===== |