Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
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
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
FMC TDC 1ns 5cha - Software
Commits
16aa7ca8
Commit
16aa7ca8
authored
Jun 15, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bld: simplify top level Makefile
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
810c412c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
42 deletions
+10
-42
Makefile
Makefile
+9
-41
Makefile
kernel/Makefile
+1
-1
No files found.
Makefile
View file @
16aa7ca8
# include parent_common.mk for buildsystem's defines
#use absolute path for REPO_PARENT
#
use absolute path for REPO_PARENT
REPO_PARENT
?=
$(
shell
/bin/pwd
)
/..
-include
$(REPO_PARENT)/parent_common.mk
all
:
kernel lib tools
# a hack, to prevent compiling wr-nic.ko, which won't work on older kernels
CONFIG_WR_NIC
=
n
export
CONFIG_WR_NIC
DIRS
=
kernel lib tools
# The user can override, using environment variables, all these three:
ZIO
?=
$(
shell
pwd
)
/zio
# ZIO_ABS has to be absolut path, due to beeing
# passed to the Kbuild
ZIO_ABS
?=
$
(
abspath
$(ZIO)
)
export
ZIO_ABS
ZIO_VERSION
=
$(
shell
cd
$(ZIO_ABS)
;
git describe
--always
--dirty
--long
--tags
)
export
ZIO_VERSION
DIRS
=
$(ZIO_ABS)
kernel lib tools mamma/lib unittest
kernel
:
$(ZIO_ABS)
lib
:
$(ZIO_ABS)
$(SPEC_SW_ABS)
:
kernel
:
lib
:
tools
:
lib
DESTDIR
?=
/usr/local
.PHONY
:
all clean modules install modules_install $(DIRS)
.PHONY
:
gitmodules prereq_install prereq_install_warn
install modules_install
:
prereq_install_warn
install modules_install
:
all clean modules install modules_install
:
$(DIRS)
...
...
@@ -44,22 +29,5 @@ modules_install: TARGET = modules_install
$(DIRS)
:
$(MAKE)
-C
$@
$(TARGET)
SUBMOD
=
$(ZIO_ABS)
prereq_install_warn
:
@
test
-f
.prereq_installed
||
\
echo
-e
"
\n\n\t
WARNING: Consider
\"
make prereq_install
\"\n
"
prereq_install
:
for
d
in
$(SUBMOD)
;
do
$(MAKE)
-C
$$
d modules_install
||
exit
1
;
done
touch
.prereq_installed
$(ZIO_ABS)
:
zio-init_repo
# init submodule if missing
zio-init_repo
:
@
test
-d
$(ZIO_ABS)
/doc
||
(
echo
"Checking out submodule
$(ZIO_ABS)
"
&&
git submodule update
--init
$(ZIO_ABS)
)
cppcheck
:
for
d
in
kernel lib tools
;
do
$(MAKE)
-C
$$
d cppcheck
||
exit
1
;
done
for
d
in
$(DIRS)
;
do
$(MAKE)
-C
$$
d cppcheck
||
exit
1
;
done
kernel/Makefile
View file @
16aa7ca8
...
...
@@ -10,7 +10,7 @@ REPO_PARENT ?= $(shell /bin/pwd)/../..
CPPCHECK
?=
cppcheck
DKMS
?=
0
CURDIR
:=
$(
shell
/bin/pwd
)
KVERSION
?=
$(
shell
uname
-r
)
LINUX
?=
/lib/modules/
$(KVERSION)
/build
...
...
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