2019-10-30 06:00:09 +00:00
|
|
|
PROG ?= micropython-coverage
|
2019-10-23 00:20:07 +00:00
|
|
|
|
2020-04-03 01:55:14 +00:00
|
|
|
# Disable optimisations and enable assert() on coverage builds.
|
|
|
|
DEBUG ?= 1
|
2019-10-23 00:20:07 +00:00
|
|
|
|
2020-01-24 00:51:21 +00:00
|
|
|
CFLAGS += \
|
2019-10-23 00:20:07 +00:00
|
|
|
-fprofile-arcs -ftest-coverage \
|
2020-04-09 11:59:11 +00:00
|
|
|
-Wformat -Wmissing-declarations -Wmissing-prototypes \
|
2019-10-23 00:20:07 +00:00
|
|
|
-Wold-style-definition -Wpointer-arith -Wshadow -Wuninitialized -Wunused-parameter \
|
2021-03-30 13:45:43 +00:00
|
|
|
-DMICROPY_UNIX_COVERAGE
|
2019-10-23 00:20:07 +00:00
|
|
|
|
2020-01-24 00:51:21 +00:00
|
|
|
LDFLAGS += -fprofile-arcs -ftest-coverage
|
2019-10-23 00:20:07 +00:00
|
|
|
|
2020-06-09 06:45:17 +00:00
|
|
|
FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py
|
2020-10-21 09:13:47 +00:00
|
|
|
USER_C_MODULES = $(TOP)/examples/usercmodule
|
2019-10-23 00:20:07 +00:00
|
|
|
|
ports: Enable error text compression for various ports, but not all.
Enabled on: bare-arm, minimal, unix coverage/dev/minimal, stm32, esp32,
esp8266, cc3200, teensy, qemu-arm, nrf. Not enabled on others to be able
to test the code when the feature is disabled (the default case).
Code size change for this commit:
bare-arm: -600 -0.906%
minimal x86: -308 -0.208%
unix x64: +0 +0.000%
unix nanbox: +0 +0.000%
stm32: -3368 -0.869% PYBV10
cc3200: -1024 -0.558%
esp8266: -2512 -0.368% GENERIC
esp32: -2876 -0.205% GENERIC[incl -3168(data)]
nrf: -1708 -1.173% pca10040
samd: +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
2020-03-04 10:56:44 +00:00
|
|
|
MICROPY_ROM_TEXT_COMPRESSION = 1
|
2019-10-23 00:20:07 +00:00
|
|
|
MICROPY_VFS_FAT = 1
|
|
|
|
MICROPY_VFS_LFS1 = 1
|
|
|
|
MICROPY_VFS_LFS2 = 1
|
2020-10-29 06:33:34 +00:00
|
|
|
|
|
|
|
SRC_C += coverage.c
|
|
|
|
SRC_CXX += coveragecpp.cpp
|