mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
LwIP: Fix locking
In particular for TCP support. Also added in retrying to get the lwip git 3 times for the CI tests as the lwip host server is currently not that reliable, returning 502 gateway errors.
This commit is contained in:
1 parent
8401ff1ffe
commit
396dbacfe2
2 files changed
+30
-3
No files matched your search
+16
-1
@@ -40,7 +40,22 @@ all: lwip \
|
||||
client-dtls
|
||||
|
||||
lwip:
|
||||
git clone --depth 1 https://git.savannah.nongnu.org/git/lwip.git -b $(WITH_LWIP_BRANCH)
|
||||
@CHECK=`git clone --depth 1 https://git.savannah.nongnu.org/git/lwip.git -b $(WITH_LWIP_BRANCH) ; echo $$?` ; \
|
||||
if [ "$$CHECK" != 0 ] ; then \
|
||||
echo Try 1 $$CHECK ; \
|
||||
sleep 1 ;\
|
||||
CHECK=`git clone --depth 1 https://git.savannah.nongnu.org/git/lwip.git -b $(WITH_LWIP_BRANCH) ; echo $$?` ; \
|
||||
echo Try 2 $$CHECK ; \
|
||||
fi ; \
|
||||
if [ "$$CHECK" != 0 ] ; then \
|
||||
sleep 1 ;\
|
||||
CHECK=`git clone --depth 1 https://git.savannah.nongnu.org/git/lwip.git -b $(WITH_LWIP_BRANCH) ; echo $$?` ; \
|
||||
echo Try 3 $$CHECK ; \
|
||||
fi ; \
|
||||
if [ "$$CHECK" != 0 ] ; then \
|
||||
sleep 1 ;\
|
||||
git clone --depth 1 https://git.savannah.nongnu.org/git/lwip.git -b $(WITH_LWIP_BRANCH) ; \
|
||||
fi
|
||||
(cd lwip ; git checkout $(WITH_LWIP_BRANCH))
|
||||
$(MAKE)
|
||||
|
||||
|
||||
Reference in new issue
Block a user