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 ```
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
APPLICATION = lwip
|
|
# overwrite board, do not set native as default
|
|
BOARD ?= iotlab-m3
|
|
include ../Makefile.tests_common
|
|
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
BOARD_BLACKLIST := arduino-mega2560 msb-430h telosb waspmote-pro z1 arduino-uno \
|
|
arduino-duemilanove msb-430 wsn430-v1_4 wsn430-v1_3b
|
|
BOARD_INSUFFICIENT_MEMORY := airfy-beacon arduino-mega2560 msb-430h nrf6310 \
|
|
nucleo32-f031 nucleo-f030 nucleo-f072 nucleo-f334 \
|
|
nucleo-l053 pca10005 stm32f0discovery telosb weio \
|
|
yunjia-nrf51822 z1
|
|
|
|
# including lwip_ipv6_mld would currently break this test on at86rf2xx radios
|
|
USEMODULE += lwip lwip_ipv6_autoconfig lwip_conn_ip lwip_netdev
|
|
USEMODULE += lwip_udp lwip_conn_udp
|
|
USEMODULE += ipv6_addr
|
|
USEMODULE += shell
|
|
USEMODULE += shell_commands
|
|
USEMODULE += ps
|
|
USEMODULE += od
|
|
|
|
# use the at86rf231 as fallback device
|
|
DRIVER := at86rf231
|
|
|
|
# define the driver to be used for selected boards
|
|
ifneq (,$(filter samr21-xpro,$(BOARD)))
|
|
DRIVER := at86rf233
|
|
endif
|
|
ifneq (,$(filter iotlab-m3 fox,$(BOARD)))
|
|
DRIVER := at86rf231
|
|
endif
|
|
ifneq (,$(filter mulle,$(BOARD)))
|
|
DRIVER := at86rf212b
|
|
endif
|
|
ifneq (,$(filter native,$(BOARD)))
|
|
DRIVER := netdev_tap
|
|
USEMODULE += lwip_ethernet
|
|
endif
|
|
|
|
ifneq (,$(filter at86rf2%,$(DRIVER)))
|
|
FEATURES_REQUIRED = periph_spi periph_gpio
|
|
endif
|
|
|
|
USEMODULE += $(DRIVER)
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
test:
|
|
./tests/01-run.py
|