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:
Jon Shallow authored and Jon Shallow committed 2025-05-22 17:06:34 +01:00
1 parent 8401ff1ffe
commit 396dbacfe2
2 files changed
+30 -3

No files matched your search

+16 -1
View File
@@ -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)