Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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 DEL 1ns 4cha
Commits
0f5308b1
Commit
0f5308b1
authored
Nov 14, 2022
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bld: improve makefiles
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
42c7f455
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
Makefile
software/Makefile
+1
-1
Makefile
software/kernel/Makefile
+1
-1
Makefile
software/lib/Makefile
+10
-3
Makefile
software/tools/Makefile
+2
-0
No files found.
software/Makefile
View file @
0f5308b1
...
...
@@ -30,4 +30,4 @@ $(DIRS):
$(MAKE)
-C
$@
$(TARGET)
cppcheck
:
for
d
in
$(DIRS)
;
do
$(MAKE)
-C
$$
d
cppcheck
||
exit
1
;
done
for
d
in
$(DIRS)
;
do
$(MAKE)
-C
$$
d
$@
||
exit
1
;
done
software/kernel/Makefile
View file @
0f5308b1
...
...
@@ -15,7 +15,7 @@ KVERSION ?= $(shell uname -r)
KERNELSRC
?=
/lib/modules/
$(KVERSION)
/build
ifdef
REPO_PARENT
ZIO
?=
$(REPO_PARENT)
/
fmc/
zio
ZIO
?=
$(REPO_PARENT)
/zio
FMC
?=
$(REPO_PARENT)
/fmc-sw
endif
...
...
software/lib/Makefile
View file @
0f5308b1
...
...
@@ -6,12 +6,19 @@
-include
Makefile.specific
# include parent_common.mk for buildsystem's defines
IGNORE_CPU_SUFFIX
:=
y
REPO_PARENT
=
$(
shell
pwd
)
/../../..
-include
$(REPO_PARENT)/parent_common.mk
ifdef
REPO_PARENT
ZIO
?=
$(REPO_PARENT)
/zio
FMC
?=
$(REPO_PARENT)
/fmc-sw
endif
ZIO
?=
../zio
ZIO_ABS
?=
$
(
abspath
$(ZIO)
)
ifndef
ZIO
$(error
"Missing ZIO environment variable"
)
endif
ZIO_ABS
?=
$
(
abspath
$(ZIO)
)
VERSION
:=
$(
shell
git describe
--tags
--abbrev
=
0 |
tr
-d
'v'
)
SO_VERSION_XYZ
:=
$(
shell
echo
$(VERSION)
|
grep
-o
-E
"[0-9]+
\.
[0-9]+
\.
[0-9]"
)
...
...
@@ -75,4 +82,4 @@ cppcheck:
-include
.depend
.PHONY
=
cppcheck
.PHONY
:
cppcheck
software/tools/Makefile
View file @
0f5308b1
...
...
@@ -54,3 +54,5 @@ install:
cppcheck
:
$(CPPCHECK)
-q
-I
.
-I
../kernel
-I
$(LIBFD)
--suppress
=
missingIncludeSystem
--enable
=
all
*
.c
*
.h
.PHONY
:
cppcheck
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