Skip to content

Commit e359eb7

Browse files
committed
Merge branch 'devel'
2 parents a7b9bc3 + 17e0cd3 commit e359eb7

File tree

3 files changed

+9
-19
lines changed

3 files changed

+9
-19
lines changed

ci_build.sh

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,27 @@ LC_ALL=C
1010
export LANG LC_ALL
1111

1212
# Location of releases
13+
set +e
1314
GIT_DESCRIBE=$(git describe --tags --abbrev=10)
15+
if [ $? -ne 0 ]; then
16+
GIT_DESCRIBE=devel
17+
fi
18+
set -e
1419

1520
# Declare all combinations for deploy all
1621
# Note that the key is the name of the release object
1722
declare -A BUILDS
1823
BUILDS[afc-bpm-3.0-${GIT_DESCRIBE}]="\
19-
-DBOARD=afc-bpm \
20-
-DVERSION=3.0 \
21-
-DBOARD_RTM= \
22-
-DCMAKE_BUILD_TYPE=Release"
23-
BUILDS[afc-bpm-3.1-${GIT_DESCRIBE}]="\
24-
-DBOARD=afc-bpm \
25-
-DVERSION=3.1 \
26-
-DBOARD_RTM= \
27-
-DCMAKE_BUILD_TYPE=Release"
28-
BUILDS[afc-timing-${GIT_DESCRIBE}]="\
29-
-DBOARD=afc-timing \
30-
-DVERSION= \
31-
-DBOARD_RTM=rtm-8sfp \
32-
-DCMAKE_BUILD_TYPE=Release"
33-
BUILDS[debug-afc-bpm-3.0-${GIT_DESCRIBE}]="\
3424
-DBOARD=afc-bpm \
3525
-DVERSION=3.0 \
3626
-DBOARD_RTM= \
3727
-DCMAKE_BUILD_TYPE=RelWithDebInfo"
38-
BUILDS[debug-afc-bpm-3.1-${GIT_DESCRIBE}]="\
28+
BUILDS[afc-bpm-3.1-${GIT_DESCRIBE}]="\
3929
-DBOARD=afc-bpm \
4030
-DVERSION=3.1 \
4131
-DBOARD_RTM= \
4232
-DCMAKE_BUILD_TYPE=RelWithDebInfo"
43-
BUILDS[debug-afc-timing-${GIT_DESCRIBE}]="\
33+
BUILDS[afc-timing-${GIT_DESCRIBE}]="\
4434
-DBOARD=afc-timing \
4535
-DVERSION= \
4636
-DBOARD_RTM=rtm-8sfp \

modules/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ bool i2c_take_by_busid( uint8_t bus_id, uint8_t *i2c_interface, TickType_t timeo
8585

8686
bool i2c_take_by_chipid( uint8_t chip_id, uint8_t *i2c_address, uint8_t *i2c_interface, uint32_t timeout )
8787
{
88-
if ( chip_id > I2C_BUS_CNT ) {
88+
if ( chip_id > I2C_CHIP_CNT ) {
8989
return false;
9090
}
9191

toolchain/toolchain-arm-none-eabi.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ set( CMAKE_OBJCOPY ${TC_PATH}${CROSS_COMPILE}objcopy
2626
set( CMAKE_OBJDUMP ${TC_PATH}${CROSS_COMPILE}objdump
2727
CACHE FILEPATH "The toolchain objdump command " FORCE )
2828

29-
set(COMMON_FLAGS "-fno-builtin -ffunction-sections -fdata-sections -fno-strict-aliasing -fmessage-length=0")
29+
set(COMMON_FLAGS "-fno-common -fno-builtin -ffunction-sections -fdata-sections -fno-strict-aliasing -fmessage-length=0")
3030
set(CMAKE_C_FLAGS "${COMMON_FLAGS} -std=gnu99")
3131
set(CMAKE_CXX_FLAGS "${COMMON_FLAGS} -std=gnu++0x")
3232
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-gc-sections --specs=nosys.specs -nostdlib -static -nostartfiles")

0 commit comments

Comments
 (0)