TARGET和TARGET_ARCH宏有什么区别?

时间:2018-03-08 05:30:25

标签: cross-compiling freebsd

交叉编译FreeBSD用于具有支持mips64架构的octeon芯片的Cavium板,那么就target_arch问题而言应该是什么TARGET和TARGET_ARCH值((MIPS或MIPS64)?)但是TARGET宏怎么样?

考虑到它的大端

env MAKEOBJDIRPREFIX = / home / bob / obj make buildworld TARGET = ??? TARGET_ARCH = ???

1 个答案:

答案 0 :(得分: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的列表。