Skip to content

Commit a57b09b

Browse files
PR wolfSSL#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 <daniele@wolfssl.com>
1 parent 34ec414 commit a57b09b

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

fullstack/freertos-wolfip-wolfssl-https/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ sudo ./setup_network.sh
3232

3333
3. Build the example:
3434
```bash
35-
mkdir -p build && cd build
36-
cmake ..
37-
make
35+
make -p build && cd build && cmake .. && make
3836
```
3937

4038
4. Run the example (requires root):

fullstack/freertos-wolfip-wolfssl-https/setup.sh

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,33 @@ cd freertos
1313

1414
# Clone FreeRTOS repositories if they don't exist
1515
if [ ! -d "FreeRTOS" ]; then
16-
git clone $FREERTOS_REPO
16+
git clone --depth=1 $FREERTOS_REPO
1717
fi
1818

19+
# Clone wolfSSL and wolfIP if they don't exist
20+
cd ../../../
21+
if [ ! -d "wolfssl" ]; then
22+
git clone --depth=1 https://github.com/wolfSSL/wolfssl.git
23+
cd wolfssl
24+
./autogen.sh
25+
./configure
26+
make
27+
cd ..
28+
fi
29+
30+
if [ ! -d "wolfip" ]; then
31+
git clone --depth=1 https://github.com/wolfSSL/wolfip.git
32+
cd wolfip
33+
./autogen.sh
34+
./configure
35+
make
36+
cd ..
37+
fi
38+
39+
cd wolfssl-examples/fullstack/freertos-wolfip-wolfssl-https/freertos
40+
1941
if [ ! -d "FreeRTOS-Kernel" ]; then
20-
git clone $FREERTOS_KERNEL_REPO
42+
git clone --depth=1 $FREERTOS_KERNEL_REPO
2143
fi
2244

2345
echo "FreeRTOS repositories cloned successfully"

0 commit comments

Comments
 (0)