summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone
Commit message (Collapse)AuthorAgeFilesLines
...
* Define COMPATIBLE_HOST to prevent mix of Linux and Baremetal recipesMark Hatle2020-03-2611-0/+27
| | | | | | | | | | | | | | | The key is using COMPATIBLE_HOST to declare, for each recipe, which OS they are compatible with. This is a regex, so we need to carefully specify the arch/vendor wild cardscomponents so that we match only the OS parts. In the distro configuration, default to the standard Linux HOST_SYS setting. In the various baremetal recipes (or esw class) set the specific compatibility to allow baremetal recipes to build. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Revert "xlnx-compatible-os.bbclass: Class to allow recipes to list OS ↵Mark Hatle2020-03-2612-38/+0
| | | | | | | | compatibility" This reverts commit 4f3edb6da405ffff957d6f194bc7db7bdd9f1463. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* external-hdf.bbappend: move to meta-xilinx-tools layerSai Hari Chandana Kalluri2020-03-251-1/+0
| | | | | | Move to meta-xilinx-tools layer and combine with original recipe Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* esw.bbclass: Change 'or' to 'and' to verify EXTERNALSRC is definedMark Hatle2020-03-251-1/+1
| | | | | | | | | | | | | Issue: CR-1059154 If the externalsrc is enabled, but EXTERNALSRC is not defined this is and invalid configuration. (The externalsrc class already looks for this and errors.) Doing this will ensure that EXTERNALSRC is always defined and we'll avoid any errors related to 'None' values. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone esw.bbclass: Allow SRCREV and SRC_URI to be overwrittenMark Hatle2020-03-251-2/+7
| | | | | | | | | | | | The default values will match publically available sources, but may not work for internal development purposes. Allow the user to override the defaults with "ESW_SRCREV" and "ESW_SRC_URI". By doing it this way, the individual recipes that use the esw class, and their bbappends can specify additional SRCREV/SRC_URI information in the standard way. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Rename plm_git.bb to plm-standalong_git.bbMark Hatle2020-03-251-0/+0
| | | | | | | | | | Issue: CR-1058773 There is already a plm_git contained within the meta-xilinx-tools repository. We need to disambiguate the standalone (buildable) version while both will still exist. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* esw.bbclass: Only work with xilinx-standalone distroMark Hatle2020-03-241-0/+3
| | | | | | | | | | | | | | | | Issue: CR-1058773 There are two versions of the plm recipe. One that works with the traditional Linux based build (basically includes a prebuilt version) and one that is built from source using the standalone configuration. There is currently no way to say a recipe is only supported when used with a particular distribution, so we add code to the esw class that makes it only usable with xilinx-standalone and xilinx-standalone-lto. In the future, we may change the way this is done. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* xilinx-standalone.conf: Add workaround for microblaze -Os bugMark Hatle2020-03-201-0/+3
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: classes: esw: Update ESW_CFLAGS with spec fileMubin Usman Sayyed2020-03-181-0/+5
| | | | | | | | | | | | | | This is being done to avoid using unwanted startup files from newlib. Alll esw ARM processor machines are using their own crt0 implementation, and microblaze based machines are using all startup files from newlib. Signed-off-by: Mubin Usman Sayyed <mubin.usman.sayyed@xilinx.com> Rebase patch to avoid machine specific overrides, make this arch specific instead. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: Add support for zynqMubin Usman Sayyed2020-03-182-0/+7
| | | | | | | | | | | Updated COMPATIBLE_MACHINE, DTBFILE, XSCTH_PROC and some other variables related to CMAKE build system. Signed-off-by: Mubin Usman Sayyed <mubin.usman.sayyed@xilinx.com> Rebase for updated esw/compatible machine changes. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* esw.bbclass: Move DTBFILE to a single definitionMark Hatle2020-03-181-6/+1
| | | | | | | | | The DTBFILE defintions were each the same, and specified only on a per machine basis. Moving to a default will allow this to work with an arbitrary number of macines, and also allow a machinet override the value if necessary. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Revise COMPATIBLE_MACHINE settingsMark Hatle2020-03-176-25/+7
| | | | | | | | | | | Change the compatible machine so that everything is compatible with the esw software. Then select specific recipes that have more precise compatibility requirements. The COMPATIBLE_MACHINE is a regex, so we can use this to select zynqmp, microblaze or other components as necessary. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* esw.bbclass: Adjust get_xlnx_cmake_process to use both tune and machineMark Hatle2020-03-171-12/+14
| | | | | | | | | Using just machine requires us to list all possible machines, which really isn't sustainable long term. Instead we want to look at the tune and translate that to the xlnx cmake specific value. In some microblaze instances we want to use also use the machine to select custom variants. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-libraries: xilloader: Update depends listAppana Durga Kedareswara rao2020-03-171-1/+1
| | | | | | | | with the recent updates on xilloader library it has dependency on xilpuf library update the depends list for the same. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-libraries: Fix workaroundsAppana Durga Kedareswara rao2020-03-172-9/+3
| | | | | | | | | | | There is an issue of circular dependency in xilpm and xilplmi libraries which got fixed now in the esw repo. Since the circular dependency issue got resolved, This patch removes the workarounds from the xilpm and xilplmi recipes. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-libraries: Add recipe for xilpufAppana Durga Kedareswara rao2020-03-171-0/+6
| | | | | | | This recipe compiles the xilpuf library Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* microblaze_dtb.py: Move to scripts subdirMark Hatle2020-03-171-0/+0
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-libraries: Update depends list for socket modeAppana Durga Kedareswara rao2020-03-171-0/+1
| | | | | | | | This recipe updates the depends list to add support for compiling socket mode applications. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: freertos-lwip-udp-perf-server: ↵Appana Durga Kedareswara rao2020-03-171-0/+41
| | | | | | | | | Add recipe for compiling freertos lwip udp perf server application This recipe compiles the freertos lwip udp perf server application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: freertos-lwip-udp-perf-client: ↵Appana Durga Kedareswara rao2020-03-171-0/+41
| | | | | | | | | Add recipe for compiling freertos lwip udp perf client application This recipe compiles the freertos lwip udp perf client application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: freertos-lwip-tcp-perf-server: ↵Appana Durga Kedareswara rao2020-03-171-0/+41
| | | | | | | | | Add recipe for compiling freertos lwip tcp perf server application This recipe compiles the freertos lwip tcp perf server application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: freertos-lwip-tcp-perf-client: ↵Appana Durga Kedareswara rao2020-03-171-0/+41
| | | | | | | | | Add recipe for compiling freertos lwip tcp perf client application This recipe compiles the freertos lwip tcp perf client application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: freertos-lwip-echo-server: Add ↵Appana Durga Kedareswara rao2020-03-171-0/+41
| | | | | | | | | recipe for compiling freertos lwip echo server application This recipe compiles the freertos lwip echo server application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: lwip-udp-perf-client: Add ↵Appana Durga Kedareswara rao2020-03-171-0/+41
| | | | | | | | | recipe for compiling lwip udp perf client application This recipe compiles the lwip udp perf client application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: lwip-udp-perf-server: Add ↵Appana Durga Kedareswara rao2020-03-171-0/+41
| | | | | | | | | recipe for compiling lwip udp perf server application This recipe compiles the lwip udp perf server application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: lwip-tcp-perf-server: Add ↵Appana Durga Kedareswara rao2020-03-171-0/+41
| | | | | | | | | recipe for compiling lwip tcp perf server application This recipe compiles the lwip tcp perf server application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: lwip-tcp-perf-client: Add ↵Appana Durga Kedareswara rao2020-03-171-0/+41
| | | | | | | | | recipe for compiling lwip tcp perf client application This recipe compiles the lwip tcp perf client application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: freertos-hello-world: Add ↵Anirudha Sarangi2020-03-161-0/+33
| | | | | | | | | | recipe for freertos hello world This recipe compiles the freertos hello world application, Signed-off-by: Anirudha Sarangi <anirudha.sarangi@xilinx.com> Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-libraries: Add recipe for freertosAnirudha Sarangi2020-03-161-0/+12
| | | | | | | | This recipe compiles the freertos bsp. Signed-off-by: Anirudha Sarangi <anirudha.sarangi@xilinx.com> Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: classes: Update CMAKE_SYSTEM_NAME for FreertosAnirudha Sarangi2020-03-162-2/+3
| | | | | | | | This patch updates the CMAKE_SYSTEM_NAME variable for freertos. Signed-off-by: Anirudha Sarangi <anirudha.sarangi@xilinx.com> Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: conf: distro: Add new distro for freertosAnirudha Sarangi2020-03-161-0/+8
| | | | | | | | | This patch adds new distro xilinx-freertos for compiling esw freertos use cases in yocto flow. Signed-off-by: Anirudha Sarangi <anirudha.sarangi@xilinx.com> Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* microblaze_dtb.py: Convert a dtb to one or more microblaze TUNE_FEATURESMark Hatle2020-03-091-0/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because the microblaze is adjustable on the FPGA, we need a way for the system to adjust the TUNE_FEATURES for a given build. The device tree can specify the capabilities of the microblaze implementations defined in a specific design. If present, these can then be processed to provide a set of TUNE_FEATURES for each declared microblaze CPU. The output of the tool is formated in a way that it can be directly included in the user's local.conf, or placed in a file that is included by a machine or other file. The user will only have to declare the DEFAULTTUNE value that matches one of the generated tunes. General rules that are implemented: TUNE_FEATURE CONDITION ------------ ------------------------------- microblaze (all microblaze cpus) bigendian xlnx,endianness is not 1 64-bit xlnx,data-size is 64 barrel-shift xlnx,use-barrel is 1 pattern-compare xlnx,use-pcmp-instr is 1 reorder xlnx,use-reorder-instr is not 0 frequency-optimized xlnx,area-optimized is 2 multiply-low xlnx,use-hw-mul is 1 multiple-high xlnx,use-hw-mul is 2 divide-hard xlnx,use-div is 1 fpu-soft xlnx,use-fpu is not 1 or 2 fpu-hard xlnx,use-fpu is 1 fpu-hard-extended xlnx,use-fpu is 2 vX.YY model value of X.YY[.Z] Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* README.md: Add information about the new embeddedsw supportMark Hatle2020-03-091-1/+8
| | | | | | | Embeddedsw support is still in early proof of concept phase, so we want to make sure any users know this. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* README.md: revise README.md basedMark Hatle2020-03-091-8/+7
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: Add support for versal cortexr5 processorAppana Durga Kedareswara rao2020-03-062-0/+4
| | | | | | | | | This patch updates the COMPATIBLE_MACHINE and DTBFILE variables to compile esw use cases for cortexr5 processor on versal platform. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-applications: lwip-echo-server: Add recipe ↵Appana Durga Kedareswara rao2020-03-031-0/+41
| | | | | | | | | for compiling lwip echo server application This recipe compiles the lwip echo server application. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-libraries: lwip: Add recipe for lwipAppana Durga Kedareswara rao2020-03-031-0/+22
| | | | | | | This recipe compiles the lwip library. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: recipes-libraries: xiltimer: Add task for generating ↵Appana Durga Kedareswara rao2020-03-031-1/+7
| | | | | | | | | | | | | | | | | | | | | | | cmake meta-data In the esw repo xiltimer library provides the abstarct API's for the timing implementation like sleep routines, tick handler etc... These wrapper API's has dependency on the h/w component drivers like axi_timer, ttcps to provide the required funcationality. In order to support these h/w dependencies there is a lib_paraser.py script in the esw repo which parses the dtb and generates the required config data in the form of cmake. The generated cmake file will be consumed by the library to support below features 1) To show list of available timer instances in the cmake-gui 2) Source code management based on the Timer instance available. This patch updates the recipe to call the lib_parser.py before do_configure. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: Add dependencies on python3-dtc-nativeAppana Durga Kedareswara rao2020-03-031-1/+1
| | | | | Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* xilinx-standalone.inc: Replace qemu dependency with mingw32 specific recipeMark Hatle2020-03-031-1/+2
| | | | | | | | | | | Commit fb62f071f94fc45444357865665fec6d4b11d1ca added a workaround for a mingw runtime issue, but did not label it as mingw32 specific. QEMU may cause failures in some non-linux configurations. Make this option mingw32 specific, and also avoid qemu making the dependency on the missing mingw32 component explicit. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* xilinx-standalone: sync distrosMark Hatle2020-03-032-8/+8
| | | | | | | | Both xilinx-standalone (w/ lto) and xilinx-standalone-nolto need to use a common set of system settings. A few settings were missed in the merge of the decoupling work. Move these to the common settings file. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Correcting ':' placement for appending file pathsJaewon Lee2020-03-031-1/+1
| | | | | | | | | When appending file paths the ':' should be at the beginning of the path. The patched appending lines were still working because there was no paths added after the '__default:' Fixing typo to ensure no breakages later Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
* meta-xilinx-standalone/device-tree: remove duplicate internal referencesMark Hatle2020-02-271-16/+4
| | | | | | Some of the components have been moved to internal configuration layers Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-xilinx-standalone: Add dependencies on python3-dtcMark Hatle2020-02-273-3/+5
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Remove hardcoded XILINX_RELEASE_VERSION in recipesMark Hatle2020-02-274-5/+0
| | | | | | | XILINX_RELEASE_VERSION is defined by the layer.conf, so we can and should use the version defined there. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* xlnx-compatible-os.bbclass: Class to allow recipes to list OS compatibilityMark Hatle2020-02-2714-1/+48
| | | | | | | | | | | | | | | | | | Following the example of base.bbclass in OE-Core, a new COMPATIBLE_OS variable is defined. Similar to COMPATIBLE_MACHINE, it is a regex that can be used to declare TARGET_OS string compatibility on a per-recipe basis. Either the distro configuration or the recipes themselves will need to inherit this class. By default the class assumes we're building a Linux based system, and thus any recipe who has not declared compatibility is compatible with Linux. The default compatible field was copied from bitbake.conf to ensure there are no surprised. Additionally, enable the usage of this class throughout meta-xilinx-standalone layer. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Ensure that bbappends do not affect task hashesMark Hatle2020-02-273-7/+8
| | | | | | | | When the xilinx-standalone distribution is not enabled, we need to make sure that we do not affect various task hashes. This conforms to the Yocto Project Compliance requirements. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* newlib: Cleanup and merge the two newlib bbappends into a single appendMark Hatle2020-02-274-19/+15
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* newlib: Move microblaze supportMark Hatle2020-02-2713-2596/+0
| | | | | | | | | meta-xilinx-standalone is only for baremetal work. Theoretically the newlib items can be used on other configurations, so move the microblaze newlib/libgloss work into meta-xilinx-bsp. This mirrors how other microblaze specific work has been handled. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* xilinx-standalone: When building for cortexr5, add -DARMR5 for CCARGSMark Hatle2020-02-271-0/+3
| | | | | | | | The embeddedsw expects -DARMR5 when building for a cortexr5. Enable this globally within the distribution configuration. This ensures that the tunings remain generic. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>