-
Notifications
You must be signed in to change notification settings - Fork 2
Agregando más arquitecturas #26
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
Conversation
Juanperias
left a comment
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.
He estado probando el flake y no funciona correctamente. Al parecer, el toolchain no se esta descargando o algo por el estilo
Juanperias
left a comment
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.
Te recomiendo que te inspires en estos linker files
riscv64: https://github.com/jasondyoungberg/limine-rust-template/blob/trunk/kernel/linker-riscv64.ld
aarch64: https://github.com/jasondyoungberg/limine-rust-template/blob/trunk/kernel/linker-aarch64.ld
loongarch64: https://github.com/jasondyoungberg/limine-rust-template/blob/trunk/kernel/linker-loongarch64.ld
Juanperias
left a comment
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.
Diría que para más flexibilidad hagas esto:
ARCH := env_var_or_default("ARCH", "x86_64")
Ah, y también ajustar RUST_TARGET para que se adapte con lo que se ponga en ARCH
Juanperias
left a comment
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.
Aquí deberías agregar los targets para las demás arquitecturas
targets = ["x86_64-unknown-none"]
Nop, porque si lo hago cuando se instale irían todos los targets, en cambio en el flake se tiene la separación, porque sino tendrias un entorno muy pesado, para eso es el flake |
@SergioRibera tiene sentido |
jd-apprentice
left a comment
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.
No rompas nada
Juanperias
left a comment
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.
🙏
Aquitecturas agregadas
nix run .#&&nix build .#):nix build .#)