Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
Platform-independent core collection
Commits
96728bc0
Commit
96728bc0
authored
Sep 11, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: improve build system
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
5d1a20d3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
13 deletions
+44
-13
Makefile
software/Makefile
+23
-0
Makefile
software/i2c-ocores/Makefile
+2
-2
Makefile
software/i2c-ocores/drivers/i2c/busses/Makefile
+8
-6
Makefile
software/spi-ocores/Makefile
+2
-2
Makefile
software/spi-ocores/drivers/spi/Makefile
+9
-3
No files found.
software/Makefile
0 → 100644
View file @
96728bc0
-include
Makefile.specific
# include parent_common.mk for buildsystem's defines
#use absolute path for REPO_PARENT
REPO_PARENT
?=
$(
shell
/bin/pwd
)
/..
-include
$(REPO_PARENT)/parent_common.mk
DIRS
:=
i2c-ocores
DIRS
+=
spi-ocores
.PHONY
:
all clean modules install modules_install $(DIRS)
all clean
:
$(DIRS)
clean
:
$(MAKE)
clean
:
TARGET = clean
modules
:
TARGET = modules
install
:
TARGET = install
modules_install
:
TARGET = modules_install
$(DIRS)
:
$(MAKE)
-C
$@
$(TARGET)
software/i2c-ocores/Makefile
View file @
96728bc0
...
...
@@ -6,8 +6,8 @@ REPO_PARENT ?= $(shell /bin/pwd)/../..
all
:
modules
modules
help install modules_install
clean
:
modules clean
:
export
CONFIG_I2C_OCORES
=
m
make
-C
$(
shell
pwd
)
/drivers/i2c/busses
$@
.PHONY
:
all modules clean
help install modules_install
.PHONY
:
all modules clean
software/i2c-ocores/drivers/i2c/busses/Makefile
View file @
96728bc0
...
...
@@ -5,13 +5,15 @@ REPO_PARENT ?= $(shell /bin/pwd)/../..
-include
$(REPO_PARENT)/parent_common.mk
LINUX
?=
/lib/modules/
$(
shell
uname
-r
)
/build
export
LINUX
=
/user/fvaga/workspace/projects/centos/cern-beco-kernel-rt/BUILD/kernel-3.10.0/linux-3.10.0.x86_64
export
CONFIG_I2C_OCORES
=
m
all
:
modules
modules help install modules_install
:
make
-C
$(LINUX)
M
=
$(
shell
pwd
)
modules
:
i2c-ocores
clean
:
rm
-f
*
.o
*
.ko
*
.mod.o
*
.mod.c Module.symvers modules.order
i2c-ocores
:
make
-C
$(LINUX)
M
=
$(
shell
pwd
)
CONFIG_I2C_OCORES
=
m modules
.PHONY
:
all modules clean
help install modules_install
.PHONY
:
all modules clean
software/spi-ocores/Makefile
View file @
96728bc0
...
...
@@ -6,7 +6,7 @@ REPO_PARENT ?= $(shell /bin/pwd)/../..
all
:
modules
modules
help install modules_install
clean
:
modules clean
:
make
-C
$(
shell
pwd
)
/drivers/spi
$@
.PHONY
:
all modules clean
help install modules_install
.PHONY
:
all modules clean
software/spi-ocores/drivers/spi/Makefile
View file @
96728bc0
...
...
@@ -8,7 +8,13 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
all
:
modules
modules help install modules_install
:
make
-C
$(LINUX)
M
=
$(
shell
pwd
)
CONFIG_SPI_OCORES
=
m
modules
:
spi-ocores
.PHONY
:
all modules clean help install modules_install
clean
:
rm
-f
*
.o
*
.ko
*
.mod.o
*
.mod.c Module.symvers modules.order
spi-ocores
:
make
-C
$(LINUX)
M
=
$(
shell
pwd
)
CONFIG_SPI_OCORES
=
m modules
.PHONY
:
all modules clean
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