mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
29842bb5e4
With some minor hand-edits I used the following chain of commands: ```sh git rm sys/include/net/gnrc/netdev.h git grep --name-only -i netdev2 | \ xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \ -e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \ -e 's/\(netdev\)2/\1/gI' git add -p git commit --amend git ls-tree --full-tree -r HEAD --name-only | \ grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \ grep "netdev2" | while read dir; do new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")" git mv -f "$dir" "$new_dir" done git commit --amend git ls-tree --full-tree -r HEAD --name-only | \ grep "netdev2" | while read file; do new_file="$(echo "$file" | sed "s/netdev2/netdev/g")" git mv -f "$file" "$new_file" done git commit --amend git grep --name-only "\<drivers_netdev_netdev\>" | \ xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g" git add -p git commit --amend ```
72 lines
1.8 KiB
Makefile
72 lines
1.8 KiB
Makefile
PKG_BUILDDIR ?= $(PKGDIRBASE)/emb6
|
|
EMB6_DIR := $(PKG_BUILDDIR)
|
|
EMB6_CONTRIB := $(RIOTBASE)/pkg/emb6/contrib
|
|
|
|
INCLUDES += -I$(PKG_BUILDDIR)/target
|
|
INCLUDES += -I$(RIOTBASE)/pkg/emb6/include
|
|
|
|
ifeq (,$(filter emb6_router,$(USEMODULE)))
|
|
CFLAGS += -DEMB6_CONF_ROUTER=FALSE
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_bsp,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/target/bsp
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_common,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/emb6
|
|
INCLUDES += -I$(EMB6_DIR)/emb6
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_contrib,$(USEMODULE)))
|
|
DIRS += $(EMB6_CONTRIB)
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_conn_udp,$(USEMODULE)))
|
|
DIRS += $(EMB6_CONTRIB)/conn/udp
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_ipv6,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/emb6/src/net/ipv6
|
|
INCLUDES += -I$(EMB6_DIR)/emb6/inc/net/ipv6
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_ipv6_multicast,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/emb6/src/net/ipv6/multicast
|
|
INCLUDES += -I$(EMB6_DIR)/emb6/inc/net/ipv6/multicast
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_llsec,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/emb6/src/mac/llsec
|
|
INCLUDES += -I$(EMB6_DIR)/emb6/inc/mac/llsec
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_mac,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/emb6/src/mac
|
|
INCLUDES += -I$(EMB6_DIR)/emb6/inc/mac
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_netdev,$(USEMODULE)))
|
|
DIRS += $(EMB6_CONTRIB)/netdev
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_rpl,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/emb6/src/net/rpl
|
|
INCLUDES += -I$(EMB6_DIR)/emb6/inc/net/rpl
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_sicslowpan,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/emb6/src/net/sicslowpan
|
|
INCLUDES += -I$(EMB6_DIR)/emb6/inc/net/sicslowpan
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_sock,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/emb6/src/tport
|
|
INCLUDES += -I$(EMB6_DIR)/emb6/inc/tport
|
|
endif
|
|
|
|
ifneq (,$(filter emb6_utils,$(USEMODULE)))
|
|
DIRS += $(EMB6_DIR)/utils/src
|
|
INCLUDES += -I$(EMB6_DIR)/utils/inc
|
|
endif
|