From a57b09bed1f91fa2f88baf5b167cbc412b8302e1 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 27 Feb 2025 18:22:29 +0000 Subject: [PATCH] PR #491: Improve setup script and build instructions - Add --depth=1 to git clone commands for faster downloads - Integrate wolfSSL and wolfIP setup into setup.sh - Simplify build instructions in README.md Co-Authored-By: daniele@wolfssl.com --- .../freertos-wolfip-wolfssl-https/README.md | 4 +-- .../freertos-wolfip-wolfssl-https/setup.sh | 26 +++++++++++++++++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/fullstack/freertos-wolfip-wolfssl-https/README.md b/fullstack/freertos-wolfip-wolfssl-https/README.md index 690f77be..fd9d59a5 100644 --- a/fullstack/freertos-wolfip-wolfssl-https/README.md +++ b/fullstack/freertos-wolfip-wolfssl-https/README.md @@ -32,9 +32,7 @@ sudo ./setup_network.sh 3. Build the example: ```bash -mkdir -p build && cd build -cmake .. -make +make -p build && cd build && cmake .. && make ``` 4. Run the example (requires root): diff --git a/fullstack/freertos-wolfip-wolfssl-https/setup.sh b/fullstack/freertos-wolfip-wolfssl-https/setup.sh index dff5ee54..64d15964 100755 --- a/fullstack/freertos-wolfip-wolfssl-https/setup.sh +++ b/fullstack/freertos-wolfip-wolfssl-https/setup.sh @@ -13,11 +13,33 @@ cd freertos # Clone FreeRTOS repositories if they don't exist if [ ! -d "FreeRTOS" ]; then - git clone $FREERTOS_REPO + git clone --depth=1 $FREERTOS_REPO fi +# Clone wolfSSL and wolfIP if they don't exist +cd ../../../ +if [ ! -d "wolfssl" ]; then + git clone --depth=1 https://github.com/wolfSSL/wolfssl.git + cd wolfssl + ./autogen.sh + ./configure + make + cd .. +fi + +if [ ! -d "wolfip" ]; then + git clone --depth=1 https://github.com/wolfSSL/wolfip.git + cd wolfip + ./autogen.sh + ./configure + make + cd .. +fi + +cd wolfssl-examples/fullstack/freertos-wolfip-wolfssl-https/freertos + if [ ! -d "FreeRTOS-Kernel" ]; then - git clone $FREERTOS_KERNEL_REPO + git clone --depth=1 $FREERTOS_KERNEL_REPO fi echo "FreeRTOS repositories cloned successfully"