1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/openwsn/Makefile
Francisco Molina aa1e7797b0
pkg/openwsn: bump version
With the new version some OpenWSN modules are optional:
- openwsn_cjoin (and therefore opewnsn_coap)
- openwsn_6lo_fragmentation
- openwsn_icmpv6echo
- openwsn_crypto
- openwsn_udp (optional but kept as default)

New optional modules have been added:
- openwsn_iee802154e_security (link layer security)
- openwsn_adaptive_msf (MSF dynamic slot allocation)

Openvisualizer needs to be updated to be compatible with the new
version.
2020-08-11 15:24:33 +02:00

58 lines
1.9 KiB
Makefile

PKG_NAME=openwsn
PKG_URL=https://github.com/openwsn-berkeley/openwsn-fw.git
PKG_VERSION=4e58c93dc76d8c5c5c4b8dfebdd955feaf605e74
PKG_LICENSE=BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk
# openwsn_% RIOT Modules or PSEUDOMODULES that don't have custom rules
IGNORE_MODULES := openwsn_leds \
openwsn_debugpins \
openwsn_6lo_frag \
openwsn_icmpv6_echo \
openwsn_iee802154e_security \
openwsn_radio \
openwsn_serial \
openwsn_sctimer \
openwsn_sctimer_rtt \
openwsn_sctimer_ztimer \
#
OPENWSN_MODULES := $(filter-out $(IGNORE_MODULES),$(filter openwsn_%,$(USEMODULE)))
.PHONY: openwsn_%
OPENWSN_LOG_LEVEL ?= LOG_NONE
CFLAGS += -Wno-array-bounds
CFLAGS += -Wno-implicit-fallthrough
CFLAGS += -Wno-implicit-function-declaration
CFLAGS += -Wno-incompatible-pointer-types
CFLAGS += -Wno-maybe-uninitialized
CFLAGS += -Wno-old-style-definition
CFLAGS += -Wno-return-type
CFLAGS += -Wno-sign-compare
CFLAGS += -Wno-unused-parameter
CFLAGS += -Wno-strict-prototypes
CFLAGS += -DLOG_LEVEL=$(OPENWSN_LOG_LEVEL)
OPENWSN_PATH_openstack = openstack
OPENWSN_PATH_openapps = openapps
OPENWSN_PATH_openweb = openweb
OPENWSN_PATH_drivers = drivers/common
OPENWSN_PATH_crypto = drivers/common/crypto
OPENWSN_PATH_scheduler = kernel/openos
OPENWSN_PATH_cjoin = openapps/cjoin
OPENWSN_PATH_opencoap = openweb/opencoap
OPENWSN_PATH_mac_low = openstack/02a-MAClow
OPENWSN_PATH_mac_high = openstack/02b-MAChigh
OPENWSN_PATH_iphc = openstack/03a-IPHC
OPENWSN_PATH_ipv6 = openstack/03b-IPv6
OPENWSN_PATH_transport = openstack/04-TRAN
OPENWSN_PATH_crosslayers = openstack/cross-layers
all: $(OPENWSN_MODULES)
openwsn_%:
"$(MAKE)" -C $(PKG_SOURCE_DIR)/$(OPENWSN_PATH_$*) -f $(RIOTBASE)/Makefile.base MODULE=$@