我正在尝试使用 Raspbian 操作系统在 Raspberry Pi 3 上实现 OP-TEE 信任操作系统。OP-TEE 网站提到它同时支持 32 位和 64 位架构,但是当我尝试实现时,它会自动运行与我的 32 位 Raspbian 操作系统不兼容的 aarch64 make 文件。无论如何强制 OP-TEE 运行 aarch32 制作文件?
问问题
296 次
1 回答
0
我只尝试为 Juno 板构建 OP-TEE 操作系统,但我相信你Makefile
有一个地方可以像我的 Makefile 一样定义交叉编译器:
class Compiler():
__aa32 = None
__aa64 = None
def AArch32():
if not Compiler.__aa32:
fn = "gcc-linaro-"+AARCH32_COMPILER_VSN+"-x86_64_arm-linux-gnueabihf.tar.xz"
Compiler.__aa32 = Resource\
(
name="AArch32 compiler",
baseurl="http://releases.linaro.org/components/toolchain/"\
+"binaries/"+COMPILER_RELEASE+"/arm-linux-gnueabihf/",
filename=fn,
dstdir="tools/gcc/",
md5file=fn+".asc",
)
return Compiler.__aa32
def AArch64():
if not Compiler.__aa64:
fn = "gcc-linaro-"+AARCH64_COMPILER_VSN+"-x86_64_aarch64-linux-gnu.tar.xz"
Compiler.__aa64 = Resource\
(
name="AArch64 compiler",
baseurl="http://releases.linaro.org/components/toolchain/"\
+"binaries/"+COMPILER_RELEASE+"/aarch64-linux-gnu/",
filename=fn,
dstdir="tools/gcc/",
md5file=fn+".asc",
)
return Compiler.__aa64
尝试使用 AARCH32 而不是 AARCH64。
于 2018-03-27T22:00:42.317 回答