Upgrading the Raspberry PI image to use OpenSSL>1.0.2 (#491)

Backporting Raspberry PI Buster scripts.
This commit is contained in:
Cristian Pop 2020-12-08 15:21:50 -08:00 коммит произвёл GitHub
Родитель ceaf3c6525
Коммит 2cf8776669
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 25 добавлений и 5 удалений

Просмотреть файл

@ -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'

Просмотреть файл

@ -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