Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
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
White Rabbit Trigger Distribution
Commits
4b073d15
Commit
4b073d15
authored
Oct 16, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sw] allow full software installation from top-level makefile
parent
d4aaee21
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
9 deletions
+17
-9
Makefile
software/Makefile
+8
-5
Makefile
software/drivers/Makefile
+5
-1
__init__.py
software/lib/python/PyWrtd/__init__.py
+1
-0
setup.py
software/lib/python/setup.py
+2
-2
wrtd_tool.py
software/tools/wrtd_tool/wrtd_tool.py
+1
-1
No files found.
software/Makefile
View file @
4b073d15
...
@@ -10,16 +10,19 @@ REPO_PARENT ?= $(CURDIR)/..
...
@@ -10,16 +10,19 @@ REPO_PARENT ?= $(CURDIR)/..
# on Mock Turtle.
# on Mock Turtle.
WRTD_DEP_TRTL
?=
$(CURDIR)
/../dependencies/mock-turtle
WRTD_DEP_TRTL
?=
$(CURDIR)
/../dependencies/mock-turtle
DIRS
=
$(WRTD_DEP_TRTL)
/software drivers lib
firmware
DIRS
=
$(WRTD_DEP_TRTL)
/software drivers lib
lib/python tools
all clean
:
$(DIRS)
all clean
install
:
$(DIRS)
tools
:
lib
tools
:
lib
.PHONY
:
all clean
$(DIRS)
.PHONY
:
all clean
install $(DIRS) firmware
clean
:
TARGET = clean
clean
:
TARGET = clean
modules
:
TARGET = modules
install
:
TARGET = install
$(DIRS)
:
$(DIRS)
:
$(MAKE)
-C
$@
$(TARGET)
$(MAKE)
-C
$@
$(TARGET)
firmware
:
$(MAKE)
-C
firmware
software/drivers/Makefile
View file @
4b073d15
...
@@ -13,8 +13,12 @@ all: modules
...
@@ -13,8 +13,12 @@ all: modules
.PHONY
:
all modules clean help install modules_install
.PHONY
:
all modules clean help install modules_install
modules help
install
modules_install
:
modules help modules_install
:
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
pwd
)
DRV_VERSION
=
$(DRV_VERSION)
$@
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
pwd
)
DRV_VERSION
=
$(DRV_VERSION)
$@
install
:
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
pwd
)
DRV_VERSION
=
$(DRV_VERSION)
modules_install
# be able to run the "clean" rule even if $(LINUX) is not valid
# be able to run the "clean" rule even if $(LINUX) is not valid
clean
:
clean
:
rm
-rf
*
.o
*
~ .
*
.cmd
*
.ko
*
.mod.c .tmp_versions Module.symvers
\
rm
-rf
*
.o
*
~ .
*
.cmd
*
.ko
*
.mod.c .tmp_versions Module.symvers
\
...
...
software/lib/python/PyWrtd/__init__.py
View file @
4b073d15
from
.PyWrtd
import
PyWrtd
software/lib/python/setup.py
View file @
4b073d15
#!/usr/bin/env python
#!/usr/bin/env python
from
setuptools
import
setup
from
setuptools
import
setup
,
find_packages
setup
(
setup
(
name
=
'PyWrtd'
,
name
=
'PyWrtd'
,
...
@@ -15,6 +15,6 @@ setup(
...
@@ -15,6 +15,6 @@ setup(
"Documentation"
:
"https://wrtd.readthedocs.io"
,
"Documentation"
:
"https://wrtd.readthedocs.io"
,
"Forum"
:
"https://forums.ohwr.org/c/wrtd"
,
"Forum"
:
"https://forums.ohwr.org/c/wrtd"
,
},
},
packages
=
[
'PyWrtd'
]
,
packages
=
find_packages
()
,
license
=
'LGPLv3'
,
license
=
'LGPLv3'
,
)
)
software/tools/wrtd_tool/wrtd_tool.py
View file @
4b073d15
...
@@ -11,7 +11,7 @@ import time
...
@@ -11,7 +11,7 @@ import time
import
argparse
import
argparse
import
re
import
re
from
PyWrtd
import
*
from
PyWrtd
import
PyWrtd
def
signal_handler
(
sig
,
frame
):
def
signal_handler
(
sig
,
frame
):
sys
.
exit
(
0
)
sys
.
exit
(
0
)
...
...
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