mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-01 08:09:49 +08:00
feat(coap): Bring coap from esp-idf
Commit ID: 22da5f6d
This commit is contained in:
32
components/coap/libcoap/scripts/build.sh
Executable file
32
components/coap/libcoap/scripts/build.sh
Executable file
@ -0,0 +1,32 @@
|
||||
#! /bin/sh
|
||||
|
||||
if test "x$TESTS" = "xyes" -o "x$TESTS" = "xtrue" ; then
|
||||
WITH_TESTS="`scripts/fix-cunit.sh` --enable-tests"
|
||||
test -f `pwd`/cunit.pc && echo cat `pwd`/cunit.pc
|
||||
fi
|
||||
|
||||
config() {
|
||||
echo "./configure $*"
|
||||
./configure $* || cat config.log
|
||||
}
|
||||
|
||||
case "${PLATFORM}" in
|
||||
contiki) config "--disable-tests --disable-documentation --disable-examples" && \
|
||||
make -C examples/contiki
|
||||
;;
|
||||
lwip) config "--disable-tests --disable-documentation --disable-examples" && \
|
||||
make -C examples/lwip lwip lwip-contrib
|
||||
make -C examples/lwip LDLIBS=`grep ac_cv_search_clock_gettime=- config.log|cut -d= -f2`
|
||||
;;
|
||||
posix|*) config "$WITH_TESTS --enable-documentation --enable-examples" && \
|
||||
make
|
||||
;;
|
||||
esac
|
||||
|
||||
err=$?
|
||||
if test $err = 0 -a -n "$WITH_TESTS" ; then
|
||||
tests/testdriver
|
||||
err=$?
|
||||
fi
|
||||
|
||||
exit $err
|
Reference in New Issue
Block a user