diff options
author | Dominic Spill <dominicgs@gmail.com> | 2015-09-06 23:04:06 +0100 |
---|---|---|
committer | Dominic Spill <dominicgs@gmail.com> | 2015-09-06 23:04:06 +0100 |
commit | 78704170ecae9139a517a693b446e7c1c84193f0 (patch) | |
tree | 18f4357c7bb42fa8ddf8ffb74b9ce013a77963b1 /firmware/common.mk | |
parent | 22f72882670489acf13971165a760c9c33f9bb8a (diff) |
Allow Rx only firmware to be built by setting an environment variable
e.g. DISABLE_TX=1 make bluetooth_rxtx
Diffstat (limited to 'firmware/common.mk')
-rw-r--r-- | firmware/common.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/common.mk b/firmware/common.mk index 1bd1c2f..e393bdd 100644 --- a/firmware/common.mk +++ b/firmware/common.mk @@ -47,8 +47,10 @@ BOARD ?= UBERTOOTH_ONE UBERTOOTH_OPTS = -D$(BOARD) -# comment to disable RF transmission -UBERTOOTH_OPTS += -DTX_ENABLE +ifeq ($(DISABLE_TX), ) + # comment to disable RF transmission + UBERTOOTH_OPTS += -DTX_ENABLE +endif DIRTY = $(shell git status -s --untracked-files=no) ifneq ($(DIRTY), ) @@ -465,7 +467,7 @@ clean_list: $(REMOVE) $(SRC:.c=.i) $(REMOVE) InvalidEvents.tmp $(REMOVE) $(TARGET).bin - $(REMOVE) $(TARGET).dfu + $(REMOVE) $(TARGET).bin.dfu $(REMOVE) $(TARGET).srec doxygen: |