Page MenuHomeFreeBSD

Update MIPS kernel builds to work with mips-gcc.
ClosedPublic

Authored by jhb on Oct 14 2019, 9:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 10:14 PM
Unknown Object (File)
Mon, Oct 28, 6:34 AM
Unknown Object (File)
Mon, Oct 28, 6:33 AM
Unknown Object (File)
Mon, Oct 28, 6:33 AM
Unknown Object (File)
Mon, Oct 28, 6:14 AM
Unknown Object (File)
Sep 25 2024, 8:00 PM
Unknown Object (File)
Sep 25 2024, 10:09 AM
Unknown Object (File)
Sep 24 2024, 9:54 PM
Subscribers
None

Details

Summary
  • Use a default -march of mips64 on N64 and N32 kernels.
  • Set the endianness (via MIPS_ENDIAN) and ABI (via MIPS_ABI) in CFLAGS from MACHINE_ARCH. ARCH_FLAGS now only sets a different -march value if needed.
  • TRAMP_ARCH_FLAGS inherits MIPS_ENDIAN from MACHINE_ARCH but does not set the ABI since XLPN32 needs an N64 ABI for the trampoline loader. When TRAMP_ARCH_FLAGS is used it must set both -march and -mabi.
Test Plan
  • make TARGETS=mips CROSS_TOOLCHAIN=mips-gcc

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable