From 4ce5c810693e929ebd8446a31689ef16b1a7aa09 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 1 Jan 2018 10:26:04 -0500 Subject: [PATCH] NuttX upgrade default compiler to GCC 7 --- Jenkinsfile | 29 ++++------------------- Tools/docker_run.sh | 4 ++-- cmake/common/px4_base.cmake | 2 ++ msg/templates/urtps/microRTPS_transport.h | 1 - 4 files changed, 8 insertions(+), 28 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5d3bc5382834..74e5f3feaa3e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { builds["${node_name}"] = { node { stage("Build Test ${node_name}") { - docker.image('px4io/px4-dev-nuttx:2017-10-23').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') { + docker.image('px4io/px4-dev-nuttx:2017-12-30').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') { stage("${node_name}") { checkout scm sh "make clean" @@ -38,7 +38,7 @@ pipeline { builds["px4fmu-v2"] = { node { stage("Build Test ${node_name}") { - docker.image('px4io/px4-dev-nuttx:2017-10-23').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') { + docker.image('px4io/px4-dev-nuttx:2017-12-30').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') { stage("${node_name}") { checkout scm sh "make clean" @@ -66,7 +66,7 @@ pipeline { builds["${node_name}"] = { node { stage("Build Test ${node_name}") { - docker.image('px4io/px4-dev-nuttx:2017-10-23').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') { + docker.image('px4io/px4-dev-nuttx:2017-12-30').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') { stage("${node_name}") { checkout scm sh "make clean" @@ -91,7 +91,7 @@ pipeline { builds["${node_name}"] = { node { stage("Build Test ${node_name}") { - docker.image('px4io/px4-dev-nuttx:2017-10-23').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') { + docker.image('px4io/px4-dev-nuttx:2017-12-30').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') { stage("${node_name}") { checkout scm sh "make clean" @@ -218,27 +218,6 @@ pipeline { } } - // GCC7 nuttx - for (def option in ["px4fmu-v5_default"]) { - def node_name = "${option}" - - builds["${node_name} (GCC7)"] = { - node { - stage("Build Test ${node_name} (GCC7)") { - docker.image('px4io/px4-dev-base-archlinux:2017-12-08').inside('-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw') { - stage("${node_name}") { - checkout scm - sh "make clean" - sh "ccache -z" - sh "make nuttx_${node_name}" - sh "ccache -s" - } - } - } - } - } - } - parallel builds } } diff --git a/Tools/docker_run.sh b/Tools/docker_run.sh index 9d00383e28ce..76a5cc4f517c 100755 --- a/Tools/docker_run.sh +++ b/Tools/docker_run.sh @@ -4,7 +4,7 @@ if [ -z ${PX4_DOCKER_REPO+x} ]; then echo "guessing PX4_DOCKER_REPO based on input"; if [[ $@ =~ .*px4fmu.* ]]; then # nuttx-px4fmu-v{1,2,3,4,5} - PX4_DOCKER_REPO="px4io/px4-dev-nuttx:2017-10-23" + PX4_DOCKER_REPO="px4io/px4-dev-nuttx:2017-12-30" elif [[ $@ =~ .*rpi.* ]] || [[ $@ =~ .*bebop.* ]]; then # posix_rpi_cross, posix_bebop_default PX4_DOCKER_REPO="px4io/px4-dev-raspi:2017-12-30" @@ -30,7 +30,7 @@ fi # otherwise default to nuttx if [ -z ${PX4_DOCKER_REPO+x} ]; then - PX4_DOCKER_REPO="px4io/px4-dev-nuttx:2017-10-23" + PX4_DOCKER_REPO="px4io/px4-dev-nuttx:2017-12-30" fi # docker hygiene diff --git a/cmake/common/px4_base.cmake b/cmake/common/px4_base.cmake index 54f553ba403b..248f026863ca 100644 --- a/cmake/common/px4_base.cmake +++ b/cmake/common/px4_base.cmake @@ -332,6 +332,8 @@ function(px4_add_common_flags) -Wunknown-pragmas -Wunused-variable + -Wno-implicit-fallthrough # set appropriate level and update + -Wno-unused-parameter ) diff --git a/msg/templates/urtps/microRTPS_transport.h b/msg/templates/urtps/microRTPS_transport.h index e2d5c245c790..5ef27e5d2810 100644 --- a/msg/templates/urtps/microRTPS_transport.h +++ b/msg/templates/urtps/microRTPS_transport.h @@ -32,7 +32,6 @@ #pragma once -#include #include #include #include