Commit 1bdde6b2 authored by Jens Korinth's avatar 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
......@@ -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,9 +43,9 @@ if not clean:
else:
print('Building release mode libraries, pass "debug" as first argument to build debug libs...')
if not os.environ['LINUX_HOME'] is None:
if 'LINUX_HOME' in os.environ:
subprocess.call(['make -C ' + os.environ['LINUX_HOME'] + ' scripts'], 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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment