1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles: move exports to vars.inc.mk

This commit is contained in:
Sebastian Meiling 2019-12-12 20:40:54 +01:00
parent 4f4e7cde16
commit 5eee821f6e
3 changed files with 6 additions and 3 deletions

View File

@ -203,13 +203,11 @@ endif
# Fail on warnings. Can be overridden by `make WERROR=0`.
WERROR ?= 1
export WERROR
ifeq ($(WERROR),1)
CFLAGS += -Werror
endif
WPEDANTIC ?= 0
export WPEDANTIC
ifeq ($(WPEDANTIC),1)
CFLAGS += -Wpedantic
endif
@ -295,7 +293,6 @@ ifeq (,$(TOOLCHAIN))
override TOOLCHAIN := gnu
endif
export TOOLCHAIN
# default toolchain prefix, defaults to target triple followed by a dash, you
# will most likely not need to touch this.

View File

@ -83,6 +83,10 @@ UNEXPORTED_VARIABLES+=('PORT[ ?=:]' 'PORT$')
EXPORTED_VARIABLES_ONLY_IN_VARS=()
EXPORTED_VARIABLES_ONLY_IN_VARS+=('CPU_ARCH')
EXPORTED_VARIABLES_ONLY_IN_VARS+=('CPU_FAM')
EXPORTED_VARIABLES_ONLY_IN_VARS+=('TOOLCHAIN')
EXPORTED_VARIABLES_ONLY_IN_VARS+=('WERROR')
EXPORTED_VARIABLES_ONLY_IN_VARS+=('WPEDANTIC')
check_not_exporting_variables() {
local patterns=()
local pathspec=()

View File

@ -44,6 +44,7 @@ export FEATURES_PROVIDED # List of provided features by the board
export FEATURES_OPTIONAL # List of nice to have features
# TOOLCHAINS_SUPPORTED # List of supported toolchains by an MCU (gnu/llvm/...).
# TOOLCHAINS_BLACKLISTED # List of unspported toolchains for a module or an application.
export TOOLCHAIN # Base build toolchain, i.e. GNU or LLVM
export TARGET_ARCH # The target platform name, in GCC triple notation, e.g. "arm-none-eabi", "i686-elf", "avr"
export PREFIX # The prefix of the toolchain commands, usually "$(TARGET_ARCH)-", e.g. "arm-none-eabi-" or "msp430-".
@ -71,6 +72,7 @@ export SIZE # The command to read to size of the ELF sections.
export SIZEFLAGS # The optional size flags.
export UNDEF # Object files that the linker must include in the ELFFILE even if no call to the functions or symbols (ex: interrupt vectors).
export WERROR # Treat all compiler warnings as errors if set to 1 (see -Werror flag in GCC manual)
export WPEDANTIC # Issue all (extensive) compiler warnings demanded by strict C/C++
export GITCACHE # path to git-cache executable
export GIT_CACHE_DIR # path to git-cache cache directory