当前位置:网站首页>完善的交叉编译环境记录 peta 生成的shell 脚本
完善的交叉编译环境记录 peta 生成的shell 脚本
2022-07-28 07:55:00 【洪大宇】
# Check for LD_LIBRARY_PATH being set, which can break SDK and generally is a bad practice
# http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80
# http://xahlee.info/UnixResource_dir/_/ldpath.html
# Only disable this check if you are absolutely know what you are doing!
if [ ! -z "$LD_LIBRARY_PATH" ]; then
echo "Your environment is misconfigured, you probably need to 'unset LD_LIBRARY_PATH'"
echo "but please check why this was set in the first place and that it's safe to unset."
echo "The SDK will not operate correctly in most cases when LD_LIBRARY_PATH is set."
echo "For more references see:"
echo " http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80"
echo " http://xahlee.info/UnixResource_dir/_/ldpath.html"
return 1
fi
export SDKTARGETSYSROOT=/opt/petalinux/2019.2/sysroots/cortexa9t2hf-neon-xilinx-linux-gnueabi
export PATH=/opt/petalinux/2019.2/sysroots/x86_64-petalinux-linux/usr/bin:/opt/petalinux/2019.2/sysroots/x86_64-petalinux-linux/usr/sbin:/opt/petalinux/2019.2/sysroots/x86_64-petalinux-linux/bin:/opt/petalinux/2019.2/sysroots/x86_64-petalinux-linux/sbin:/opt/petalinux/2019.2/sysroots/x86_64-petalinux-linux/usr/bin/../x86_64-petalinux-linux/bin:/opt/petalinux/2019.2/sysroots/x86_64-petalinux-linux/usr/bin/arm-xilinx-linux-gnueabi:/opt/petalinux/2019.2/sysroots/x86_64-petalinux-linux/usr/bin/arm-xilinx-linux-musl:$PATH
export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT
export PKG_CONFIG_PATH=$SDKTARGETSYSROOT/usr/lib/pkgconfig:$SDKTARGETSYSROOT/usr/share/pkgconfig
export CONFIG_SITE=/opt/petalinux/2019.2/site-config-cortexa9t2hf-neon-xilinx-linux-gnueabi
export OECORE_NATIVE_SYSROOT="/opt/petalinux/2019.2/sysroots/x86_64-petalinux-linux"
export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"
export OECORE_ACLOCAL_OPTS="-I /opt/petalinux/2019.2/sysroots/x86_64-petalinux-linux/usr/share/aclocal"
export OECORE_BASELIB="lib"
export OECORE_TARGET_ARCH="arm"
export OECORE_TARGET_OS="linux-gnueabi"
unset command_not_found_handle
export CC="arm-xilinx-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=$SDKTARGETSYSROOT"
export CXX="arm-xilinx-linux-gnueabi-g++ -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=$SDKTARGETSYSROOT"
export CPP="arm-xilinx-linux-gnueabi-gcc -E -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=$SDKTARGETSYSROOT"
export AS="arm-xilinx-linux-gnueabi-as "
export LD="arm-xilinx-linux-gnueabi-ld --sysroot=$SDKTARGETSYSROOT"
export GDB=arm-xilinx-linux-gnueabi-gdb
export STRIP=arm-xilinx-linux-gnueabi-strip
export RANLIB=arm-xilinx-linux-gnueabi-ranlib
export OBJCOPY=arm-xilinx-linux-gnueabi-objcopy
export OBJDUMP=arm-xilinx-linux-gnueabi-objdump
export AR=arm-xilinx-linux-gnueabi-ar
export NM=arm-xilinx-linux-gnueabi-nm
export M4=m4
export TARGET_PREFIX=arm-xilinx-linux-gnueabi-
export CONFIGURE_FLAGS="--target=arm-xilinx-linux-gnueabi --host=arm-xilinx-linux-gnueabi --build=x86_64-linux --with-libtool-sysroot=$SDKTARGETSYSROOT"
export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types "
export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types "
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
export CPPFLAGS=""
export KCFLAGS="--sysroot=$SDKTARGETSYSROOT"
export OECORE_DISTRO_VERSION="2019.2"
export OECORE_SDK_VERSION="2019.2"
export ARCH=arm
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
# Append environment subscripts
if [ -d "$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then
for envfile in $OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do
. $envfile
done
fi
if [ -d "$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then
for envfile in $OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do
. $envfile
done
fi
边栏推荐
- Div tags and span Tags
- No one wants to tell the truth about kubernetes secret
- Customer first | domestic Bi leader, smart software completes round C financing
- Redis basic knowledge, let's review it
- Uniapp ---- detailed steps to obtain the longitude and latitude of the current position and other information (including applet)
- 谷歌 Material Design 的文本框为什么没人用?
- What content does the new version of network security level protection evaluation report template contain? Where can I find it?
- Huid learning 7: Hudi and Flink integration
- Image batch processing | necessary skills
- Vk1620 temperature controller / smart meter LED digital display driver chip 3/4-wire interface with built-in RC oscillator to provide technical support
猜你喜欢

置顶各大平台,22版面试核心知识解析笔记,强势上榜

Alibaba internal interview materials

Shell programming specifications and variables

SQL server time field sorting

VS2015使用dumpbin 查看库的导出函数符号

Eight ways to solve EMC and EMI conducted interference
![[advanced drawing of single cell] 07. Display of KEGG enrichment results](/img/77/0a9006743734c1993785d087f957f0.png)
[advanced drawing of single cell] 07. Display of KEGG enrichment results

The five pictures tell you: why is there such a big gap between people in the workplace?
![[activity registration] User Group Xi'an - empowering enterprise growth with modern data architecture](/img/92/88be42faf0451cb19067672dab69c8.jpg)
[activity registration] User Group Xi'an - empowering enterprise growth with modern data architecture

Leetcode brushes questions. I recommend this video of the sister Xueba at station B
随机推荐
Service current limiting and fusing of micro service architecture Sentinel
Win the bid! Nantah general gbase 8s won the bid for the 2022 database framework project of NARI Group
How can MySQL query judge whether multiple field values exist at the same time
Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]
Chapter 2-14 sum integer segments
Prometheus TSDB analysis
Opengauss synchronization status query
In addition to exporting the incremental data captured by Oracle golden gate to Oracle, where can it be exported? Can be similar
Data fabric, next air outlet?
Completion report of communication software development and Application
There is a bug in installing CONDA environment
Hyperlink label
Different HR labels
'global event bus' &' message subscription and Publishing '
Gb/t 41479-2022 information security technology network data processing security requirements map overview
Eight ways to solve EMC and EMI conducted interference
象棋机器人夹伤7岁男孩手指,软件测试工程师的锅?我笑了。。。
解决:IndexError: index 13 is out of bounds for dimension 0 with size 13
Why is the text box of Google material design not used?
Kubernetes cluster configuration serviceaccount