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"