Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
b1999ce7
Commit
b1999ce7
authored
Apr 15, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/v1.4.0'
parents
88b8f1fd
d8bef4d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
0 deletions
+69
-0
.gitignore
distribution/.gitignore
+1
-0
Makefile
distribution/Makefile
+61
-0
dkms.conf
distribution/dkms.conf
+7
-0
No files found.
distribution/.gitignore
0 → 100644
View file @
b1999ce7
build/
\ No newline at end of file
distribution/Makefile
0 → 100644
View file @
b1999ce7
TOP_DIR
?=
..
DRIVER_NAME
:=
zio
VERSION
:=
$(
shell
git describe
--abbrev
=
0 |
grep
-o
-E
"[^v]*"
)
DIR_NAME
:=
$(DRIVER_NAME)
-
$(VERSION)
KEEP_TEMP
?=
n
BUILD
?=
$
(
abspath build
)
BUILD_DKMS
:=
$(BUILD)
/dkms
BUILD_DKMSSOURCE
:=
$(BUILD_DKMS)
/source
BUILD_DKMSTREE
:=
$(BUILD_DKMS)
/tree
SRC
:=
$(TOP_DIR)
/Makefile
SRC
+=
$(TOP_DIR)
/Makefile
DKMS_OPT
:=
--dkmstree
$(BUILD_DKMSTREE)
-m
$(DRIVER_NAME)
/
$(VERSION)
all
:
kernel
kernel
:
dkms-tar dkms-rpm
dkms-tree
:
@
mkdir
-p
$(BUILD_DKMSSOURCE)
@
mkdir
-p
$(BUILD_DKMSTREE)
dkms-src
:
dkms-tree
$
(
eval
$@
_dir :
=
$(BUILD_DKMSSOURCE)
/
$(DRIVER_NAME)
-
$(VERSION)
)
@
mkdir
-p
$
(
$@
_dir
)
@
mkdir
-p
$
(
$@
_dir
)
/buffers
@
mkdir
-p
$
(
$@
_dir
)
/triggers
@cp
$(TOP_DIR)/distribution/dkms.conf
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/buffers/zio-buf-kmalloc.c
$($@_dir)/buffers/
@cp
$(TOP_DIR)/drivers/zio/triggers/zio-trig-user.c
$($@_dir)/triggers/
@cp
-a
$(TOP_DIR)/include
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/*.[ch]
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/Makefile
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/Kbuild
$($@_dir)
@cp
$(TOP_DIR)/LICENSES/GPL-2.0-or-later.txt
$($@_dir)/LICENSE
@sed -r -i -e "s/^GIT_VERSION\s
:
=
\s
.*/GIT_VERSION = $(VERSION)/" $($@_dir)/Makefile
@
sed
-r
-i
-e
"s/^DKMS
\s
[?]=
\s
0/DKMS ?= 1/"
$
(
$@
_dir
)
/Makefile
@
sed
-r
-i
-e
"s/^obj-[
$$
][(]CONFIG.*//"
$
(
$@
_dir
)
/Kbuild
@
sed
-r
-i
-e
"s/
\.\.\/\.\.\/
include/include/"
$
(
$@
_dir
)
/Kbuild
@sed
-r
-i
-e
"s/@PKGNAME@/$(DRIVER_NAME)/"
$($@_dir)/dkms.conf
@sed
-r
-i
-e
"s/@PKGVER@/$(VERSION)/"
$($@_dir)/dkms.conf
dkms-add
:
dkms-src
@
dkms add
$(DKMS_OPT)
--sourcetree
$(BUILD_DKMSSOURCE)
dkms-tar
:
dkms-add
@
dkms mktarball
$(DKMS_OPT)
--source-only
dkms-rpm
:
dkms-add
@
dkms mkrpm
$(DKMS_OPT)
--source-only
clean
:
@
rm
-rf
$(BUILD)
.PHONY
:
dkmstree dkms-add kernel-dkms-tar
distribution/dkms.conf
0 → 100644
View file @
b1999ce7
PACKAGE_NAME
=
"@PKGNAME@"
PACKAGE_VERSION
=
"@PKGVER@"
CLEAN
=
"make clean"
MAKE
[
0
]=
"make KVERSION=$kernelver all"
BUILT_MODULE_NAME
[
0
]=
"@PKGNAME@"
DEST_MODULE_LOCATION
[
0
]=
"/updates"
AUTOINSTALL
=
"yes"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment