Merge pull request #6381 from cgundogan/pr/jenkins_ccache_optimizations

jenkins: ccache optimizations
This commit is contained in:
Kaspar Schleiser 2017-01-17 08:35:24 +01:00 committed by GitHub
commit a98c4c6bdd
7 changed files with 8 additions and 7 deletions

3
Jenkinsfile vendored
View File

@ -178,7 +178,8 @@ def make_build(label, board, desc, arg)
for app in ${apps}; do
if [[ \$(make -sC \$app info-boards-supported | tr ' ' '\n' | sed -n '/^${board}\$/p') ]]; then
echo \"\n\nBuilding \$app for ${board}\" >> success_${board}_${desc}.log
make -j\${NPROC} -C \$app all >> success_${board}_${desc}.log 2>&1 || RESULT=1
rm -rf jenkins_bin; mkdir jenkins_bin
CFLAGS_DBG=\"\" BINDIR=\$(pwd)/jenkins_bin make -j\${NPROC} -C \$app all >> success_${board}_${desc}.log 2>&1 || RESULT=1
fi;
done;
if ((\$RESULT)); then

View File

@ -37,7 +37,7 @@ endif
# define build specific options
export CFLAGS_CPU = -mmcu=atmega328p $(CFLAGS_FPU)
export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
export CFLAGS_DBG = -ggdb -g3
export CFLAGS_DBG ?= -ggdb -g3
export CFLAGS_OPT ?= -Os
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)

View File

@ -36,7 +36,7 @@ endif
# define build specific options
export CFLAGS_CPU = -mmcu=atmega2560 $(CFLAGS_FPU)
export CFLAGS_LINK = -fno-builtin -fshort-enums
export CFLAGS_DBG = -ggdb -g3
export CFLAGS_DBG ?= -ggdb -g3
export CFLAGS_OPT ?= -Os
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)

View File

@ -6,7 +6,7 @@ TERMPROG ?= $(RIOTBASE)/dist/tools/pyterm/pyterm
export CFLAGS_CPU = -mcpu=arm7tdmi-s
export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
export CFLAGS_DBG = -ggdb -g3
export CFLAGS_DBG ?= -ggdb -g3
export CFLAGS_OPT ?= -Os
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)

View File

@ -46,7 +46,7 @@ endif
# define build specific options
export CFLAGS_CPU = -mmcu=atmega1281 $(CFLAGS_FPU)
export CFLAGS_LINK = -fno-builtin -fshort-enums
export CFLAGS_DBG = -ggdb -g3
export CFLAGS_DBG ?= -ggdb -g3
export CFLAGS_OPT ?= -Os
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)

View File

@ -9,7 +9,7 @@ ifneq (llvm,$(TOOLCHAIN))
export CFLAGS_CPU += -mno-thumb-interwork
endif
export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
export CFLAGS_DBG = -ggdb -g3
export CFLAGS_DBG ?= -ggdb -g3
export CFLAGS_OPT ?= -Os
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)

View File

@ -4,7 +4,7 @@ export TARGET_ARCH ?= msp430
# define build specific options
CFLAGS_CPU = -mmcu=$(CPU_MODEL) -std=gnu99
CFLAGS_LINK = -ffunction-sections -fdata-sections
CFLAGS_DBG = -gdwarf-2
CFLAGS_DBG ?= -gdwarf-2
CFLAGS_OPT ?= -Os
# export compiler flags
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)