Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
753 B

  1. ARMCC?= arm-none-eabi-gcc
  2. ARMTARGET?= -mcpu=cortex-m3 -mthumb -DSTROBE_SINGLE_THREAD=1
  3. CFLAGS = -Istrobe
  4. CFLAGS+= -DNDEBUG
  5. SRCS = \
  6. strobe/strobe.c strobe/x25519.c
  7. .OBJDIR = build
  8. .PHONY: all
  9. all: $(BUILDDIR)/strobe.o $(BUILDDIR)/x25519.o
  10. .PHONY: runtests
  11. runtests:
  12. ls *.py | entr sh -c 'python -m coverage run -m unittest lora && coverage report --omit=p/\* -m -i'
  13. $(BUILDDIR):
  14. mkdir -p $@
  15. $(BUILDDIR)/%.o : %.c
  16. $(ARMCC) $(ARMTARGET) $(CFLAGS) -c $< -o $@
  17. STROBE_REPO = https://git.code.sf.net/p/strobe/code
  18. STROBE_BRANCH = master
  19. .PHONY: init-strobe
  20. init-strobe:
  21. git subtree add -P strobe --squash $(STROBE_REPO) $(STROBE_BRANCH)
  22. .PHONY: update-strobe
  23. update-strobe:
  24. git subtree pull -P strobe --squash $(STROBE_REPO) $(STROBE_BRANCH)