2016-07-24 03:10:03 +00:00
|
|
|
CONTIKI_PROJECT = sensniff
|
2017-10-08 16:32:42 +00:00
|
|
|
CONTIKI = ../..
|
2016-07-24 03:10:03 +00:00
|
|
|
|
2018-10-12 13:13:29 +00:00
|
|
|
PLATFORMS_ONLY = cc2538dk openmote-cc2538 zoul cc26x0-cc13x0 jn516x simplelink
|
2018-02-23 17:38:52 +00:00
|
|
|
|
2017-05-17 13:30:36 +00:00
|
|
|
PROJECT_SOURCEFILES += sensniff-mac.c netstack.c
|
2017-12-19 13:29:55 +00:00
|
|
|
MODULES_REL += pool $(TARGET)
|
2016-07-24 03:10:03 +00:00
|
|
|
|
2017-12-18 17:21:47 +00:00
|
|
|
include $(CONTIKI)/Makefile.identify-target
|
2016-07-24 03:10:03 +00:00
|
|
|
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
|
2017-10-08 12:47:34 +00:00
|
|
|
# use a custom MAC driver: sensniff_mac_driver
|
|
|
|
MAKE_MAC = MAKE_MAC_OTHER
|
2016-07-24 03:10:03 +00:00
|
|
|
include $(CONTIKI)/Makefile.include
|
2016-12-04 18:51:57 +00:00
|
|
|
|
|
|
|
PYTHON ?= python
|
|
|
|
SENSNIFF = $(CONTIKI)/tools/sensniff/sensniff.py
|
|
|
|
|
|
|
|
ifeq ($(BAUDRATE),)
|
|
|
|
BAUDRATE = 460800
|
|
|
|
endif
|
|
|
|
|
|
|
|
SENSNIFF_FLAGS += -b $(BAUDRATE)
|
|
|
|
|
|
|
|
ifneq ($(PORT),)
|
|
|
|
SENSNIFF_FLAGS += -d $(PORT)
|
|
|
|
endif
|
|
|
|
|
|
|
|
sniff:
|
|
|
|
ifeq ($(wildcard $(SENSNIFF)), )
|
|
|
|
$(error Could not find the sensniff script. Did you run 'git submodule update --init' ?")
|
|
|
|
else
|
|
|
|
$(PYTHON) $(SENSNIFF) $(SENSNIFF_FLAGS)
|
|
|
|
endif
|