![]() ![]() home/devlab/yocto/poky/build/sdk/environment-setup-cortexa7t2hf-neon-vfpv4-poky-linux-gnueabiĪs you can see above build/sdk/environment-setup-cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi script is requested to be sourced to your environment since it contain all environment variables auto generated based on your installation of toolchain/sdk. SDK has been successfully set up and is ready to be used.Įach time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g. #Yocto linux ffmpeg installYou are about to install the SDK to "/home/devlab/yocto/poky/build/sdk". Poky (Yocto Project Reference Distro) SDK installer version 2.6.2Įnter target directory for SDK (default: /opt/poky/2.6.2): sdk tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-cortexa7t2hf-neon-vfpv4-toolchain-2.6.2.sh We used directory name “sdk” hence the toolchain will be installed as “build/sdk” $. You can either choose the default location as shown below /opt/poky/2.6.2 or override by typing some directory name, which will be created in current working directory i.e. When we want to install this toolchain, use below command or steps for installation. Tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-cortexa7t2hf-neon-vfpv4-toolchain-2.6.2.sh Once the compilation is done successfully, you will see a script generated at build/tmp/deploy/sdk as, $ ls -l tmp/deploy/sdk/ The compilation of toolchain will take some time and its a heavy compilation which might make your development machine unresponsive based on your RAM size, you just have an option to wait, nothing else ? home/myuser/workspace/openembedded-core \ #Yocto linux ffmpeg updateUpdate nf to add openembedded-core layer which contains recipes for compiling toolchain $ vim conf/nf BBLAYERS ?= " \ Toolchain can be build using meta-toolchain recipe which is part of “openembedded-core” meta layer, hence we will have to first add that layer as, $ git clone git:///openembedded-core $ cd openembedded-core/ $ git checkout -b thud origin/thud $ cd poky $ source oe-init-build-env ![]() #Yocto linux ffmpeg fullconfigure -disable-shared -enable-static -disable-x86asm -prefix=/work1/liaocy/ffmpeg-4.2.This article assumes, you already have development environment setup for yocto, if not please read and setup as per “Building Yocto for Raspberry Pi / Creating Embedded Linux for RPi using Yocto”Īlong with recipes for building a compiler for its internal use, OpenEmbedded also has recipes to create a full toolchain / cross-compiler environment for the host. #export CPP="aarch64-poky-linux-gcc -E -mcpu=cortex-a53 crypto -mtune=cortex-a53 -sysroot=$SDKTARGETSYSROOT"Įxport CC="aarch64-poky-linux-gcc -sysroot=$SDKTARGETSYSROOT"Įxport CXX="aarch64-poky-linux-g -sysroot=$SDKTARGETSYSROOT"Įxport CPP="aarch64-poky-linux-gcc -sysroot=$SDKTARGETSYSROOT" #export CXX="aarch64-poky-linux-g -mcpu=cortex-a53 crypto -mtune=cortex-a53 -sysroot=$SDKTARGETSYSROOT" 修改 ffmpeg-4.2.2/tool_chains/environment-setup-aarch64-poky-linux ĬC/CXX/CPP 拿掉-mcpu=cortex-a53 crypto -mtune=cortex-a53 #export CC="aarch64-poky-linux-gcc -mcpu=cortex-a53 crypto -mtune=cortex-a53 -sysroot=$SDKTARGETSYSROOT" extra-cflags=" -O3 -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 " \ĥ. Source $TOP_DIR/tool_chains/environment-setup-aarch64-poky-linux The final step is to clean up the package directory. This can be done by running the make command followed by the make install command. The fourth step is to make the package and install it. The third step is to change into the package directory and run the. oecore-x86_64-aarch64-toolchain-nodistro.0.sh -yd /worktemp/ffmpeg-4.2.2/tool_chains This can be done by using the tar command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |