summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone/recipes-bsp/embeddedsw
Commit message (Collapse)AuthorAgeFilesLines
* meta-xilinx-standalone: Rework embeddedsw integrationHEADmasterMark Hatle2024-11-2435-124/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new embeddedsw-source recipe that is a single point for unpack, and patch of the sources. This will allow someone to universally patch (via a bbappend or similar) the esw sources. As part of this work, we transfered the various patches for fsbl, pmu, plm, and psm to the universe source recipe. Most of this is transparent to any recipe using xlnx-embeddedsw. The class automaticaly detects if the recipe is a user our the special embeddedsw-source recipe and enables the correct behavior. Since the esw sources expect the S and B to be the same, the cmake objects get written into S, we are not able to follow the gcc-source example. Instead recipes that use the xlnx-embeddedsw class will hard link or copy the source files to their working directory. This avoid the penalty for fetch, unpack and patch. Note these recipes may also add their own SRC_URI which WILL be processed as normal. This is often used to introduce special tcl scripts. See the do_copy_shared_src task injected by the xlnx-embeddedsw.bbclass for technical details. Additionally, correct some of the existing patch Upstream-Status entries to conform to current YP guidelines. For 2024.2 introduce a special Xil_Assert fix for the current toolchain which is more strict on type conversion.. See the patch itself for more details. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* various: Remove 2022.x versionsMark Hatle2024-11-2422-569/+0
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* various: Fix variable usageMark Hatle2024-11-214-4/+4
| | | | | | | | | | 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>
* imgrcry: Rework image-recover recipeJohn Toomey2024-09-204-2/+22
| | | | | | | | | | | | Rework the image recover recipe to match image selector. imgrcry is now the top level recipe which will pull in the required version of image-recovery depending on build flow. This change also updates the output file name in a number of places and fixes an issue in image selector. Signed-off-by: John Toomey <john.toomey@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* image-selector: Add SDT image selector recipeJohn Toomey2024-08-162-0/+20
| | | | | | | | Also add imgsel wrapper allowing for the correct image-selector recipe to be built depending if the XSCT or SDT flow is in use Signed-off-by: John Toomey <john.toomey@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* various: Remove SOC_VARIANT, split versal and versal-net, add machine_featuresMark Hatle2024-06-042-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* embeddedsw: Rework fsbl, pmu, plm and psm codeMark Hatle2024-05-2881-1207/+962
| | | | | | | Clenaup and rework the code so that the 'generic' implementation no longers affects xsct, or SDT (or future) variations. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* meta-xilinx-standalone: adjust bbappends for YP best practicesMark Hatle2024-05-288-97/+101
| | | | | | | Ensure that each bbappend only applies when XILINX_WITH_ESW or a related DISTRO is enabled. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* meta-xilinx-standalone: Create 2024.2 recipesMark Hatle2024-05-214-0/+84
| | | | | | | Adjust the way the PREFERRED_VERSION happens to allow us to use the same login in layers that depend on this one. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* WIPMark Hatle2024-04-0417-68/+632
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* Merge remote-tracking branch 'xilinx/rel-v2024.1' into master-nextMark Hatle2024-03-264-0/+90
|\ | | | | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| * meta-xilinx-standalone: Branch embeddedsw integration to 2024.1Mark Hatle2023-08-294-0/+90
| | | | | | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* | Merge remote-tracking branch 'origin/rel-v2023.2' into nanbieldMark Hatle2023-10-234-0/+90
|\| | | | | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| * Start 2023.2 developmentMark Hatle2023-03-084-0/+90
| | | | | | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* | Merge remote-tracking branch 'origin/rel-v2023.1'Mark Hatle2023-05-1810-4/+330
|\| | | | | | | | | | | | | Resolved conflicts Preserved 2022* versions Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| * Remove obsolete 2022 versionsMark Hatle2023-03-058-118/+0
| | | | | | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| * embeddedsw: Disable buildpaths QA check for embeddedsw firmwareSandeep Gundlupet Raju2023-03-034-0/+11
| | | | | | | | | | Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| * embeddedsw: Revert 2023.1 workaroundsMark Hatle2023-01-239-64/+0
| | | | | | | | | | | | | | | | | | | | Remove workaround for: xpm_domain_iso.c:724:42: error: potential null pointer dereference [-Werror=null-dereference] Also the other workaround can be removed, this has apparently been fixed in the upstream code. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| * meta-xilinx-standalone: Update 2023.1 embeddedsw and git versionMark Hatle2022-12-0812-110/+342
| | | | | | | | | | | | | | | | | | | | Update the integration to match 2023 changes. Update the Makefile and versal pathes for 2023 specific version Add a workaround for -Werror -Wnull-dereference failing during some compiles Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| * embeddedsw: Add 2023.1 versionsMark Hatle2022-11-024-0/+59
| | | | | | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* | fsbl-firmware: Update integrationMark Hatle2023-04-101-1/+1
| | | | | | | | | | | | | | | | Set COMPATIBLE_HOST more loosely to allow for baremetal builds. Update processing to use OBJCOPY and add additional deploy names. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* | embeddedsw: Disable buildpaths QA check for embeddedsw firmwareSandeep Gundlupet Raju2023-04-104-0/+11
| | | | | | | | | | Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* | meta-xilinx-standalone: Sync embeddedsw and git versionMark Hatle2023-04-104-109/+10
|/ | | | | | Update the integration to match latest changes. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* xlnx-embeddedsw: Cleanup and remove old versions, no longer supportedMark Hatle2022-09-126-69/+0
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* Merge remote-tracking branch 'origin/rel-v2022.2' into honisterMark Hatle2022-09-014-0/+59
|\
| * embeddedsw: Update fsbl image nameSandeep Gundlupet Raju2022-02-242-2/+2
| | | | | | | | | | | | | | | | Update FSBL_IMAGE_NAME to align with expected file name to be fsbl-${MACHINE}. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
| * various: Move from 2022.1 to 2022.2Mark Hatle2022-02-054-0/+59
| | | | | | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
| * pmufw: Fix dependency variable typoMark Hatle2022-01-251-1/+1
| | | | | | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
| * embeddedsw: Update to skip checks in eSDK build/installMark Hatle2022-01-254-12/+49
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * embeddedsw: Rework the embeddedsw copy firmware recipesMark Hatle2022-01-2310-3/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fsbl, plmfw, pufw, and psmfw are reworked to provide earlier error messages, and better handle multiconfig builds. Also adjust MACHINE specific changes to use .* for compatibility based on the SOC_FAMILY override. The system doesn't always set the SOC_FAMILY as COMPATIBLE_MACHINE, so this avoids an error of incompatible machine. Align all of the expected firmware filenames to be <firmware>-${MACHINE}. The user can override as necessary. The license moves to CLOSED as we don't know the license of the software being provided by the user or other dependencies. It'll be up to the user to reconcile it. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
| * Move away from PACKAGE_ARCH = "BOARD_ARCH" or "BOARDVARIANT_ARCH"Mark Hatle2021-12-224-12/+4
| | | | | | | | | | | | | | 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>
| * Move from 2021.2 to 2022.1Mark Hatle2021-11-154-0/+0
| | | | | | | | | | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> (cherry picked from commit eef9f49887e2471768b649450a0769859fd63ba5) Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* | Move from 2021.2 to 2022.1Mark Hatle2022-05-024-0/+59
| | | | | | | | | | | | | | | | | | | | Rename recipes from 2021.2 to 2022.1 as necessary. Move internal references to 2022.1 (layer.conf and local.conf.sample) Move kernel to 2022.1 branch, as well as various kernel modules. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* | embeddedsw: Update fsbl image nameSandeep Gundlupet Raju2022-03-282-2/+2
| | | | | | | | | | | | | | | | Update FSBL_IMAGE_NAME to align with expected file name to be fsbl-${MACHINE}. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* | pmufw: Fix dependency variable typoMark Hatle2022-02-041-1/+1
| | | | | | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* | embeddedsw: Update to skip checks in eSDK build/installMark Hatle2022-02-044-12/+49
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | embeddedsw: Rework the embeddedsw copy firmware recipesMark Hatle2022-01-2310-3/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fsbl, plmfw, pufw, and psmfw are reworked to provide earlier error messages, and better handle multiconfig builds. Also adjust MACHINE specific changes to use .* for compatibility based on the SOC_FAMILY override. The system doesn't always set the SOC_FAMILY as COMPATIBLE_MACHINE, so this avoids an error of incompatible machine. Align all of the expected firmware filenames to be <firmware>-${MACHINE}. The user can override as necessary. The license moves to CLOSED as we don't know the license of the software being provided by the user or other dependencies. It'll be up to the user to reconcile it. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* | Move away from PACKAGE_ARCH = "BOARD_ARCH" or "BOARDVARIANT_ARCH"Mark Hatle2022-01-144-12/+4
|/ | | | | | | 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>
* Convert to new override syntaxSai Hari Chandana Kalluri2021-09-286-12/+12
| | | | | | | | | | This is the result of automated script (0.9.0) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* meta-xilinx-standalone: Sync standalone to latest embeddedswMark Hatle2021-09-286-133/+128
| | | | | | | | | | | | The latest embeddedsw components no longer need integration workarounds, other then the couple of patches being applied. This simplifies eliminates the custom do_configure, and simplifies the do_compile. EXTRA_COMPILER_FLAGS is now different then the default version. The versal defaults were also adjusted to match the expected output. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* fsbl/plm/pmu/psm firmware: Adjust package archMark Hatle2021-09-284-0/+16
| | | | | | | | Different boards may configure their firmwares differently. One such example is ZU67DR RFSoC which requires libmetal libraries in some configurtions. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* fsbl-firmware: Update to match current configurationMark Hatle2021-09-271-3/+5
| | | | | | | The fsbl has been renamed to fsbl-firmware, and some adjustments to the build method are required to match how standalone and xsct version work. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Update recipe names to 2012.2 from 2021.1Sai Hari Chandana Kalluri2021-09-274-0/+0
| | | | Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* Update recipe names from 2020.2 to 2021.1Sai Hari Chandana Kalluri2021-07-144-0/+0
| | | | Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* fsb/plm/pmu/psm: Fix standalone buildMark Hatle2021-07-1410-30/+14
| | | | | | | | | | | Issue: CR-1087560 git version no longer requires most patches, so clear these. bin generation was not working consistently for standalone (not xsct) build, correct this behavior. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* embeddedsw: Keep parallel builds disabled, but change to -j1Mark Hatle2021-07-143-3/+3
| | | | | | | WHen processing for cmake, PARLLEL_MAKE is processed by a python chunk and if empty returns 'None', instead of 1. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* embeddedsw: Make it easy to change the output name of the elf binaryMark Hatle2021-07-143-6/+12
| | | | | | | | Issue: ER-6946 Different workflows may require a slightly different name. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Various: Fix eSDK hash changesMark Hatle2021-07-143-5/+8
| | | | | | | | | | | | The various *fw.bb Linux recipes need to exclude the PLM_DEPLOY_DIR from hash calculations. This location can change, but the actual value does not matter. Move plm-firmware, psm-firmware, pmu-firmware to use IMAGE_VERSION_SUFFIX (and the associate image-artifact-names class) by default. This matches how modern deployed components should work. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* fsbl/fsbl-firmware: Split the packaging and building of the fsblMark Hatle2021-07-144-0/+331
| | | | | | | | | | | | | | | | | | | | | Following the example of the psm, pmu and plm, we split the FSBL into both a packaging component (fsbl) and the build of the firmware (fsbl-firmware). This also adds an additional multilib, fsbl-fw, that is used to handle the multiconfig version, as the Linux and baremetal builds are done differently. Typical build approach is: Add to local.conf: BBMULTICONFIG += "fsbl-fw" then build using: MACHINE=zynqmp-generic bitbake fsbl Note, while 'zynq' is implemented, it does not currently function. To build the fsbl for zynq, you must use the meta-xilinx-tools version. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* embeddedsw; Fixups for missed plm and psm issuesMark Hatle2021-07-144-8/+18
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>