当前位置:网站首页>完善的交叉编译环境记录 peta 生成的shell 脚本
完善的交叉编译环境记录 peta 生成的shell 脚本
2022-08-04 19:23: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
边栏推荐
- The CPU suddenly soars and the system responds slowly, what is the cause?Is there any way to check?
- Query the published version records of the APP Store
- 正则表达式未完
- Spark提交参数说明和常见优化
- win10 uwp 修改Pivot Header 颜色
- 密码学系列之:PEM和PKCS7,PKCS8,PKCS12
- Internship: changed the requirements
- 【Attention演变史】翻译模型seq2seq (第二弹)
- MogDB学习笔记-环境准备及单实例安装
- win10 uwp ping
猜你喜欢

Dragoma(DMA)元宇宙系统开发

Orthodontic MIA micro-implant anchorage technology China 10th anniversary exchange meeting was held in Shenyang

STP实验

百度智能云重庆工业互联网平台正式亮相,深耕重庆,辐射西南

”元宇宙“必须具备这些特点

Pedestrian fall detection experiment based on YOLOV5

Yuanguo chain game system development

什么是内部客户服务?

NLP技术为何在工业界这么卷?前沿案例解析来了

【Attention演变史】翻译模型seq2seq (第二弹)
随机推荐
元国度链游系统开发
译文推荐|Apache Pulsar 隔离系列(四):单集群隔离策略
Highlights of some performance tests
HCIA-R&S自用笔记(22)STP状态与计时器、STP拓扑变化、STP配置及实验
天呐,七夕我收到9份告白~
The CPU suddenly soars and the system responds slowly, what is the cause?Is there any way to check?
NLP技术为何在工业界这么卷?前沿案例解析来了
STP实验
MySQL远程备份策略举例
指静脉识别-matlab
正畸MIA微种植体支抗技术中国10周年交流会在沈举办
EuROC dataset format and related codes
2022年7月国产数据库大事记
八一建军节 | 致敬中国人民解放军
Exploration and Practice of Database Governance
从零开始实现一个简单的CycleGAN项目
Finger Vein Recognition-matlab
四维图新:子公司首款功能安全 MCU 芯片已陆续送样
openharmony代码框架初识(2)
win10 uwp 动态修改ListView元素布局