Browse Source

Disable debugging by default

Some issues with pointer conversion will be reported (due to a missing
macro call). For now, let's just set -Wno-error for that.
peter
Peter Cai 2 months ago
parent
commit
40c3928ce1
  1. 5
      Makefile

5
Makefile

@ -3,6 +3,10 @@ export PYTHONPATH := $(PWD)/tools/nrfutil:$(PWD)/tools/intelhex:$(PYTHONPATH)
PYTHON ?= python3
PYTEST ?= pytest-3
# Disable debugging to save some space
DEBUG ?= 0
CFLAGS_EXTRA ?= -Wno-error=incompatible-pointer-types
all : bootloader reloader micropython
# If BOARD is undefined then set it up so that expanding it issues an
@ -67,6 +71,7 @@ micropython: build-$(BOARD_SAFE) wasp/boards/$(BOARD_SAFE)/watch.py micropython/
BOARD=$(BOARD) SD=s132 \
MICROPY_VFS_LFS2=1 \
FROZEN_MANIFEST=$(PWD)/wasp/boards/$(BOARD)/manifest.py \
DEBUG=$(DEBUG) CFLAGS_EXTRA=$(CFLAGS_EXTRA) \
USER_C_MODULES=$(PWD)/wasp/modules
$(PYTHON) -m nordicsemi dfu genpkg \
--dev-type 0x0052 \

Loading…
Cancel
Save