diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2022-12-01 17:07:48 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2022-12-02 08:44:13 -0600 |
| commit | 1e72f383a106ec51aa864f0c29141fc0e0adb3bc (patch) | |
| tree | 679d3157e77791bff550cc6d205f84b79b649f3b /meta-xilinx-core/conf | |
| parent | 5c4d8a806e232e5732cad041ff424f5fd1435ec2 (diff) | |
| download | meta-xilinx-1e72f383a106ec51aa864f0c29141fc0e0adb3bc.tar.gz | |
machine-xilinx-default.inc: Enable both bootimg and rootfs image /boot
IMAGE_BOOT_FILES and WKS_FILE_DEPENDS are used in the bootimg technique.
THis ensures that an bootimg will continue to work in the future.
The MACHINE_ESSENTIAL_EXTRA_RDEPENDS is also filled out based on the
same IMAGE_BOOT_FILES. This ensures that the packages used to generate
the filesystem's /boot partition is matching and full.
The end result of both approaches is slightly different, but the rootfs
method must be used for on-target package upgrade to work properly.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/conf')
| -rw-r--r-- | meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc index fb64b834..1f8476d9 100644 --- a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc +++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | |||
| @@ -40,12 +40,36 @@ XSERVER ?= " \ | |||
| 40 | ${XSERVER_EXT} \ | 40 | ${XSERVER_EXT} \ |
| 41 | " | 41 | " |
| 42 | 42 | ||
| 43 | # Define to avoid parsse errors below if undefind elsewhere | ||
| 44 | INITRAMFS_IMAGE ??= "" | ||
| 45 | |||
| 43 | # Automatically add WKS_FILE_DEPENDS based on the configuration | 46 | # Automatically add WKS_FILE_DEPENDS based on the configuration |
| 44 | WKS_FILE_DEPENDS:append = "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.bin', ' xilinx-bootbin', '', d)}" | 47 | # Initial value from oe-core/meta/classes-recipe/image_types_wic.bbclass |
| 45 | WKS_FILE_DEPENDS:append = "${@bb.utils.contains('IMAGE_BOOT_FILES', 'system.dtb', ' virtual/dtb', '', d)}" | 48 | WKS_FILE_DEPENDS ?= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}" |
| 46 | WKS_FILE_DEPENDS:append = "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" | 49 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.bin', ' virtual/boot-bin', '', d)}" |
| 47 | WKS_FILE_DEPENDS:append = "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" | 50 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'system.dtb', ' virtual/dtb', '', d)}" |
| 48 | WKS_FILE_DEPENDS:append = "${@bb.utils.contains('IMAGE_BOOT_FILES', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" | 51 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" |
| 52 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" | ||
| 53 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" | ||
| 54 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'Image', ' virtual/kernel', '', d)}" | ||
| 55 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uImage', ' virtual/kernel', '', d)}" | ||
| 56 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'zImage', ' virtual/kernel', '', d)}" | ||
| 57 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.bin', ' virtual/bootloader', '', d)}" | ||
| 58 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.elf', ' virtual/bootloader', '', d)}" | ||
| 59 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' ${INITRAMFS_IMAGE}', '', d)}" | ||
| 60 | |||
| 61 | # Automatically add IMAGE_BOOT_FILES to /boot via packages | ||
| 62 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.bin', ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}" | ||
| 63 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}" | ||
| 64 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" | ||
| 65 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" | ||
| 66 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" | ||
| 67 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.bin', ' ${PREFERRED_PROVIDER_virtual/bootloader}-bin', '', d)}" | ||
| 68 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.elf', ' ${PREFERRED_PROVIDER_virtual/bootloader}-elf', '', d)}" | ||
| 69 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'Image', ' kernel-image-image', '', d)}" | ||
| 70 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uImage', ' kernel-image-uimage', '', d)}" | ||
| 71 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'zImage', ' kernel-image-zimage', '', d)}" | ||
| 72 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' initramdisk-${INITRAMFS_IMAGE}', '', d)}" | ||
| 49 | 73 | ||
| 50 | IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}" | 74 | IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}" |
| 51 | 75 | ||
| @@ -64,7 +88,7 @@ def get_default_image_boot_files(d): | |||
| 64 | files.append(d.getVar("UBOOT_BINARY")) | 88 | files.append(d.getVar("UBOOT_BINARY")) |
| 65 | 89 | ||
| 66 | # device trees (device-tree only), these are first as they are likely desired over the kernel ones | 90 | # device trees (device-tree only), these are first as they are likely desired over the kernel ones |
| 67 | if "device-tree" in (d.getVar("MACHINE_ESSENTIAL_EXTRA_RDEPENDS") or ""): | 91 | if "device-tree" in (d.getVar("PREFERRED_PROVIDER_virtual/dtb") or ""): |
| 68 | files.append("devicetree/*.dtb;devicetree/") | 92 | files.append("devicetree/*.dtb;devicetree/") |
| 69 | 93 | ||
| 70 | 94 | ||
