当前位置:网站首页>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
边栏推荐
- Top all major platforms, 22 versions of interview core knowledge analysis notes, strong on the list
- No one wants to tell the truth about kubernetes secret
- mysql主从架构 ,主库挂掉重启后,从库怎么自动连接主库
- TXT文本文件存储
- A new method of exposing services in kubernetes clusters
- Eight ways to solve EMC and EMI conducted interference
- CSV file storage
- Dapp安全总结与典型安全事件分析
- Vrrp+mstp configuration details [Huawei ENSP experiment]
- Bash shell interaction free
猜你喜欢

After reading these 12 interview questions, the new media operation post is yours

实现批量数据增强 | keras ImageDataGenerator使用

从开发转测试:我从零开始,一干就是6年的自动化测试历程

台大林轩田《机器学习基石》习题解答和代码实现 | 【你值得拥有】

NDK series (6): let's talk about the way and time to register JNI functions

网络层的IP协议
![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]

Design for failure常见的12种设计思想

C#简单调用FMU ,进行仿真计算

You're not still using xshell, are you? This open source terminal tool is yyds!
随机推荐
Hundreds of billions of it operation and maintenance market has come to the era of speaking by "effect"
(IROS 2022) 基于事件相机的单目视觉惯性里程计 / Event-based Monocular Visual Inertial Odometry
Let me teach you how to assemble a registration center?
478-82(56、128、718、129)
Bash shell interaction free
PostgreSQL: cannot change the type of column used by a view or rule
Explain cache consistency and memory barrier
C language array pointer and pointer array discrimination, analysis of memory leakage
Oracle SQL problems
JSON 文件存储
MDM数据质量应用说明
NDK series (6): let's talk about the way and time to register JNI functions
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)
View the dimensions of the list
Machine learning (11) -- time series analysis
Go panic and recover
I am a 27 year old technical manager, whose income is too high, and my heart is in a panic
Argocd Web UI loading is slow? A trick to teach you to solve
Customer first | domestic Bi leader, smart software completes round C financing
JSON file storage