当前位置:网站首页>A perfect cross compilation environment records the shell scripts generated by PETA
A perfect cross compilation environment records the shell scripts generated by PETA
2022-07-28 09:05:00 【Hong Dayu】
# 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
边栏推荐
- There is a bug in installing CONDA environment
- CSV file storage
- Go channel
- 置顶各大平台,22版面试核心知识解析笔记,强势上榜
- I am a 27 year old technical manager, whose income is too high, and my heart is in a panic
- Shell programming specifications and variables
- Alibaba technology has four sides + intersection +hr, and successfully got the offer. Can't double non undergraduate students enter the big factory?
- Larkapi access credentials overview
- Kubernetes cluster configuration serviceaccount
- Kubernetes cluster configuration DNS Service
猜你喜欢

分布式系统架构理论与组件
![Detailed explanation of DHCP distribution address of routing / layer 3 switch [Huawei ENSP]](/img/9c/b4ebe608cf639b8348adc1f1cc71c8.png)
Detailed explanation of DHCP distribution address of routing / layer 3 switch [Huawei ENSP]

Huid learning 7: Hudi and Flink integration

TXT文本文件存储

中国地图省>市>级>区>镇>村5级联动下载【2019和2021】

You're not still using xshell, are you? This open source terminal tool is yyds!

MDM数据质量应用说明

Business digitalization is running rapidly, and management digitalization urgently needs to start

Bash shell interaction free

训练一个自己的分类 | 【包教包会,数据都准备好了】
随机推荐
Go interface advanced
网络层的IP协议
10、学习MySQL LIKE 子句
Completion report of communication software development and Application
【单细胞高级绘图】07.KEGG富集结果展示
In addition to exporting the incremental data captured by Oracle golden gate to Oracle, where can it be exported? Can be similar
Detailed explanation of the basic use of express, body parse and express art template modules (use, route, path matching, response method, managed static files, official website)
MDM data quality application description
剑指offer
49 opencv deep analysis profile
CSV file storage
What content does the new version of network security level protection evaluation report template contain? Where can I find it?
No one wants to tell the truth about kubernetes secret
JS inheritance method
[advanced drawing of single cell] 07. Display of KEGG enrichment results
Top all major platforms, 22 versions of interview core knowledge analysis notes, strong on the list
1299_ Task status and switching test in FreeRTOS
一年涨薪三次背后的秘密
我来教你如何组装一个注册中心?
Marketing play is changeable, and understanding the rules is the key!