Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple PCIe FMC carrier SPEC
Commits
b921091e
Commit
b921091e
authored
Sep 09, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dist: add cheby generated header file in DKMS package
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
c1b531f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
Makefile
distribution/Makefile
+11
-2
Makefile
software/kernel/Makefile
+2
-0
No files found.
distribution/Makefile
View file @
b921091e
TOP_DIR
?=
../
TOP_DIR
?=
$(
shell
pwd
)
/../
HDL_DIR
?=
$(TOP_DIR)
/hdl
DRIVER_NAME
:=
spec-fmc-carrier
DRIVER_NAME
:=
spec-fmc-carrier
VERSION
:=
$(
shell
git describe
--abbrev
=
0
)
VERSION
:=
$(
shell
git describe
--abbrev
=
0
)
DIR_NAME
:=
$(DRIVER_NAME)
-
$(VERSION)
DIR_NAME
:=
$(DRIVER_NAME)
-
$(VERSION)
...
@@ -13,21 +15,28 @@ DKMS_OPT := --dkmstree $(BUILD_DKMSTREE) -m $(DRIVER_NAME)/$(VERSION)
...
@@ -13,21 +15,28 @@ DKMS_OPT := --dkmstree $(BUILD_DKMSTREE) -m $(DRIVER_NAME)/$(VERSION)
all
:
kernel
all
:
kernel
CHEBY
?=
/usr/bin/cheby
spec-core-fpga.h
:
$(CHEBY)
--gen-c
-i
$(HDL_DIR)
/rtl/spec_base_regs.cheby
>
/tmp/
$@
kernel
:
dkms-tar dkms-rpm
kernel
:
dkms-tar dkms-rpm
dkms-tree
:
dkms-tree
:
@
mkdir
-p
$(BUILD_DKMSSOURCE)
@
mkdir
-p
$(BUILD_DKMSSOURCE)
@
mkdir
-p
$(BUILD_DKMSTREE)
@
mkdir
-p
$(BUILD_DKMSTREE)
dkms-src
:
dkms-tree
dkms-src
:
dkms-tree
spec-core-fpga.h
$
(
eval
$@
_src :
=
$(
shell
git ls-tree
-r
--name-only
HEAD
$(TOP_DIR)
|
grep
"kernel"
|
tr
'\n'
' '
)
)
$
(
eval
$@
_src :
=
$(
shell
git ls-tree
-r
--name-only
HEAD
$(TOP_DIR)
|
grep
"kernel"
|
tr
'\n'
' '
)
)
$
(
eval
$@
_dir :
=
$(BUILD_DKMSSOURCE)
/
$(DRIVER_NAME)
-
$(VERSION)
)
$
(
eval
$@
_dir :
=
$(BUILD_DKMSSOURCE)
/
$(DRIVER_NAME)
-
$(VERSION)
)
@mkdir
-p
$($@_dir)/platform_data
@mkdir
-p
$($@_dir)/platform_data
@mv
/tmp/spec-core-fpga.h
$($@_dir)
@cp
-a
$($@_src)
$(TOP_DIR)/distribution/dkms.conf
$($@_dir)
@cp
-a
$($@_src)
$(TOP_DIR)/distribution/dkms.conf
$($@_dir)
@mv
$($@_dir)/gn412x-gpio.h
$($@_dir)/platform_data
@mv
$($@_dir)/gn412x-gpio.h
$($@_dir)/platform_data
@cp
-a
$(TOP_DIR)/LICENSES/GPL-2.0.txt
$($@_dir)/LICENSE
@cp
-a
$(TOP_DIR)/LICENSES/GPL-2.0.txt
$($@_dir)/LICENSE
@sed
-r
-i
-e
"s/^VERSION\s=\s.*/VERSION = $(VERSION)/"
$($@_dir)/Makefile
@sed
-r
-i
-e
"s/^VERSION\s=\s.*/VERSION = $(VERSION)/"
$($@_dir)/Makefile
@sed
-r
-i
-e
"s/^DKMS\s[?]=\s0/DKMS ?= 1/"
$($@_dir)/Makefile
@sed
-r
-i
-e
"s/@PKGNAME@/$(DRIVER_NAME)/"
$($@_dir)/dkms.conf
@sed
-r
-i
-e
"s/@PKGNAME@/$(DRIVER_NAME)/"
$($@_dir)/dkms.conf
@sed
-r
-i
-e
"s/@PKGVER@/$(VERSION)/"
$($@_dir)/dkms.conf
@sed
-r
-i
-e
"s/@PKGVER@/$(VERSION)/"
$($@_dir)/dkms.conf
...
...
software/kernel/Makefile
View file @
b921091e
...
@@ -23,7 +23,9 @@ all: modules
...
@@ -23,7 +23,9 @@ all: modules
.PHONY
:
all modules clean help install modules_install spec-core-fpga.h
.PHONY
:
all modules clean help install modules_install spec-core-fpga.h
spec-core-fpga.h
:
spec-core-fpga.h
:
ifeq
($(DKMS),
0)
$(CHEBY)
--gen-c
-i
$(HDL_DIR)/rtl/spec_base_regs.cheby
>
$@
$(CHEBY)
--gen-c
-i
$(HDL_DIR)/rtl/spec_base_regs.cheby
>
$@
endif
modules help install modules_install
:
spec-core-fpga.h
modules help install modules_install
:
spec-core-fpga.h
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
pwd
)
VERSION
=
$(VERSION)
CONFIG_FPGA_MGR_BACKPORT_PATH_ABS
=
$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS)
CONFIG_FPGA_MGR_BACKPORT
=
$(CONFIG_FPGA_MGR_BACKPORT)
FMC_ABS
=
$(FMC_ABS)
I2C_ABS
=
$(I2C_ABS)
$@
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
pwd
)
VERSION
=
$(VERSION)
CONFIG_FPGA_MGR_BACKPORT_PATH_ABS
=
$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS)
CONFIG_FPGA_MGR_BACKPORT
=
$(CONFIG_FPGA_MGR_BACKPORT)
FMC_ABS
=
$(FMC_ABS)
I2C_ABS
=
$(I2C_ABS)
$@
...
...
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