-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
lib.systems.examples: use four component triples for embedded #247490
base: staging
Are you sure you want to change the base?
Changes from all commits
8fec22f
6fe8b73
9a439cf
0a5e0e6
69f0d0b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -124,22 +124,22 @@ rec { | |||||||||||||||||
riscv32 = riscv "32"; | ||||||||||||||||||
|
||||||||||||||||||
riscv64-embedded = { | ||||||||||||||||||
config = "riscv64-none-elf"; | ||||||||||||||||||
config = "riscv64-unknown-none-elf"; | ||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
riscv32-embedded = { | ||||||||||||||||||
config = "riscv32-none-elf"; | ||||||||||||||||||
config = "riscv32-unknown-none-elf"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
mips64-embedded = { | ||||||||||||||||||
config = "mips64-none-elf"; | ||||||||||||||||||
config = "mips64-unknown-none-elf"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
mips-embedded = { | ||||||||||||||||||
config = "mips-none-elf"; | ||||||||||||||||||
config = "mips-unknown-none-elf"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
|
@@ -153,7 +153,7 @@ rec { | |||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
rx-embedded = { | ||||||||||||||||||
config = "rx-none-elf"; | ||||||||||||||||||
config = "rx-unknown-none-elf"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
|
@@ -189,11 +189,11 @@ rec { | |||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
arm-embedded = { | ||||||||||||||||||
config = "arm-none-eabi"; | ||||||||||||||||||
config = "arm-unknown-none-eabi"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
armhf-embedded = { | ||||||||||||||||||
config = "arm-none-eabihf"; | ||||||||||||||||||
config = "arm-unknown-none-eabihf"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
# GCC8+ does not build without this | ||||||||||||||||||
# (https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg552339.html): | ||||||||||||||||||
|
@@ -204,22 +204,22 @@ rec { | |||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
aarch64-embedded = { | ||||||||||||||||||
config = "aarch64-none-elf"; | ||||||||||||||||||
config = "aarch64-unknown-none-elf"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
aarch64be-embedded = { | ||||||||||||||||||
config = "aarch64_be-none-elf"; | ||||||||||||||||||
config = "aarch64_be-unknown-none-elf"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
ppc-embedded = { | ||||||||||||||||||
config = "powerpc-none-eabi"; | ||||||||||||||||||
config = "powerpc-unknown-none-eabi"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
ppcle-embedded = { | ||||||||||||||||||
config = "powerpcle-none-eabi"; | ||||||||||||||||||
config = "powerpcle-unknown-none-eabi"; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
libc = "newlib"; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -80,7 +80,7 @@ in lib.init bootStages ++ [ | |||||
(hostPlatform.isLinux && !buildPlatform.isLinux) | ||||||
[ buildPackages.patchelf ] | ||||||
++ lib.optional | ||||||
(let f = p: !p.isx86 || builtins.elem p.libc [ "musl" "wasilibc" "relibc" ] || p.isiOS || p.isGenode; | ||||||
(let f = p: !p.isx86 || builtins.elem p.libc [ "musl" "wasilibc" "relibc" ] || p.isiOS || p.isGenode || p.isNone; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the change that most needs to be double-checked. I'll do that if the general approach is agreeable to you. |
||||||
in f hostPlatform && !(f buildPlatform) ) | ||||||
buildPackages.updateAutotoolsGnuConfigScriptsHook | ||||||
; | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.