-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
xen: support aarch64-linux #345217
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
base: master
Are you sure you want to change the base?
xen: support aarch64-linux #345217
Conversation
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.
I am extremely surprised it was this trivial. I can't test this as I don't have any ARM hardware, but excellent work!
@@ -717,8 +721,9 @@ stdenv.mkDerivation (finalAttrs: { | |||
|
|||
mainProgram = "xl"; | |||
|
|||
# Evaluates to x86_64-linux. | |||
platforms = lib.lists.intersectLists lib.platforms.linux lib.platforms.x86_64; | |||
# Evaluates to [x86_64-linux aarch64-linux]. |
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.
# Evaluates to [x86_64-linux aarch64-linux]. | |
# Evaluates to [ "x86_64-linux" "aarch64-linux" ]. |
nixfmt-rfc-style
won't pick up the comment.
I do wonder if we can begin building |
@@ -381,7 +384,8 @@ stdenv.mkDerivation (finalAttrs: { | |||
] | |||
++ lib.lists.optional withInternalOVMF nasm | |||
++ lib.lists.optional withFlask checkpolicy | |||
++ lib.lists.optional (lib.strings.versionOlder version "4.19") systemdMinimal; | |||
++ lib.lists.optional (lib.strings.versionOlder version "4.19") systemdMinimal | |||
++ lib.lists.optional stdenv.targetPlatform.isAarch64 dtc; |
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.
targetPlatform
only applies to compilers. You want either stdenv.hostPlatform
, which is the platform the resulting package will run on, or stdenv.buildPlatform
, the platform the build is running on. Probably the former.
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.