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

Support DKMS #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Support DKMS #7

wants to merge 1 commit into from

Conversation

michwill
Copy link

Standard "make install" fails in Ubuntu 16.04 because kernel there requires signed modules.

DKMS cares about all of that.

@ghost
Copy link

ghost commented Aug 30, 2016

Use a proper format with short summary line and a long description. The commit message is also missing Signed-off-by tag. You should describe in the commit message why the change is needed and how it manages to get it done.

@mitar
Copy link

mitar commented Feb 23, 2017

I simplified it a bit.

dkms.conf

PACKAGE_NAME="isgx"
PACKAGE_VERSION="0.10"
MAKE="'make'"
CLEAN="'make' clean"
BUILT_MODULE_NAME=isgx
REMAKE_INITRD=yes
DEST_MODULE_LOCATION=/updates
AUTOINSTALL="yes"

dkms-install.sh

#!/bin/bash -e

VERSION="0.10"

if ! dkms status -m isgx -v "$VERSION" | grep -q 'added\|built\|installed' ; then
  dkms add -m isgx -v "$VERSION"
fi

dkms build -m isgx -v "$VERSION" --verbose
dkms install -m isgx -v "$VERSION"

If I clone this repository into /usr/src/isgx-0.10 and copy these two files in, I can run the install script and it works well on Ubuntu 16.04.

@mitar
Copy link

mitar commented Feb 23, 2017

The fact that make is inside ' is so that KERNELRELEASE is not passed through.

@donporter
Copy link
Contributor

+1 on this PR. Being able to automatically update the isgx driver after a kernel upgrade would be awfully nice. Is there something that can be done to help get this out the door?

@haitaohuang
Copy link
Contributor

please update the patches with proper sign-off and comments format as mentioned above @jsakkine-intel

@donporter
Copy link
Contributor

I"m happy to add a comment about what problem this code solves - that is easy - it automatically rebuilds the driver after a kernel upgrade. This is super userful, at least for organizations that stay on top of security advisories.

But, not being the author, I am not sure I am in a position to sign off on this. Can anyone other than @michwill sign off on this patch?

@michwill
Copy link
Author

@donporter feel free to do whatever you like with the patch :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants