Skip to content

Commit 2cf8776

Browse files
authored
Upgrading the Raspberry PI image to use OpenSSL>1.0.2 (#491)
Backporting Raspberry PI Buster scripts.
1 parent ceaf3c6 commit 2cf8776

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

build/.vsts-ci.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@ jobs:
5050
condition: always()
5151
- job: raspberrypi
5252
variables:
53-
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/raspberrypi-c"
53+
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/raspberrypi-c-buster:brown"
5454
pool: aziotbld-lin01
5555
displayName: raspberrypi
5656
steps:
5757
- script: |
58-
if [ -f "jenkins/raspberrypi_c.sh" ]
59-
then
60-
sudo ./jenkins/raspberrypi_c.sh
61-
fi
58+
chmod +x jenkins/raspberrypi_c_buster.sh
59+
./jenkins/raspberrypi_c_buster.sh
6260
displayName: 'build'
6361
- script: sudo rm -rf $(Agent.BuildDirectory)/*
6462
displayName: 'cleanup'

jenkins/raspberrypi_c_buster.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# assume directory is root of downloaded repo
3+
mkdir cmake
4+
cd cmake
5+
ls -al
6+
7+
# Create a cmake toolchain file on the fly
8+
echo "SET(CMAKE_SYSTEM_NAME Linux) # this one is important" > toolchain.cmake
9+
echo "SET(CMAKE_SYSTEM_VERSION 1) # this one not so much" >> toolchain.cmake
10+
11+
echo "SET(CMAKE_C_COMPILER ${TOOLCHAIN_EXES}/${TOOLCHAIN_NAME}-gcc)" >> toolchain.cmake
12+
echo "SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_EXES}/${TOOLCHAIN_NAME}-g++)" >> toolchain.cmake
13+
echo "SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_SYSROOT})" >> toolchain.cmake
14+
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> toolchain.cmake
15+
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> toolchain.cmake
16+
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> toolchain.cmake
17+
ls -al
18+
19+
# Build the SDK. This will use the OpenSSL, cURL and uuid binaries that we built before
20+
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -Duse_prov_client=OFF -DCMAKE_INSTALL_PREFIX=${TOOLCHAIN_PREFIX} -Drun_e2e_tests=ON -Drun_unittests=ON ..
21+
make -j 2
22+
ls -al

0 commit comments

Comments
 (0)