Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Support DKMS #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dkms-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

VERSION=0.10
MODULE_DIR="/usr/src/isgx-$VERSION"

mkdir -p "$MODULE_DIR/src"
cp -r * "$MODULE_DIR/src"
mv "$MODULE_DIR/src/dkms.conf" "$MODULE_DIR/"
cat Makefile | sed "s/KERNELRELEASE/PATCHLEVEL/g" > "$MODULE_DIR/src/Makefile"
dkms add -m isgx -v "$VERSION"
dkms build -m isgx -v "$VERSION" --verbose
dkms install -m isgx -v "$VERSION"
8 changes: 8 additions & 0 deletions dkms.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
MAKE="make -C src/ KERNELDIR=/lib/modules/${kernelver}/build"
CLEAN="make -C src/ clean"
BUILT_MODULE_NAME=isgx
BUILT_MODULE_LOCATION=src/
PACKAGE_NAME=isgx
PACKAGE_VERSION=0.10
REMAKE_INITRD=yes
DEST_MODULE_LOCATION=/updates