Browse Source

add loramac, and make the subtree stuff generic..

irr_shared
John-Mark Gurney 2 years ago
parent
commit
e0ee973abb
1 changed files with 13 additions and 7 deletions
  1. +13
    -7
      Makefile

+ 13
- 7
Makefile View File

@@ -88,14 +88,20 @@ runtests:
.c.o:
$(ARMCC) $(ARMTARGET) $(CFLAGS) -c $< -o $@

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

.PHONY: init-strobe
init-strobe:
git subtree add -P $(STROBE_PATH) --squash $(STROBE_REPO) $(STROBE_BRANCH)
LORAMAC_NAME = loramac
LORAMAC_REPO = https://github.com/Lora-net/LoRaMac-node.git
LORAMAC_BRANCH = master

.PHONY: update-strobe
update-strobe:
git subtree pull -P $(STROBE_PATH) --squash $(STROBE_REPO) $(STROBE_BRANCH)
.for module in STROBE LORAMAC
.PHONY: init-$($(module)_NAME)
init-$($(module)_NAME):
git subtree add -P $($(module)_NAME) --squash $($(module)_REPO) $($(module)_BRANCH)

.PHONY: update-$($(module)_NAME)
update-$($(module)_NAME):
git subtree pull -P $($(module)_NAME) --squash $($(module)_REPO) $($(module)_BRANCH)
.endfor

Loading…
Cancel
Save