yocto - 如何本地编译 openssl - yocto 中的自定义版本?
问题描述
我正在尝试在 yocto 中添加配方以本地构建 openssl,即为我的主机 - X86。这是我的食谱,我的编译没有说循环依赖。我不确定下一步该做什么。
这是食谱-
openssl_git.bb
DESCRIPTION = "Potluck with different functions for different purposes that can be shared among C programs"
HOMEPAGE = "https://github.com/openssl/openssl"
LICENSE = "Apache License 2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c75985e733726beaba57bc5253e96d04"
#inherit cmake pkgconfig
SRC_URI = "git://github.com/openssl/openssl.git"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
do_configure () {
cd ${S}
./config
}
do_compile () {
# Build openssl
oe_runmake -C ${S}
}
BBCLASSEXTEND += "native"
这是构建错误 -
arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-m64'
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-m64'
| Makefile:3979: recipe for target 'apps/lib/libapps-lib-app_params.o' failed
| make[1]: *** [apps/lib/libapps-lib-app_params.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| Makefile:3987: recipe for target 'apps/lib/libapps-lib-app_provider.o' failed
| make[1]: *** [apps/lib/libapps-lib-app_provider.o] Error 1
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-m64'
| Makefile:3995: recipe for target 'apps/lib/libapps-lib-app_rand.o' failed
| make[1]: *** [apps/lib/libapps-lib-app_rand.o] Error 1
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-m64'
| Makefile:4003: recipe for target 'apps/lib/libapps-lib-app_x509.o' failed
| make[1]: *** [apps/lib/libapps-lib-app_x509.o] Error 1
| make[1]: Leaving directory '/home/user/temp/custom_yocto/build-custom-zynq/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/openssl/git-r0/git'
| Makefile:3055: recipe for target 'build_sw' failed
解决方案
推荐阅读
- c# - 如果按下 html 按钮,如何在页面后面执行 C# 代码?
- facebook - facebook页面插件未显示在wix.com网站上
- javascript - 如何从地图函数中的 Touchable Opacity 访问单个元素?
- dart - 如何在 Dart 中创建单例组件,并在需要时将处理程序传递给所有其他组件?
- database - 我可以运行 postgres 数据库的最小 AWS EC2 实例是什么?
- c# - HTTP 错误 500.30 - ANCM 进程内启动失败 - 生产环境
- android - Volley 仅在 recyclerview JSON 中单击两次按钮后才加载数据
- haskell - 在 Haskell 中,如何将约束附加到参数新类型,以便它们自动应用于使用它的任何类实例?
- vb.net - 将未知枚举传递给函数
- java - Java Swing MVC 中的视图是什么?