Last active
November 18, 2024 16:40
-
-
Save lesterlo/fd16e431f5f717f7414af825a62b1c71 to your computer and use it in GitHub Desktop.
Initialize my recommended Yocto structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git://git.yoctoproject.org/poky $1 | |
cd $1 | |
git checkout -t origin/scarthgap -b my-scarthgap | |
source ./oe-init-build-env | |
# Download required layer's files | |
git clone git://git.yoctoproject.org/meta-xilinx ../meta-xilinx -b scarthgap | |
git clone git://git.yoctoproject.org/meta-xilinx-tools ../meta-xilinx-tools -b scarthgap | |
git clone https://github.com/OpenAMP/meta-openamp.git ../meta-openamp -b scarthgap | |
git clone git://git.openembedded.org/meta-openembedded ../meta-openembedded -b scarthgap | |
git clone https://github.com/lesterlo/meta-zuboard.git ../meta-zuboard | |
# main xilinx tools (Order is important) | |
bitbake-layers add-layer ../meta-xilinx/meta-xilinx-core | |
bitbake-layers add-layer ../meta-xilinx/meta-xilinx-contrib | |
bitbake-layers add-layer ../meta-xilinx/meta-xilinx-standalone | |
bitbake-layers add-layer ../meta-xilinx/meta-microblaze | |
bitbake-layers add-layer ../meta-xilinx/meta-xilinx-bsp | |
bitbake-layers add-layer ../meta-xilinx/meta-xilinx-vendor | |
# xilinx tools | |
bitbake-layers add-layer ../meta-xilinx-tools | |
# open embedded | |
bitbake-layers add-layer ../meta-openembedded | |
bitbake-layers add-layer ../meta-openamp | |
# (Depends) ZUBoard config | |
bitbake-layers add-layer ../meta-zuboard | |
# Add new option to local.conf | |
sed -i '/MACHINE ??=/a IMAGE_FSTYPES:append=" wic"' conf/local.conf # Add the line IMAGE_FSTYPES:append=" wic" to conf/local.conf | |
sed -i '/MACHINE ??=/a BB_NUMBER_THREADS = "8"' conf/local.conf #limit the parallel build number | |
sed -i '/MACHINE ??=/a LICENSE_FLAGS_ACCEPTED += "xilinx"' conf/local.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment