Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pkg/semtech-loramac/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PKG_NAME=semtech-loramac
PKG_URL=git://github.com/Lora-net/LoRaMac-node.git
PKG_VERSION=f42be67be402a40b3586724800771bfe13fb18e6
PKG_LICENSE=BSD-3-Clause

.PHONY: all

all: git-download
cp Makefile.loramac $(PKG_BUILDDIR)/Makefile
cp Makefile.loramac_mac $(PKG_BUILDDIR)/src/mac/Makefile
cp Makefile.loramac_region $(PKG_BUILDDIR)/src/mac/region/Makefile
cp Makefile.loramac_crypto $(PKG_BUILDDIR)/src/system/crypto/Makefile
cp Makefile.loramac_arch $(PKG_BUILDDIR)/src/boards/mcu/stm32/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)

include $(RIOTBASE)/pkg/pkg.mk
7 changes: 7 additions & 0 deletions pkg/semtech-loramac/Makefile.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
USEMODULE += random
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file has the same semantics as Makefile.dep in the root folder. So if someone does USEPKG += semtech-loramac, all these modules should get selected?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, do you suggest that I should add an entry in the root Makefile.dep and remove this file ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at this file, the actual way of including dependencies seems correct


USEMODULE += semtech_loramac_contrib
USEMODULE += semtech_loramac_mac
USEMODULE += semtech_loramac_mac_region
USEMODULE += semtech_loramac_crypto
USEMODULE += semtech_loramac_arch
3 changes: 3 additions & 0 deletions pkg/semtech-loramac/Makefile.include
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
INCLUDES += -I$(RIOTBASE)/pkg/semtech-loramac/include

DIRS += $(RIOTBASE)/pkg/semtech-loramac/contrib
11 changes: 11 additions & 0 deletions pkg/semtech-loramac/Makefile.loramac
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DIRS += src/mac
DIRS += src/mac/region
DIRS += src/system/crypto
DIRS += src/boards/mcu/stm32

INCLUDES += -I$(PKGDIRBASE)/semtech-loramac/src/mac \
-I$(PKGDIRBASE)/semtech-loramac/src/boards/mcu/stm32 \
-I$(PKGDIRBASE)/semtech-loramac/src/system/crypto \
-I$(PKGDIRBASE)/semtech-loramac/src

include $(RIOTBASE)/Makefile.base
7 changes: 7 additions & 0 deletions pkg/semtech-loramac/Makefile.loramac_arch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MODULE := semtech_loramac_arch

SRCS := utilities.c

CFLAGS += -Wno-sign-compare

include $(RIOTBASE)/Makefile.base
3 changes: 3 additions & 0 deletions pkg/semtech-loramac/Makefile.loramac_crypto
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MODULE := semtech_loramac_crypto

include $(RIOTBASE)/Makefile.base
5 changes: 5 additions & 0 deletions pkg/semtech-loramac/Makefile.loramac_mac
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MODULE := semtech_loramac_mac

CFLAGS += -Wno-sign-compare

include $(RIOTBASE)/Makefile.base
5 changes: 5 additions & 0 deletions pkg/semtech-loramac/Makefile.loramac_region
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MODULE := semtech_loramac_mac_region

CFLAGS += -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare

include $(RIOTBASE)/Makefile.base
8 changes: 8 additions & 0 deletions pkg/semtech-loramac/contrib/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
MODULE := semtech_loramac_contrib

INCLUDES += -I$(PKGDIRBASE)/semtech-loramac/src/mac \
-I$(PKGDIRBASE)/semtech-loramac/src/boards/mcu/stm32 \
-I$(PKGDIRBASE)/semtech-loramac/src/system/crypto \
-I$(PKGDIRBASE)/semtech-loramac/src

include $(RIOTBASE)/Makefile.base
Loading