mirror of
https://github.com/espressif/openthread.git
synced 2026-08-26 20:19:53 +00:00
travis: Update travis to do a make distcheck instead of just make check (#46)
* travis: Do a `make distcheck` instead of just `make check`
Doing a `make distcheck` instead of just a `make check` ensures that
the build system is sane and that the results from `make dist` have
everything needed.
* build-system: Fixes for `make distcheck`
This commit fixes the `distcheck` target by addressing the following
issues:
* Repaired ability to perform builds when the build directory is not
the source directory.
* Addressed an issue with the tarball name that occurs the very
first time `make` is run.
This commit is contained in:
committed by
Jonathan Hui
parent
f68de0f388
commit
059763bfcc
@@ -192,7 +192,7 @@ endif # OPENTHREAD_WITH_ESSENTIAL_TESTS_ONLY
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
export \
|
||||
top_srcdir='$(top_srcdir)' \
|
||||
top_builddir='$(top_builddir)' \
|
||||
VERBOSE=1; \
|
||||
$(NULL)
|
||||
|
||||
|
||||
@@ -52,8 +52,8 @@ class Node:
|
||||
|
||||
def __init_sim(self, nodeid):
|
||||
""" Initialize a simulation node. """
|
||||
if "top_srcdir" in os.environ.keys():
|
||||
srcdir = os.environ['top_srcdir']
|
||||
if "top_builddir" in os.environ.keys():
|
||||
srcdir = os.environ['top_builddir']
|
||||
cmd = '%s/examples/cli/soc' % srcdir
|
||||
else:
|
||||
cmd = './soc'
|
||||
|
||||
@@ -53,11 +53,11 @@ AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/third_party/mbedtls/repo/include \
|
||||
$(NULL)
|
||||
|
||||
COMMON_LDADD = \
|
||||
$(top_srcdir)/src/core/libopenthread.a \
|
||||
$(top_srcdir)/examples/platform/posix/libopenthread-posix.a \
|
||||
$(top_srcdir)/third_party/mbedtls/libmbedcrypto.a \
|
||||
-lpthread \
|
||||
COMMON_LDADD = \
|
||||
$(top_builddir)/src/core/libopenthread.a \
|
||||
$(top_builddir)/examples/platform/posix/libopenthread-posix.a \
|
||||
$(top_builddir)/third_party/mbedtls/libmbedcrypto.a \
|
||||
-lpthread \
|
||||
$(NULL)
|
||||
|
||||
# Test applications that should be run when the 'check' target is run.
|
||||
|
||||
Reference in New Issue
Block a user