Skip to content

Commit

Permalink
Upgrading the Raspberry PI image to use OpenSSL>1.0.2 (#491)
Browse files Browse the repository at this point in the history
Backporting Raspberry PI Buster scripts.
  • Loading branch information
CIPop authored Dec 8, 2020
1 parent ceaf3c6 commit 2cf8776
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build/.vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,13 @@ jobs:
condition: always()
- job: raspberrypi
variables:
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/raspberrypi-c"
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/raspberrypi-c-buster:brown"
pool: aziotbld-lin01
displayName: raspberrypi
steps:
- script: |
if [ -f "jenkins/raspberrypi_c.sh" ]
then
sudo ./jenkins/raspberrypi_c.sh
fi
chmod +x jenkins/raspberrypi_c_buster.sh
./jenkins/raspberrypi_c_buster.sh
displayName: 'build'
- script: sudo rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
Expand Down
22 changes: 22 additions & 0 deletions jenkins/raspberrypi_c_buster.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# assume directory is root of downloaded repo
mkdir cmake
cd cmake
ls -al

# Create a cmake toolchain file on the fly
echo "SET(CMAKE_SYSTEM_NAME Linux) # this one is important" > toolchain.cmake
echo "SET(CMAKE_SYSTEM_VERSION 1) # this one not so much" >> toolchain.cmake

echo "SET(CMAKE_C_COMPILER ${TOOLCHAIN_EXES}/${TOOLCHAIN_NAME}-gcc)" >> toolchain.cmake
echo "SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_EXES}/${TOOLCHAIN_NAME}-g++)" >> toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_SYSROOT})" >> toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> toolchain.cmake
ls -al

# Build the SDK. This will use the OpenSSL, cURL and uuid binaries that we built before
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -Duse_prov_client=OFF -DCMAKE_INSTALL_PREFIX=${TOOLCHAIN_PREFIX} -Drun_e2e_tests=ON -Drun_unittests=ON ..
make -j 2
ls -al

0 comments on commit 2cf8776

Please sign in to comment.