-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdkms.conf.in
60 lines (50 loc) · 2.02 KB
/
dkms.conf.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# Copyright 2023,2025 Hewlett Packard Enterprise Development LP
#
## Global options
PACKAGE_NAME="@PACKAGE_NAME@"
# Package version should change with each new version
PACKAGE_VERSION="@PACKAGE_VERSION@"
## SHS DKMS variables
SHS_DKMS_PACKAGEROOT="${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}"
SHS_DKMS_BUILDROOT="${SHS_DKMS_PACKAGEROOT}/build"
# QUIRK: the SBL makefile appends to KCPPFLAGS internally. By introducing our
# own KCPPFLAGS as an environment variable, we can prepend our own KCPPFLAGS
# without overriding the appends done in the makefile (as would happen if we set
# KCPPFLAGS on the make command line)
SHS_MAKE_ENVVARS="KCPPFLAGS=' -I/usr/include '"
SHS_MAKE_ARGS="\
--jobs=1\
--print-directory\
\
KDIR=${kernel_source_dir}\
KERNELRELEASE=${kernelrel}\
\
SHS_DKMS_BUILDROOT=${SHS_DKMS_BUILDROOT}\
\
PLATFORM_CASSINI_HW=1\
SBL_EXTERNAL_BUILD=1\
"
# The default make command should be put into MAKE[0]. Other entries in the MAKE array will only be used
# if their corresponding entry in MAKE_MATCH[#] matches, as a regular expression (using egrep), the
# kernel that the module is being built for.
# QUIRK: see description of SHS_MAKE_ENVVARS in comment above
MAKE="${SHS_MAKE_ENVVARS} 'make' --jobs=${parallel_jobs} ${SHS_MAKE_ARGS} modules"
CLEAN="'make' --jobs=${parallel_jobs} ${SHS_MAKE_ARGS} clean"
## SHS global default DKMS settings (expected to not change between any SHS components)
# Rebuild and autoinstall automatically when dkms_autoinstaller runs for a new kernel
AUTOINSTALL="yes"
# Post-build hook to copy our Module.symvers into the DKMS tree so that other modules can build against it
POST_BUILD="dkms.post_build.sh ${SHS_DKMS_BUILDROOT} ${SHS_DKMS_PACKAGEROOT}"
## Per-module variables
# destination is 'extra' rather than kernel due to the fact our modules are not in-tree modules.
# see https://docs.kernel.org/kbuild/modules.html#module-installation for details
#
# sbl.ko
#
BUILT_MODULE_NAME[0]=cxi-sbl
DEST_MODULE_NAME[0]=cxi-sbl
BUILT_MODULE_LOCATION[0]=.
DEST_MODULE_LOCATION[0]=/extra
STRIP[0]=no
#