File tree Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments