Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Platform-independent core collection
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Platform-independent core collection
Commits
46f47e71
Commit
46f47e71
authored
5 years ago
by
Federico Vaga
Browse files
Options
Downloads
Patches
Plain Diff
[sw] install dkms sources
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
9e8d5333
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
software/Makefile
+32
-1
32 additions, 1 deletion
software/Makefile
with
32 additions
and
1 deletion
software/Makefile
+
32
−
1
View file @
46f47e71
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright (C) 2019 CERN
TOP_DIR
?=
$(
shell
pwd
)
/..
-include
Makefile.specific
# include parent_common.mk for buildsystem's defines
...
...
@@ -5,11 +11,36 @@
REPO_PARENT
?=
$(
shell /bin/pwd
)
/..
-include
$(REPO_PARENT)/parent_common.mk
GCORES
?=
$(
TOP_DIR
)
include
$(GCORES)/common.mk
DIR_NAME
:=
general-cores-
$(
VERSION
)
DST
:=
$(
PREFIX
)
/usr/src/
$(
DIR_NAME
)
/
DIRS
:=
i2c-ocores
DIRS
+=
spi-ocores
DIRS
+=
htvic
.PHONY
:
all clean modules install modules_install
GIT
?=
git
ifeq
(,$(shell which $(GIT)))
$(
error
"Missing git"
)
endif
.PHONY
:
all clean modules install modules_install dkms_install
all clean modules install modules_install
:
for
D
in
$(
DIRS
);
do
$(
MAKE
)
-C
$$
D
$@
;
done
dkms_install
:
$(
eval
$@
_dst :
=
$(
shell
mktemp
-d
))
@
mkdir
-p
$(
$@
_dst
)
@
mkdir
-p
$(
DST
)
@$(
GIT
)
archive
--format
=
tar
-o
$(
$@
_dst
)
/
$(
DIR_NAME
)
.tar
--prefix
=
$(
DIR_NAME
)
/ HEAD
@
cd
$(
$@
_dst
)
&&
tar
-xf
$(
DIR_NAME
)
.tar
@
mv
$(
$@
_dst
)
/
$(
DIR_NAME
)
/
*
$(
DST
)
&&
rm
-rf
$(
$@
_dst
)
@
cp
$(
GCORES
)
/common.mk
$(
DST
)
@
sed
-e
'2,$$d'
-i
$(
DST
)
/common.mk
@
sed
-r
-i
-e
"s/@PKGVER@/
$(
VERSION
)
/"
$(
DST
)
/dkms.conf
@
sed
-e
"15d"
-e
"6,13d"
-e
"23,26d"
-e
'33,$$d'
\
-i
$(
DST
)
/Makefile
@
find
$(
DST
)
-name
Makefile
-exec
\
sed
-r
-e
"s,^(TOP_DIR.*)[.]{2}/?
$$
,
\1
,"
-i
{}
\;
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment