【问题标题】:what is the difference between TARGET and TARGET_ARCH macros?TARGET 和 TARGET_ARCH 宏有什么区别?
【发布时间】:2019-02-06 03:01:00
【问题描述】:
为具有支持 mips64 架构的 octeon 芯片的 cavium 板交叉编译 FreeBSD,那么就 target_arch 而言,TARGET 和 TARGET_ARCH 值应该是多少((MIPS 或 MIPS64)?)但是 TARGET 宏呢?
考虑到它是一个大端
env MAKEOBJDIRPREFIX=/home/bob/obj make buildworld TARGET=??? TARGET_ARCH=???
【问题讨论】:
标签:
cross-compiling
freebsd
【解决方案1】:
目标是硬件平台。
TARGET_ARCH 是处理器架构。
解释在man uname:
The hardware platform (-m) can be different from the machine's processor
architecture (-p), e.g., on 64-bit PowerPC, -m would return powerpc and
-p would return powerpc64.
要找出可能的合法设置,请显示带有cd /usr/src; make targets 的列表。