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 <daniele@wolfssl.com>devin/1740502756-add-freertos-fullstack-example
parent
34ec4140c7
commit
a57b09bed1
|
@ -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):
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue