summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp/classes
Commit message (Collapse)AuthorAgeFilesLines
* Initial restructure/split of meta-xilinx-bspMark Hatle2022-01-149-284/+0
| | | | | | | | | | 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>
* fpgamanager_custom: Moved from meta-xilinx-toolsMark Hatle2022-01-141-0/+85
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Convert to new override syntaxSai Hari Chandana Kalluri2021-09-285-10/+10
| | | | | | | | | | 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>
* image-types-xilinx-qemu.bbclass: resize qemu-sd image to 256MSai Hari Chandana Kalluri2021-09-281-1/+1
| | | | | | | | | | | | | | | | resize qemu-sd image to 256M to avoid the following error during qemuboot: runqemu - ERROR - Failed to run qemu: QEMU APU instance failed: Unexpected error in sd_realize() at qemu-xilinx-system-native/v5.1.0-xilinx-v2021.2+gitAUTOINC+f9099ec0c9-r0/git/hw/sd/sd.c:2382: qemu-system-aarch64: Invalid SD card size: 271 MiB SD card size has to be a power of 2, e.g. 512 MiB. You can resize disk images with 'qemu-img resize <imagefile> <new-size>' (note that this will lose data if you make the image smaller than it currently is). CR-1104112 Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* kernel-simpleimage.bbclass: Use proper variable to get the kernel image.Ashwini Lomate2021-09-281-2/+2
| | | | | | | This patch will use proper variable to get kernel image Signed-off-by: Ashwini Lomate <ashwini.lomate@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* zcu102-zynqmp.conf: Fix qemuboot for zcu102-zynqmpSai Hari Chandana Kalluri2020-12-221-3/+3
| | | | | | Fix machine name being passed to zcu102-zynqmp qemu boot arg. Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* qemuboot-xilinx: Allow machine to override defaultsMark Hatle2020-08-141-3/+6
| | | | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* Modified image-wic-utils to strip whitespace from entries in IMAGE_BOOT_FILES.Toby Gomersall2020-08-111-2/+2
|
* qemuboot-xilinx.bbclass: Remove the subdir added to the qemu target pathSai Hari Chandana Kalluri2020-03-171-4/+0
| | | | | | | | Remove the variable QB_SYSTEM_NAME inside qemuboot-xilinx class as it no longer is needed to include the subdir for the qemu target path. All targets are now moved to bindir and not present in bindir/qemu-xilinx. Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* zc702-zynq7: Add qemu wiring for zc702 machineSai Hari Chandana Kalluri2020-03-171-1/+2
| | | | | | | Enable qemuboot for zc702-zynq7 machine using qemu-xilinx provider Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Create new baremetal toolchain machinesMark Hatle2020-01-311-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Baremetal toolchain machines are specific to creating a very specific Xilinx multilib toolchain configuration. These are not expected to be functional MACHINE parameters for anything except SDK building. The expected usage is: MACHINE=<value> DISTRO=xilinx-standalone bitbake meta-toolchain Add aarch32-tc Multilibs: base: (none) arm/v5te/softfp: -marm -march=armv5te+fp -mfloat-abi=softfp arm/v5te/hard: -marm -march=armv5te+fp -mfloat-abi=hard thumb/nofp: -mthumb -mfloat-abi=soft thumb/v7/nofp: -mthumb -march=armv7 -mfloat-abi=soft thumb/v7+fp/softfp: -mthumb -march=armv7+fp -mfloat-abi=softfp thumb/v7+fp/hard: -mthumb -march=armv7+fp -mfloat-abi=hard thumb/v7-a/nofp: -mthumb -march=armv7-a -mfloat-abi=soft thumb/v7-a+fp/softfp: -mthumb -march=armv7-a+fp -mfloat-abi=softfp thumb/v7-a+fp/hard: -mthumb -march=armv7-a+fp -mfloat-abi=hard thumb/v7-a+simd/softfp: -mthumb -march=armv7-a+simd -mfloat-abi=softfp thumb/v7-a+simd/hard: -mthumb -march=armv7-a+simd -mfloat-abi=hard thumb/v7ve+simd/softfp: -mthumb -march=armv7ve+simd -mfloat-abi=softfp thumb/v7ve+simd/hard: -mthumb -march=armv7ve+simd -mfloat-abi=hard thumb/v8-a/nofp: -mthumb -march=armv8-a -mfloat-abi=soft thumb/v8-a+simd/softfp: -mthumb -march=armv8-a+simd -mfloat-abi=softfp thumb/v8-a+simd/hard: -mthumb -march=armv8-a+simd -mfloat-abi=hard Add aarch64-tc Multilibs: Base: (none) ilp32: -mabi=ilp32 - ilp32 requires a custom machine dict - Add xlnx-standalone.bbclass - Enable with PACKAGEQA_EXTRA_MACHDEFFUNCS Add arm-rm-tc Multilibs: Base: (none) arm/v5te/softfp: -marm -march=armv5te+fp -mfloat-abi=softfp arm/v5te/hard: -marm -march=armv5te+fp -mfloat-abi=hard thumb/nofp: -mthumb -mfloat-abi=soft thumb/v7/nofp: -mthumb -march=armv7 -mfloat-abi=soft thumb/v7+fp/softfp: -mthumb -march=armv7+fp -mfloat-abi=softfp thumb/v7+fp/hard: -mthumb -march=armv7+fp -mfloat-abi=hard thumb/v6-m/nofp: -mthumb -march=armv6s-m -mfloat-abi=soft thumb/v7-m/nofp: -mthumb -march=armv7-m -mfloat-abi=soft thumb/v7e-m/nofp: -mthumb -march=armv7e-m -mfloat-abi=soft thumb/v7e-m+fp/softfp: -mthumb -march=armv7e-m+fp -mfloat-abi=softfp thumb/v7e-m+fp/hard: -mthumb -march=armv7e-m+fp -mfloat-abi=hard thumb/v7e-m+dp/softfp: -mthumb -march=armv7e-m+fp.dp -mfloat-abi=softfp thumb/v7e-m+dp/hard: -mthumb -march=armv7e-m+fp.dp -mfloat-abi=hard thumb/v8-m.base/nofp: -mthumb -march=armv8-m.base -mfloat-abi=soft thumb/v8-m.main/nofp: -mthumb -march=armv8-m.main -mfloat-abi=soft thumb/v8-m.main+fp/softfp: -mthumb -march=armv8-m.main+fp -mfloat-abi=softfp thumb/v8-m.main+fp/hard: -mthumb -march=armv8-m.main+fp -mfloat-abi=hard thumb/v8-m.main+dp/softfp: -mthumb -march=armv8-m.main+fp.dp -mfloat-abi=softfp thumb/v8-m.main+dp/hard: -mthumb -march=armv8-m.main+fp.dp -mfloat-abi=hard Add microblaze-tc Multilibs: base: (none) bs: -mxl-barrel-shift le: -mlittle-endian m: -mno-xl-soft-mul m/mh: -mno-xl-soft-mul -mxl-multiply-high le/m: -mlittle-endian -mno-xl-soft-mul le/m/mh: -mlittle-endian -mno-xl-soft-mul -mxl-multiply-high bs/le: -mxl-barrel-shift -mlittle-endian bs/m: -mxl-barrel-shift -mno-xl-soft-mul bs/m/mh: -mxl-barrel-shift -mno-xl-soft-mul -mxl-multiply-high bs/le/m: -mxl-barrel-shift -mlittle-endian -mno-xl-soft-mul bs/le/m/mh: -mxl-barrel-shift -mlittle-endian -mno-xl-soft-mul -mxl-multiply-high m64/le: -m64 -mlittle-endian m64/le/m: -m64 -mlittle-endian -mno-xl-soft-mul m64/le/m/mh: -m64 -mlittle-endian -mno-xl-soft-mul -mxl-multiply-high m64/bs/le: -m64 -mxl-barrel-shift -mlittle-endian m64/bs/le/m: -m64 -mxl-barrel-shift -mlittle-endian -mno-xl-soft-mul m64/bs/le/m/mh: -m64 -mxl-barrel-shift -mlittle-endian -mno-xl-soft-mul -mxl-multiply-high - 64-bit MicroBlaze requires a custom machine dict - Add xlnx-standalone.bbclass - Enable with PACKAGEQA_EXTRA_MACHDEFFUNCS Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit. Date: Thu Jan 30 12:17:59 2020 -0800 On branch multilib-baremetal Your branch is ahead of 'xilinx/master-next' by 2 commits. (use "git push" to publish your local commits) Changes to be committed:
* image-types-xilinx-qemu.bbclass: Add sector size as 512KManjukumar Matha2019-12-091-3/+3
| | | | | | | Add sector size as 512K for larger SD, this is according to specifications Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* kernel-simpleimage.bbclass: Fix do_prep_simpleimage `[[: not found`Michael Monaghan2019-08-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While developing a custom MicroBlaze machine configuration with meta-xilinx-bsp, the linux-xlnx recipe would fail when configured to use the “simpleImage.devicetree-name” kernel image type. Though the do_prep_simpleimage task does not fail, messages were left in the log indicating the “[[“ bash extension could not be found. DEBUG: Executing shell function do_prep_simpleimage temp/run.do_prep_simpleimage.66740: [[: not found DEBUG: Shell function do_prep_simpleimage finished The two offending lines are in kernel-simpleimage.bbclass. Here's one of them for reference. if [[ "${type}" =~ "simpleImage" ]] && [ ${ARCH} = "microblaze" ]; then The problem is that “[[“ will return -1 since the extension is not found and the if statement will simply interpret the error as false causing the task to continue, even if the image type was "simpleImage"! Testing was done using the official crops/poky docker image. The crops/poky system shell was confirmed to include the “[[“ extension however, it appears that the extension is disabled within the recipe shell scripts. In addition, "[[" does not appear to be used by any openembedded-core recipes so I made this patch to convert the two instances of "[[" to "[". The patch was created for master, but the problem appears to exist on all branches of meta-xilinx. Signed-off-by: Michael Monaghan <michael.l.monaghan@nasa.gov> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* kernel-simpleimage.bbclass: Deploy simpleImage stripManjukumar Matha2019-06-281-0/+2
| | | | | | | Deploy simpleImage strip file generated during kernel build of simpleImage elf. Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* kernel-simpleimage.bbclass: Deploy simpleImage unstrip fileManjukumar Matha2019-06-281-0/+10
| | | | | | | While using JTAG flow to boot MB machines, you need an elf file. Deploy simpleImage unstrip file which can be used for JTAG flow Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* kernel-simpleimage.bbclass: Use dts for simpleImage generation for MicroblazeManjukumar Matha2019-06-281-1/+2
| | | | | | | | Use dts for SimpleImage generation for Microblaze. This patch fixes the issue of not able to boot because dtb was used for SimpleImage generation. Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* xilinx-testimage.bbclass: Include IMAGE_AUTOLOGIN and IMAGE_FSTYPES values ↵Sai Hari Chandana Kalluri2019-06-281-0/+2
| | | | | | | | | | | | | | | | | for runqemu By default petalinux image on boot auto log's in, however testimage Yocto framework requires the image to reach login banner and not auto login. The user can disable autologin by setting IMAGE_AUTOLOGIN = 0 in local.conf file. Similarly, for testimage to work the IMAGE_FSTYE = "wic.qemu-sd" which again needs to be set in local.conf. By adding these variables inside xilinx-testimage class, eliminate the need from user to set these variables to correctly use testimage. Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* linux-xlnx.inc: Add support for simpleImageManjukumar Matha2019-01-011-0/+22
| | | | | | Add a new class to enable build simpleImage. Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* xilinx-testimage.bbclass: Create xilinx testimage bbclassSai Hari Chandana Kalluri2019-01-011-0/+9
| | | | | | | | | | | | The testimage class from core does not support wic.qemu-sd as fstype hence incorrect arguments are passed when launching qemu instances with *.wic.qemu-sd as rootfs. This patch creates a custom testimage bbclass specific to xilinx to support wic.qemu-sd fstypes and ensure right arguments are passed. Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* u-boot-zynq-uenv.bb: Handle IMAGE_BOOT_FILES wildcard patternsNathan Rossi2019-01-011-0/+51
| | | | | | | | | | | | | Handle IMAGE_BOOT_FILES having wildcard patterns for dtbs. This requires that the recipe depend on the deployment of the dtbs in order for the correct file names to be expanded. This change also improves the parsing of the IMAGE_BOOT_FILES variable and splits out the python functions for doing this into a separate image-wic-utils.bbclass file. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* zynqmp-pmu: Remove class that uses a multilib hack to build standalone ↵Alejandro Enedino Hernandez Samaniego2019-01-011-122/+0
| | | | | | | | | | | | components The zynqmp-pmu class was being used to build standalone components (PMU) for several devices, with the introduction of the meta-xilinx-standalone layer and the xilinx-standalone distro, this is not necessary anymore. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* meta-xilinx: Restructuring meta-xilinx to support multiple layersManjukumar Matha2017-12-135-0/+208
As discussed previously on mailing list, we are proceeding with layer restructuring. For rocko release we will have the following layers meta-xilinx ->meta-xilinx-bsp (current meta-xilinx) ->meta-xilinx-contrib In the subsequent releases we will add other layers from Xilinx meta-xilinx ->meta-xilinx-bsp (current meta-xilinx) ->meta-petalinux ->meta-xilinx-tools ->meta-xilinx-contrib This will provide one clone to get all the required meta layers from Xilinx for a complete solution, and the users can blacklist any layer which they don't want to use using bblayer.conf. This will enables us to help our vendors/partners to add their reference designs, board definitions etc. Recipe changes : * Move reference design zybo-linux-bd.bb to meta-xilinx-contrib * Move kernel patches realted to zybo-linux-bd-zynq7 board to meta-xilinx-contrib * Update README Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>