Browse Source

start the Makefile.. some basic arm building, and python test running..

mbed-sx1276
John-Mark Gurney 3 years ago
parent
commit
d037cee5de
1 changed files with 23 additions and 1 deletions
  1. +23
    -1
      Makefile

+ 23
- 1
Makefile View File

@@ -1,4 +1,26 @@
ARMCC = arm-none-eabi-gcc
ARMCC?= arm-none-eabi-gcc
ARMTARGET?= -mcpu=cortex-m3 -mthumb -DSTROBE_SINGLE_THREAD=1

CFLAGS = -Istrobe
CFLAGS+= -DNDEBUG

SRCS = \
strobe/strobe.c strobe/x25519.c

.OBJDIR = build

.PHONY: all
all: $(BUILDDIR)/strobe.o $(BUILDDIR)/x25519.o

.PHONY: runtests
runtests:
ls *.py | entr sh -c 'python -m coverage run -m unittest lora && coverage report --omit=p/\* -m -i'

$(BUILDDIR):
mkdir -p $@

$(BUILDDIR)/%.o : %.c
$(ARMCC) $(ARMTARGET) $(CFLAGS) -c $< -o $@

STROBE_REPO = https://git.code.sf.net/p/strobe/code
STROBE_BRANCH = master


Loading…
Cancel
Save