Loading Makefile +7 −14 Original line number Diff line number Diff line Loading @@ -2,12 +2,15 @@ # # SPDX-License-Identifier: BSD-2-Clause COMMON_FLAGS = -g -Os -Wall -Wextra # Only load .config when app/arch are not specified on commandline ifneq (${app}, ) CONFIG_app = ${app} CONFIG_arch = ${arch} else -include .config COMMON_FLAGS += -include include/config.h endif # Make cannot include "foo"/Makefile.inc, so remove quotes from config entries Loading @@ -16,7 +19,6 @@ app_dir = $(subst ${quote},,${CONFIG_app}) arch_dir = $(subst ${quote},,${CONFIG_arch}) INCLUDES = -Iinclude -Iinclude/arch/${arch_dir} COMMON_FLAGS = -g -Os -Wall -Wextra CFLAGS = -std=c99 CXXFLAGS = -std=c++14 -fno-rtti -fno-threadsafe-statics -fno-exceptions Loading Loading @@ -349,24 +351,15 @@ ifeq (${timer_us}, 1) endif ifeq (${loop}, 1) COMMON_FLAGS += -DWITH_LOOP endif ifdef CONFIG_loop COMMON_FLAGS += -DWITH_LOOP COMMON_FLAGS += -DCONFIG_loop endif ifeq (${wakeup}, 1) COMMON_FLAGS += -DWITH_WAKEUP endif ifdef CONFIG_wakeup COMMON_FLAGS += -DWITH_WAKEUP COMMON_FLAGS += -DCONFIG_wakeup endif ifeq (${ostream}, 1) COMMON_FLAGS += -DWITH_OSTREAM endif ifdef CONFIG_ostream COMMON_FLAGS += -DWITH_OSTREAM COMMON_FLAGS += -DCONFIG_ostream endif ifeq (${trace_malloc}, 1) Loading @@ -381,7 +374,7 @@ endif default: build/system.elf include/config.h: .config ${QUIET}awk -f script/conf2h.awk .config > include/config.h ${QUIET}test -z "${app}" && awk -f script/conf2h.awk .config > include/config.h || : > include/config.h stack: default ${QUIET}test -n "${OBJDUMP}" Loading include/object/outputstream.h +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ #define OUTPUTSTREAM_H #include <stdint.h> #ifdef WITH_OSTREAM #ifdef CONFIG_ostream #include <ostream> #endif Loading Loading @@ -47,7 +47,7 @@ class OutputStream { OutputStream & operator<<(double number); OutputStream & operator<<(OutputStream & (*fun) (OutputStream &)); #ifdef WITH_OSTREAM #ifdef CONFIG_ostream OutputStream & operator<<(std::string s); #endif Loading src/app/blinkencat3/Makefile.inc +1 −1 Original line number Diff line number Diff line Loading @@ -5,6 +5,6 @@ # SPDX-License-Identifier: CC0-1.0 ifdef app CONFIG_loop = y loop = 1 override arch_drivers += ,neopixel endif src/app/bme680-max44009-logger/Makefile.inc +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ # SPDX-License-Identifier: CC0-1.0 ifdef app CONFIG_loop = y loop = 1 override arch_drivers += ,i2c CONFIG_driver_bme680 = y CONFIG_driver_max44009 = y Loading src/app/ccs811test/Makefile.inc +1 −1 Original line number Diff line number Diff line Loading @@ -7,5 +7,5 @@ ifdef app override arch_drivers += ,i2c CONFIG_driver_ccS811 = y CONFIG_loop = y loop = 1 endif Loading
Makefile +7 −14 Original line number Diff line number Diff line Loading @@ -2,12 +2,15 @@ # # SPDX-License-Identifier: BSD-2-Clause COMMON_FLAGS = -g -Os -Wall -Wextra # Only load .config when app/arch are not specified on commandline ifneq (${app}, ) CONFIG_app = ${app} CONFIG_arch = ${arch} else -include .config COMMON_FLAGS += -include include/config.h endif # Make cannot include "foo"/Makefile.inc, so remove quotes from config entries Loading @@ -16,7 +19,6 @@ app_dir = $(subst ${quote},,${CONFIG_app}) arch_dir = $(subst ${quote},,${CONFIG_arch}) INCLUDES = -Iinclude -Iinclude/arch/${arch_dir} COMMON_FLAGS = -g -Os -Wall -Wextra CFLAGS = -std=c99 CXXFLAGS = -std=c++14 -fno-rtti -fno-threadsafe-statics -fno-exceptions Loading Loading @@ -349,24 +351,15 @@ ifeq (${timer_us}, 1) endif ifeq (${loop}, 1) COMMON_FLAGS += -DWITH_LOOP endif ifdef CONFIG_loop COMMON_FLAGS += -DWITH_LOOP COMMON_FLAGS += -DCONFIG_loop endif ifeq (${wakeup}, 1) COMMON_FLAGS += -DWITH_WAKEUP endif ifdef CONFIG_wakeup COMMON_FLAGS += -DWITH_WAKEUP COMMON_FLAGS += -DCONFIG_wakeup endif ifeq (${ostream}, 1) COMMON_FLAGS += -DWITH_OSTREAM endif ifdef CONFIG_ostream COMMON_FLAGS += -DWITH_OSTREAM COMMON_FLAGS += -DCONFIG_ostream endif ifeq (${trace_malloc}, 1) Loading @@ -381,7 +374,7 @@ endif default: build/system.elf include/config.h: .config ${QUIET}awk -f script/conf2h.awk .config > include/config.h ${QUIET}test -z "${app}" && awk -f script/conf2h.awk .config > include/config.h || : > include/config.h stack: default ${QUIET}test -n "${OBJDUMP}" Loading
include/object/outputstream.h +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ #define OUTPUTSTREAM_H #include <stdint.h> #ifdef WITH_OSTREAM #ifdef CONFIG_ostream #include <ostream> #endif Loading Loading @@ -47,7 +47,7 @@ class OutputStream { OutputStream & operator<<(double number); OutputStream & operator<<(OutputStream & (*fun) (OutputStream &)); #ifdef WITH_OSTREAM #ifdef CONFIG_ostream OutputStream & operator<<(std::string s); #endif Loading
src/app/blinkencat3/Makefile.inc +1 −1 Original line number Diff line number Diff line Loading @@ -5,6 +5,6 @@ # SPDX-License-Identifier: CC0-1.0 ifdef app CONFIG_loop = y loop = 1 override arch_drivers += ,neopixel endif
src/app/bme680-max44009-logger/Makefile.inc +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ # SPDX-License-Identifier: CC0-1.0 ifdef app CONFIG_loop = y loop = 1 override arch_drivers += ,i2c CONFIG_driver_bme680 = y CONFIG_driver_max44009 = y Loading
src/app/ccs811test/Makefile.inc +1 −1 Original line number Diff line number Diff line Loading @@ -7,5 +7,5 @@ ifdef app override arch_drivers += ,i2c CONFIG_driver_ccS811 = y CONFIG_loop = y loop = 1 endif