Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General Fix-ups for the MIPS-based Loongson 3 Port (loongson3) #4800

Merged
merged 6 commits into from
Oct 30, 2023

Conversation

MingcongBai
Copy link
Member

Topic Description

This topic addresses build failures and introduces fix-ups and enhancements for our (much neglected) MIPS-based Loongson 3 port (loongson3).

Package(s) Affected

See "Files changed."

Security Update?

No

Build Order

grub-loongson3 linux-kernel-lemote llvm libreoffice firefox thunderbird

Test Build(s) Done

Primary Architectures

  • AMD64 amd64
  • AArch64 arm64

Secondary Architectures

Architectural progress for "secondary," or experimental ports does not impede on merging of this topic.

  • Loongson 3 loongson3
  • MIPS R6 64-bit (Little Endian) mips64r6el
  • PowerPC 64-bit (Little Endian) ppc64el
  • RISC-V 64-bit riscv64

Previously, we simply renamed grub2-* to grub-*, but that would not work, as
GRUB would still look for executables prefixed with grub2-.

Use symlinks instead.
- Disable ld.lld for loongson3 as it breaks build for Mozilla and LibreOffice.
- Disable compatibility symlinks for loongson3 and mips64r6el, as these
  architectures do not have extra runtime libraries enabled.
…s enabled

Re-write old if branches with ab_match_arch().
- (loongson3) Disable Clang due to missing ld.lld (linkage failure).
- (loongson3) Use the bfd linker.
- Make wasi-sysroot sandbox optional.
- (loongson3) Disable Clang due to missing ld.lld (linkage failure).
- (loongson3) Use the bfd linker.
- (loongosn3) Drop unsupported --disable-elf-hacks option.
- Sync LTO flag hack from Firefox to fix build, as some architectures, such as
  loongson3, has extra LTO flags starting with -flto (-flto-partition=none).
- Make wasi-sysroot sandbox optional.
@MingcongBai MingcongBai added has-fix Topic contains a fix for a known issue hardware-support Hardware support related labels Oct 30, 2023
Rebase patches against the newest 5.4 release.

Co-authored-by: Tianhao Chai <[email protected]>
@MingcongBai MingcongBai mentioned this pull request Oct 30, 2023
6 tasks
@MingcongBai
Copy link
Member Author

Marking this pull request as high priority. Merge this before #4797.

@MingcongBai MingcongBai added the priority High-priority issue/topic label Oct 30, 2023
@MingcongBai MingcongBai merged commit 376ae8e into stable Oct 30, 2023
@MingcongBai MingcongBai deleted the loongson3-fixup branch October 30, 2023 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hardware-support Hardware support related has-fix Topic contains a fix for a known issue priority High-priority issue/topic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants