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)
Feb 23 2024, 1:25 PM
Unknown Object (File)
Feb 23 2024, 1:25 PM
Unknown Object (File)
Feb 23 2024, 1:25 PM
Unknown Object (File)
Feb 23 2024, 1:12 PM
Unknown Object (File)
Feb 9 2024, 11:15 PM
Unknown Object (File)
Dec 20 2023, 1:21 AM
Unknown Object (File)
Nov 8 2023, 5:18 AM
Unknown Object (File)
Oct 3 2023, 4:09 AM
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

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 27033
Build 25322: arc lint + arc unit