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
linuxPackages.isgx: init at 2.11 #109013
linuxPackages.isgx: init at 2.11 #109013
Conversation
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 2 packages marked as broken and skipped:
15 packages failed to build and are new build failures:
4 packages built:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/how-to-upstream-a-working-kernel-module-derivation/11040/3 |
I'm getting this error while building this:
I think this will get fixed by @lzmartinico's suggestion |
Rebased and fixed build error. |
meta = with lib; { | ||
description = "Intel SGX Linux Driver"; | ||
homepage = "https://github.com/intel/linux-sgx-driver"; | ||
license = with licenses; [ bsd3 gpl2 ]; |
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 inclined to say we no longer need this package because current linux testing adds an upstream sgx driver. Nevertheless you should mark this as broken for kernel newer or equal to 5.11.0.
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.
Btw this is what you need to enable to have it in the kernel: https://github.com/Mic92/doctor-cluster-config/commit/bb70ed032ec876b93e2c4263af3542aa56fd7bdd#diff-d33b7b1f936a6f8f74abe312c8ef8737c4b53a525878f08564a4d0c163f2be5cR15
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.
also gpl2Only or gpl2Plus?
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.
@Mic92 Broken predicate is added. BTW: Kernel 5.11 is not in master currently. I'll check it later.
@SuperSandro2000 It's gpl2Only. Fixed.
It seems that the Makefile doesn't support cross compiling flags. I just removed related codes to simplify. |
Result of 2 packages marked as broken and skipped:
1 package failed to build:
16 packages built:
|
Looks like linuxPackages-libre is broken again. |
I don't think I have seen it working since I started reviewing. |
|
@Mic92 Can we have this merged now? |
+1. Is there something that's blocking this? Is help needed for something? |
This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 10 packages marked as broken and skipped:
10 packages built:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/overriding-patchflags-in-buildlinux/6316/2 |
This kernel module loads up fine for me with
|
@adaszko The module is not in-tree. I think you need to add the package to |
Correct, this has worked for me:
Thanks! |
Motivation for this change
Add Linux driver for Intel Software Guard Extention (SGX).
Repository url.
When loaded on supported CPU with SGX enabled in BIOS,
/dev/{isgx,mei0}
will be available.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)isgx.ko
. Tested to be loaded and it works.nix path-info -S
before and after)