HomeFreeBSD

native-xtools: Fix for GCC archs.

Description

native-xtools: Fix for GCC archs.

  • This also adds in a _cleanobj step as needed.
  • This redirects TARGET/TARGET_ARCH to NXB_TARGET/NXB_TARGET_ARCH in Makefile.inc1 as the main build needs to be for MACHINE rather than TARGET.

    First build the toolchain and then use that as an external toolchain to build the needed directories and NXB_TARGET-toolchain, all as MACHINE files though via TARGET_TRIPLE=MACHINE_TRIPLE.

    The NXBDIRS is evaluated in the 'everything' submake as it needs to be based on TARGET's src.opts.mk values, such as MK_GCC=yes when building on a MK_CLANG=yes MACHINE. This can likely be changed to a specific _native-xtools-everything target later and the funky late evaluation of SUBDIR_OVERRIDE removed.

X-MFC-With: r325001
Pointyhat to: bdrewery
MFC after: 2 months
Sponsored by: Dell EMC Isilon

Details

Provenance
bdreweryAuthored on
Parents
rS325672: Don't append TARGET.TARGET_ARCH if OBJTOP is already set.
Branches
Unknown
Tags
Unknown