mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 05:53:49 +01:00
pkg/semtech-loramac: cleanup build system integration
Avoid copying Makefile in the cloned directory
This commit is contained in:
parent
d62bcc238c
commit
12044356de
@ -5,10 +5,21 @@ PKG_LICENSE=BSD-3-Clause
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
@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/Makefile
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)
|
||||
INCLUDES += -I$(PKGDIRBASE)/semtech-loramac/src/mac \
|
||||
-I$(PKGDIRBASE)/semtech-loramac/src/boards/mcu \
|
||||
-I$(PKGDIRBASE)/semtech-loramac/src/system/crypto \
|
||||
-I$(PKGDIRBASE)/semtech-loramac/src
|
||||
|
||||
LORAMAC_MODULES = loramac_arch loramac_crypto loramac_mac loramac_region
|
||||
|
||||
DIR_loramac_arch = boards/mcu
|
||||
DIR_loramac_crypto = system/crypto
|
||||
DIR_loramac_mac = mac
|
||||
DIR_loramac_region = mac/region
|
||||
|
||||
.PHONY: loramac_%
|
||||
|
||||
all: $(LORAMAC_MODULES)
|
||||
|
||||
loramac_%:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src/$(DIR_$@) -f $(CURDIR)/Makefile.$@
|
||||
|
||||
@ -7,3 +7,7 @@ LORA_REGION ?= EU868
|
||||
|
||||
CFLAGS += -DREGION_$(LORA_REGION)
|
||||
CFLAGS += -DLORAMAC_ACTIVE_REGION=LORAMAC_REGION_$(LORA_REGION)
|
||||
|
||||
# There's no concrete semtech-loramac module that is built so declare it as a
|
||||
# pseudo module.
|
||||
PSEUDOMODULES += semtech-loramac
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
DIRS += src/mac
|
||||
DIRS += src/mac/region
|
||||
DIRS += src/system/crypto
|
||||
DIRS += src/boards/mcu
|
||||
|
||||
INCLUDES += -I$(PKGDIRBASE)/semtech-loramac/src/mac \
|
||||
-I$(PKGDIRBASE)/semtech-loramac/src/boards/mcu \
|
||||
-I$(PKGDIRBASE)/semtech-loramac/src/system/crypto \
|
||||
-I$(PKGDIRBASE)/semtech-loramac/src
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
@ -1,6 +1,6 @@
|
||||
MODULE := semtech_loramac_arch
|
||||
MODULE = semtech_loramac_arch
|
||||
|
||||
SRCS := utilities.c
|
||||
SRC = utilities.c
|
||||
|
||||
CFLAGS += -Wno-sign-compare
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
MODULE := semtech_loramac_crypto
|
||||
MODULE = semtech_loramac_crypto
|
||||
|
||||
INCLUDES += -I$(PKGDIRBASE)/semtech-loramac/src/boards
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
MODULE := semtech_loramac_mac
|
||||
MODULE = semtech_loramac_mac
|
||||
|
||||
CFLAGS += -Wno-sign-compare
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
MODULE := semtech_loramac_mac_region
|
||||
MODULE = semtech_loramac_mac_region
|
||||
|
||||
CFLAGS += -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user