HomeFreeBSD

bsd.endian.mk: Allow for the cross building case

Description

bsd.endian.mk: Allow for the cross building case

We need to include bsd.endian.mk from bsd.compiler.mk to enable
compressed symbols only on FreeBSD little endian targets.

However, since we include bsd.compiler.mk from Makefile.inc1 and from
the build tools makefiles, it has to work on Linux and osx. Make the
error condition only when we're building natively (so that we are
forced to add a new architecture to the list).

Otherwise, define bogus, poisoned values and leave TARGET_ENDIANNESS
undefined. Since we don't actually use TARGET_ENDIANNESS for anything
in the cross building phase, these values are a failsafe agianst their
use. The one place in the build phase that detects endian is
appropriately protected.

Sponsored by: Netflix
Reviewed by: jrtc27
Differential Revision: https://reviews.freebsd.org/D33742

Details

Provenance
impAuthored on Jan 4 2022, 11:17 PM
Reviewer
jrtc27
Differential Revision
D33742: bsd.endian.mk: Allow for the cross building case
Parents
rGb4dda138e8f7: neta: clk code ifdef'd aarch64
Branches
Unknown
Tags
Unknown