Files
Cluster/packages/cross_file.txt

22 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# cross_file_armhf.txt
[binaries]
c = '/opt/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc' # 你的 C 交叉编译器
cpp = '/opt/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-g++' # 你的 C++ 交叉编译器
ar = '/opt/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ar' # 归档工具
strip = '/opt/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-strip' # strip 工具
pkg-config = 'pkg-config' # pkg-config通常使用主机的即可可能需要调整 PKG_CONFIG_PATH
[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'armv7' # 或 'cortex-a7' 等更具体的型号
endian = 'little'
[built-in options] # 将 c_args / c_link_args 移到这里
c_args = ['-march=armv7-a']
c_link_args = []
[properties]
needs_exe_wrapper = true # 因为无法在主机上运行目标二进制文件
sys_root = '/usr' # 注意xxx/install要修改成依赖包的安装路经
pkg_config_libdir = '/home/huaxu/develop/cluster/packages/install/lib/pkgconfig' # 注意xxx/install要修改成依赖包的安装路经