summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/recipes-bsp/device-tree
Commit message (Collapse)AuthorAgeFilesLines
* various: Fix variable usageMark Hatle2024-11-211-2/+2
| | | | | | | | | | Remove most direct references to WORKDIR. S = "${WORKDIR}" is no longer allowed, adjust this to refer to UNPACKDIR ${WORKDIR}/package is also incorrect, adjust to ${PKGD}. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree.bb: Rename EXTRA_OVERLAYS to EXTRA_DT_INCLUDE_FILESSandeep Gundlupet Raju2024-10-091-8/+8
| | | | | | | | | Rename EXTRA_OVERLAYS to EXTRA_DT_INCLUDE_FILES as these variables add extra files to DT_FILES_PATH and add a #include for each to the BASE_DTS, it access 1..n dtsi files and adds to SRC_URI. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Fixup dependencies for SDTMark Hatle2024-08-251-0/+3
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* various: Remove SOC_VARIANT, split versal and versal-net, add machine_featuresMark Hatle2024-06-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | SOC_VARIANT has been remove, we are now only using the YP standard SOC_FAMILY configuration. The defined families are: zynq, zynqmp, versal and versal-net. Our decision of breaking up versal-net from versal, is based on the SoC CPU changes from cortexa72/r5 to cortexa78/r52, thus we're treating it as a different SoC family. In order to capture the individual capabilities that we used to handle via SOC_VARIANT, we have defined the following features (some may have been previously defined): - mali400 (zynqmp eg and ev) - vcu (zynqmp ev) - rfsoc (zynqmp dr RF capabiltiies) - aie - (versal ai & premium) - vdu - (versal ai) SOC_VARIANT_ARCH and SOC_FAMILY_ARCH are now obsolete and replaced by MACHINE_ARCH. This is based on the guideline that any recipes that use MACHINE_FEATURES should be MACHINE_ARCH specific. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Replace symlink with cpJohn Toomey2024-03-251-1/+1
| | | | | | | | | | | | | It is not currently possible to create symlinks in the /boot partition due to the use of the vfat filesystem and this causes an issue when trying to update the dtb using rpm packages which contain a symlink. Work around the issue by copying the dtb file to the symlink location. Signed-off-by: John Toomey <john.toomey@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com> (cherry picked from commit 6ddde9a20775549f1434cba6006f84db1a223cb4) Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Fix string trailing character strip issueSandeep Gundlupet Raju2024-01-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Multiconfig freertos device-tree do configure task fails with below errors: ERROR: mc:cortexa53-0-zynqmp-freertos:device-tree-1.0-r0 do_configure: Unable to find cortexa53-0-zynqmp-freerto.dts, to use EXTRA_OVERLAYS you must set a valid CONFIG_DTFILE or use system-top.dts ERROR: mc:cortexa53-0-zynqmp-freertos:device-tree-1.0-r0 do_configure: ExecutionError('/scratch/sandeep/yocto/2024.1/yp-dev/build-sdt/tmp-cortexa53-0-zynqmp-freertos/work/xlnx_zynqmp_zcu102_rev1_0-xilinx-elf/device-tree/1.0-r0/temp/run.do_configure.3127586', 1, None, None) ERROR: Logfile of failure stored in: /scratch/sandeep/yocto/2024.1/yp-dev/build-sdt/tmp-cortexa53-0-zynqmp-freertos/work/xlnx_zynqmp_zcu102_rev1_0-xilinx-elf/device-tree/1.0-r0/temp/log.do_configure.3127586 ERROR: Task (mc:cortexa53-0-zynqmp-freertos:/scratch/sandeep/yocto/2024.1/yp-dev/sources/poky/../meta-xilinx/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb:do_configure) failed with exit code '1' NOTE: Tasks Summary: Attempted 851 tasks of which 769 didn't need to be rerun and 1 failed. Using python rstrip operations it will strip all the combinations of its values. For example in below code BASE_DTS ?= "${@os.path.basename(d.getVar('CONFIG_DTFILE') or '').rstrip('.dtb').rstrip('.dts') or 'system-top'}" if CONFIG_DTFILE name is cortexa53-0-zynqmp-baremetald or cortexa53-0-zynqmp-freertos resulting output with rstrip will be cortexa53-0-zynqmp-baremetal cortexa53-0-zynqmp-freerto Hence instead of using rstrip use os.path.splitext to remove .dtb or .dts extension from file name. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Remove return and use bberrorSandeep Gundlupet Raju2023-05-131-1/+1
| | | | | Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Copy BASE_DTS setting from u-boot, adjust functionsMark Hatle2023-05-131-1/+3
| | | | | | | | BASE_DTS, and DTB_FILE_NAME default based on BASE_DTS, synced with u-boot-xlnx. This will unify the default configuration and ensure we get consistent results. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Fix EXTRA_DT_FILES and EXTRA_OVERLAYSMark Hatle2023-05-131-4/+22
| | | | | | | | | | | | | | If the WORKDIR == DT_FILES_PATH the copy operations will fail. Identify when this case happens and skip the copy as unnecessary. (This is the default configuration.) Signed-off-by: Mark Hatle <mark.hatle@amd.com> Copy the EXTRA_DT_FILES and EXTRA_OVERLAYS files in prepend operation so that it can be preprocessed. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Disable default virtual/kernel dependencyMark Hatle2023-05-131-0/+5
| | | | | | | | KERNEL_INCLUDE implies a virtual/kernel dependency. Disable this, as our device-tree recipe does not use the Linux kernel. This greatly speeds up the build process. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Move from file CONFIG_DTFILE access to SRC_URIMark Hatle2023-05-131-9/+5
| | | | | | | | | | | | | | Move from declaring DT_FILES_PATH to the CONFIG_DTFILE dirname, to the default where it is set to S. This adds the requirement that CONFIG_DTFILE _must_ be self contained (or preprocessed). This prevents the system from compiling any other dts (or dtsi) files located in that directory, to only the ones we've specifically requested. Additionally this simplifies the check_devicetree_variables, as hashing and file validation are now done for us by the fetchers. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Add documentation for key variablesSandeep Gundlupet Raju2023-05-131-0/+6
| | | | | | | Add documentation for SYSTEM_DTFILE, CONFIG_DTFILE, EXTRA_DT_FILE. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Move dt implementation from meta-xilinx-toolsSandeep Gundlupet Raju2023-05-131-0/+52
| | | | | | | | | Move common dt implementation from meta-xilinx-tools to meta-xilinx-core layer. With this using extra dtsi and overlays feature can be used in both SDT and XSCT builds. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* device-tree: Ensure the system.dtb is written to the /boot directoryMark Hatle2022-12-021-1/+8
| | | | | | | | The system.dtb should be a symlink to the system-top.dtb in the devicetree subdirectory. This matches the expected behavior for u-boot-zynq-scr and possibly other users. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* arm-trusted-firmware, device-tree, qemu-devicetrees: Update license to match ↵Mark Hatle2022-08-311-1/+1
| | | | | | | | supported values GPLv2 and BSD are no longer valid. Choose an appropriate replacement. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* device-tree: Allow the CONFIG_DTFILE to be a dts and cleanupMark Hatle2022-03-281-11/+10
| | | | | | | | | Cleanup the conditionals, as only one file is allowed to be specified. Also use the converted version so if a dts is passed in, the dtb will be installed after it is generated. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Revert "device-tree: Allow the CONFIG_DTFILE to be a dts"Mark Hatle2022-03-281-2/+2
| | | | | | This reverts commit f03941e1d98828e17d2bd9d6de56f61baa712f52. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* device-tree: Allow the CONFIG_DTFILE to be a dtsMark Hatle2022-03-281-2/+2
| | | | | | | | | Instead of processing the CONFIG_DTFILE, process the converted (generated) DTB files. This resolves an issue where a user passes in a DTS, the system generated a DTB and attempts to install both the DTS and DTB triggering an unexpected file problem during package generation. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* embeddedsw: Update to skip checks in eSDK build/installMark Hatle2022-02-041-3/+5
| | | | | | | | | | | | device-tree, fsbl, plmfw, pmufw, psmfw do basic validation checks, when in an eSDK skip these checks. Otherwise a partially configured system can't generate an eSDK for the end user. Sync Core and Standalone usages to be consistent. Also cleanup the BB_DONT_CACHE to be consistent in all usages. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* device-tree: Merge experimental and standard flowsMark Hatle2022-01-221-4/+40
| | | | | | | | | | | We need a method for regular building to specify a device tree. Since the experimental flow already contained this, merge it in and connect to the existing SYSTEM_DTFILE as a fall back. Also enable addition 'early package failure' messages to alert the user as soon as possible they need to pass in additional information. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Move away from PACKAGE_ARCH = "BOARD_ARCH" or "BOARDVARIANT_ARCH"Mark Hatle2022-01-141-4/+0
| | | | | | | PACKAGE_ARCH should not be MACHINE_ARCH, unless a specific override is being used for compatibility. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* device-tree: Break into base bb and board specific bbappendMark Hatle2022-01-149-1210/+0
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Initial restructure/split of meta-xilinx-bspMark Hatle2022-01-1410-0/+1262
Create a new meta-xilinx-core, move core functionality to the core, keeping board specific files in the bsp layer. zynqmp-generic changed from require <board> to include, so if meta-xilinx-bsp is not available it will not fail. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>