diff options
Diffstat (limited to 'meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc')
| -rw-r--r-- | meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | 52 |
1 files changed, 41 insertions, 11 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 904b4861..cf890a51 100644 --- a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc +++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | # HDF_MACHINE should be set _AFTER_ this has been loaded | ||
| 2 | HDF_MACHINE_PRIOR := "${HDF_MACHINE}" | ||
| 3 | INHERIT += "xilinx-vars" | 1 | INHERIT += "xilinx-vars" |
| 4 | INHERIT += "xilinx-deprecated" | 2 | INHERIT += "xilinx-deprecated" |
| 5 | 3 | ||
| @@ -14,7 +12,7 @@ IMAGE_FSTYPES ?= "tar.gz cpio cpio.gz cpio.gz.u-boot" | |||
| 14 | PREFERRED_PROVIDER_virtual/kernel ??= "linux-xlnx" | 12 | PREFERRED_PROVIDER_virtual/kernel ??= "linux-xlnx" |
| 15 | 13 | ||
| 16 | # Device tree Configuration | 14 | # Device tree Configuration |
| 17 | PREFERRED_PROVIDER_virtual/dtb ??= "device-tree" | 15 | PREFERRED_PROVIDER_virtual/dtb ??= "${@'device-tree' if d.getVar('XILINX_WITH_ESW') else ''}" |
| 18 | 16 | ||
| 19 | # U-Boot Configuration | 17 | # U-Boot Configuration |
| 20 | PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-xlnx" | 18 | PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-xlnx" |
| @@ -27,8 +25,6 @@ PREFERRED_PROVIDER_nativesdk-u-boot-tools ??= "nativesdk-u-boot-tools-xlnx" | |||
| 27 | PREFERRED_PROVIDER_libmetal ?= "libmetal-xlnx" | 25 | PREFERRED_PROVIDER_libmetal ?= "libmetal-xlnx" |
| 28 | PREFERRED_PROVIDER_open-amp ?= "open-amp-xlnx" | 26 | PREFERRED_PROVIDER_open-amp ?= "open-amp-xlnx" |
| 29 | 27 | ||
| 30 | do_image_wic[depends] += "${@' '.join('%s:do_deploy' % r for r in (d.getVar('WIC_DEPENDS') or "").split())}" | ||
| 31 | |||
| 32 | UBOOT_SUFFIX ?= "bin" | 28 | UBOOT_SUFFIX ?= "bin" |
| 33 | 29 | ||
| 34 | UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" | 30 | UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" |
| @@ -61,12 +57,9 @@ WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bi | |||
| 61 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' virtual/dtb', '', d)}" | 57 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' virtual/dtb', '', d)}" |
| 62 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" | 58 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" |
| 63 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" | 59 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" |
| 64 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" | ||
| 65 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' virtual/kernel', '', d)}" | 60 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' virtual/kernel', '', d)}" |
| 66 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' virtual/kernel', '', d)}" | 61 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' virtual/kernel', '', d)}" |
| 67 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'zImage', ' virtual/kernel', '', d)}" | 62 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'zImage', ' virtual/kernel', '', d)}" |
| 68 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.bin', ' virtual/bootloader', '', d)}" | ||
| 69 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.elf', ' virtual/bootloader', '', d)}" | ||
| 70 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' ${INITRAMFS_IMAGE}', '', d)}" | 63 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' ${INITRAMFS_IMAGE}', '', d)}" |
| 71 | 64 | ||
| 72 | # Automatically add IMAGE_BOOT_FILES to /boot via packages | 65 | # Automatically add IMAGE_BOOT_FILES to /boot via packages |
| @@ -74,9 +67,6 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INST | |||
| 74 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}" | 67 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}" |
| 75 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" | 68 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" |
| 76 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" | 69 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" |
| 77 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" | ||
| 78 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.bin', ' ${PREFERRED_PROVIDER_virtual/bootloader}-bin', '', d)}" | ||
| 79 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.elf', ' ${PREFERRED_PROVIDER_virtual/bootloader}-elf', '', d)}" | ||
| 80 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' kernel-image-image', '', d)}" | 70 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' kernel-image-image', '', d)}" |
| 81 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' kernel-image-uimage', '', d)}" | 71 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' kernel-image-uimage', '', d)}" |
| 82 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'zImage', ' kernel-image-zimage', '', d)}" | 72 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'zImage', ' kernel-image-zimage', '', d)}" |
| @@ -90,6 +80,17 @@ IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}" | |||
| 90 | def get_default_image_boot_files(d): | 80 | def get_default_image_boot_files(d): |
| 91 | files = [] | 81 | files = [] |
| 92 | 82 | ||
| 83 | esw_type = d.getVar('XILINX_WITH_ESW') or '' | ||
| 84 | if esw_type: | ||
| 85 | if 'zynq' in d.getVar('OVERRIDES').split(':'): | ||
| 86 | files.append('boot.bin') | ||
| 87 | if 'zynqmp' in d.getVar('OVERRIDES').split(':'): | ||
| 88 | files.append('boot.bin') | ||
| 89 | if 'versal' in d.getVar('OVERRIDES').split(':'): | ||
| 90 | files.append('boot.bin') | ||
| 91 | if 'versal-net' in d.getVar('OVERRIDES').split(':'): | ||
| 92 | files.append('boot.bin') | ||
| 93 | |||
| 93 | # kernel images | 94 | # kernel images |
| 94 | kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split()) | 95 | kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split()) |
| 95 | kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split()) | 96 | kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split()) |
| @@ -103,6 +104,7 @@ def get_default_image_boot_files(d): | |||
| 103 | 104 | ||
| 104 | # device trees (device-tree only), these are first as they are likely desired over the kernel ones | 105 | # device trees (device-tree only), these are first as they are likely desired over the kernel ones |
| 105 | if "device-tree" in (d.getVar("PREFERRED_PROVIDER_virtual/dtb") or ""): | 106 | if "device-tree" in (d.getVar("PREFERRED_PROVIDER_virtual/dtb") or ""): |
| 107 | files.append("system.dtb") | ||
| 106 | files.append("devicetree/*.dtb;devicetree/") | 108 | files.append("devicetree/*.dtb;devicetree/") |
| 107 | files.append("devicetree/*.dtbo;devicetree/") | 109 | files.append("devicetree/*.dtbo;devicetree/") |
| 108 | 110 | ||
| @@ -115,6 +117,34 @@ def get_default_image_boot_files(d): | |||
| 115 | 117 | ||
| 116 | return " ".join(files) | 118 | return " ".join(files) |
| 117 | 119 | ||
| 120 | EXTRA_IMAGEDEPENDS += "${@get_default_extra_imagedepends(d)}" | ||
| 121 | |||
| 122 | def get_default_extra_imagedepends(d): | ||
| 123 | depends = [] | ||
| 124 | |||
| 125 | # Add firmware dependencies | ||
| 126 | esw_type = d.getVar('XILINX_WITH_ESW') or '' | ||
| 127 | if esw_type: | ||
| 128 | depends.append('libyaml-native') | ||
| 129 | depends.append('python3-cython-native') | ||
| 130 | depends.append('python3-pyyaml-native') | ||
| 131 | if 'microblaze' in d.getVar('OVERRIDES').split(':'): | ||
| 132 | depends.append('virtual/bitstream') | ||
| 133 | if 'zynq' in d.getVar('OVERRIDES').split(':'): | ||
| 134 | depends.append('virtual/boot-bin') | ||
| 135 | if 'zynqmp' in d.getVar('OVERRIDES').split(':'): | ||
| 136 | depends.append('virtual/boot-bin') | ||
| 137 | if 'versal' in d.getVar('OVERRIDES').split(':'): | ||
| 138 | depends.append('virtual/boot-bin') | ||
| 139 | depends.append('virtual/cdo') | ||
| 140 | if 'versal-net' in d.getVar('OVERRIDES').split(':'): | ||
| 141 | depends.append('virtual/boot-bin') | ||
| 142 | depends.append('virtual/cdo') | ||
| 143 | |||
| 144 | return " ".join(depends) | ||
| 145 | |||
| 146 | |||
| 147 | |||
| 118 | XSERVER_EXT ?= "" | 148 | XSERVER_EXT ?= "" |
| 119 | 149 | ||
| 120 | FPGA_MNGR_RECONFIG_ENABLE ?= "1" | 150 | FPGA_MNGR_RECONFIG_ENABLE ?= "1" |
