Downloading Xilinx Yocto layers without git-repo

Edit the GIT_TAG and GIT_TAG_PATCHED variables as required.

#!/bin/bash
GIT_CMD="git clone --recurse-submodules --progress -c advice.detachedHead=false"
GIT_URL=https://github.com/Xilinx
GIT_TAG="-b xlnx-rel-v2022.1"
GIT_TAG_PATCHED="-b xlnx-rel-v2022.1_update2"
declare -A url=(
    [meta-browser]="{GIT_CMD}{GIT_TAG} {GIT_URL}/meta-browser"
    [meta-clang]="{GIT_CMD} {GIT_TAG}{GIT_URL}/meta-clang"
    [meta-jupyter]="{GIT_CMD}{GIT_TAG} {GIT_URL}/meta-jupyter"
    [meta-mingw]="{GIT_CMD} {GIT_TAG}{GIT_URL}/meta-mingw"
    [meta-openamp]="{GIT_CMD}{GIT_TAG} {GIT_URL}/meta-openamp"
    [meta-openembedded]="{GIT_CMD} {GIT_TAG}{GIT_URL}/meta-openembedded"
    [meta-petalinux]="{GIT_CMD}{GIT_TAG} {GIT_URL}/meta-petalinux"
    [meta-python2]="{GIT_CMD} {GIT_TAG}{GIT_URL}/meta-python2"
    [meta-qt5]="{GIT_CMD}{GIT_TAG} {GIT_URL}/meta-qt5"
    [meta-som]="{GIT_CMD} {GIT_TAG}{GIT_URL}/meta-som"
    [meta-security]="{GIT_CMD}{GIT_TAG} {GIT_URL}/meta-security"
    [meta-som]="{GIT_CMD} {GIT_TAG}{GIT_URL}/meta-som"
    [meta-virtualization]="{GIT_CMD}{GIT_TAG} {GIT_URL}/meta-virtualization"
    [meta-xilinx]="{GIT_CMD} {GIT_TAG}{GIT_URL}/meta-xilinx"
    [poky]="{GIT_CMD}{GIT_TAG} {GIT_URL}/poky"
    [yocto-manifests]="{GIT_CMD} {GIT_TAG}{GIT_URL}/yocto-manifests"
    [yocto-scripts]="{GIT_CMD}{GIT_TAG} {GIT_URL}/yocto-scripts"
    [meta-ros]="{GIT_CMD} {GIT_TAG_PATCHED}{GIT_URL}/meta-ros"
    [meta-xilinx-tsn]="{GIT_CMD}{GIT_TAG_PATCHED} {GIT_URL}/meta-xilinx-tsn"
    [meta-vitis]="{GIT_CMD} {GIT_TAG}{GIT_URL}/meta-vitis"
)

for key value in {(kv)url}; do
    eval "value"
done

Leave a Reply

Your email address will not be published. Required fields are marked *