Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
1bdde6b2
Commit
1bdde6b2
authored
May 30, 2017
by
Jens Korinth
Browse files
tapasco-build-libs: Fix bug when LINUX_HOME is not set
* also increased "cleanliness" in clean by removing lib dirs
parent
a74c7bb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tapasco-build-libs
View file @
1bdde6b2
...
...
@@ -34,6 +34,7 @@ if clean or args.rebuild:
subprocess
.
call
([
'rm -rf '
+
pdir
],
shell
=
True
)
subprocess
.
call
([
'rm -rf '
+
adir
],
shell
=
True
)
subprocess
.
call
([
'rm -rf '
+
tdir
],
shell
=
True
)
subprocess
.
call
([
'rm -rf $TAPASCO/home/arch/lib $TAPASCO_HOME/platform/lib'
],
shell
=
True
)
subprocess
.
call
([
'cd '
+
moddir
+
' && make clean'
],
shell
=
True
)
if
not
clean
:
...
...
@@ -42,14 +43,14 @@ if not clean:
else
:
print
(
'Building release mode libraries, pass "debug" as first argument to build debug libs...'
)
if
not
os
.
environ
[
'LINUX_HOME'
]
i
s
None
:
if
'LINUX_HOME'
i
n
os
.
environ
:
subprocess
.
call
([
'make -C '
+
os
.
environ
[
'LINUX_HOME'
]
+
' scripts'
],
shell
=
True
)
if
os
.
environ
[
'TAPASCO_PLATFORM'
]
is
'vc709'
:
print
'cd '
+
moddir
+
' && make '
+
(
'DEBUG_VERBOSE=y '
if
driver_debug
else
' '
)
subprocess
.
call
([
'cd '
+
moddir
+
' && make '
+
(
'DEBUG_VERBOSE=y '
if
driver_debug
else
' '
)],
shell
=
True
)
else
:
subprocess
.
call
([
'cd '
+
moddir
+
' && make '
+
(
''
if
driver_debug
else
'release '
)],
shell
=
True
)
else
:
if
os
.
environ
[
'TAPASCO_PLATFORM'
]
is
'vc709'
:
print
'cd '
+
moddir
+
' && make '
+
(
'DEBUG_VERBOSE=y '
if
driver_debug
else
' '
)
subprocess
.
call
([
'cd '
+
moddir
+
' && make '
+
(
'DEBUG_VERBOSE=y '
if
driver_debug
else
' '
)],
shell
=
True
)
else
:
subprocess
.
call
([
'cd '
+
moddir
+
' && make '
+
(
''
if
driver_debug
else
'release '
)],
shell
=
True
)
subprocess
.
call
([
'mkdir -p '
+
pdir
+
' && cd '
+
pdir
+
' && cmake '
+
(
''
if
debug
else
'-DCMAKE_BUILD_TYPE=Release'
)
+
' .. && make && make install'
],
shell
=
True
)
subprocess
.
call
([
'mkdir -p '
+
adir
+
' && cd '
+
adir
+
' && cmake '
+
(
''
if
debug
else
'-DCMAKE_BUILD_TYPE=Release'
)
+
' .. && make && make install'
],
shell
=
True
)
subprocess
.
call
([
'mkdir -p '
+
tdir
+
' && cd '
+
tdir
+
' && cmake '
+
(
''
if
debug
else
'-DCMAKE_BUILD_TYPE=Release'
)
+
' .. && make && make install'
],
shell
=
True
)
Jens Korinth
@jk
mentioned in commit
a831b501
·
Jul 14, 2017
mentioned in commit
a831b501
mentioned in commit a831b5015df6bd8f8d23ddd334a3b1159392de92
Toggle commit list
Write
Preview
Supports
Markdown
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