UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Xilinx Employee
Xilinx Employee

【分享】PetaLinux为MPSoC编译32-bit/64-bit库

缺省情况下,PetaLinux只为MPSoC编译64-bit库。Xilinx有文章http://www.wiki.xilinx.com/Creating+a+multilib+image+for+the+ZCU102+using+Yocto描述如何使用Yocto编译32-bit库。
PetaLinux也可以编译32-bit库。在/project-spec/meta-user/conf/petalinuxbsp.conf中,添加下面的配置,会编译32-bit库。

# ================================================
# ================================================
# /project-spec/meta-user/conf/petalinuxbsp.conf
# 添加下面的配置,会编译32-bit库。

# Add EXTRA_IMAGEDEPENDS default components
EXTRA_IMAGEDEPENDS_append_zynqmp = " virtual/fsbl virtual/pmu-firmware arm-trusted-firmware lib32-glibc lib32-libgcc lib32-gcc-runtime"
EXTRA_IMAGEDEPENDS_append_zynq = " virtual/fsbl"
EXTRA_IMAGEDEPENDS_append_microblaze = " virtual/fsboot virtual/elfrealloc"


# Define multilib target
require conf/multilib.conf
MULTILIBS = "multilib: "
DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon"

1 条回复
Community Manager
Community Manager

回复: 【分享】PetaLinux为MPSoC编译32-bit/64-bit库

谢谢Hank的分享

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励