diff --git a/Makefile.pseudomodules b/Makefile.pseudomodules index f9d4dc52636af6d438c73e534a2f68c9ec027392..f76ef309d7906428765f9abfcb1e535f631e80e8 100644 --- a/Makefile.pseudomodules +++ b/Makefile.pseudomodules @@ -1,5 +1,6 @@ PSEUDOMODULES += defaulttransceiver PSEUDOMODULES += transport_layer +PSEUDOMODULES += ng_netif_default PSEUDOMODULES += ng_ieee802154 PSEUDOMODULES += ng_ipv6_default PSEUDOMODULES += ng_ipv6_router diff --git a/boards/native/Makefile.dep b/boards/native/Makefile.dep index 9b0a774df7619d66f8ce9282bc1bd37f069b5bfd..551b6bd0d0ad96c6c95a51706a20cfbf996e3545 100644 --- a/boards/native/Makefile.dep +++ b/boards/native/Makefile.dep @@ -1,9 +1,13 @@ ifneq (,$(filter defaulttransceiver,$(USEMODULE))) - ifeq (,$(filter ng_netif,$(USEMODULE))) - USEMODULE += nativenet + USEMODULE += nativenet + ifeq (,$(filter netdev_base,$(USEMODULE))) USEMODULE += transceiver - else - USEMODULE += ng_nativenet - USEMODULE += ng_netdev_eth endif endif + +ifneq (,$(filter ng_netif_default,$(USEMODULE))) + USEMODULE += ng_netif + USEMODULE += ng_nativenet + USEMODULE += ng_netdev_eth + USEMODULE += ng_nomac +endif diff --git a/cpu/native/startup.c b/cpu/native/startup.c index 7b4f864e3e66bf5f320a35a1f036051633bf8641..cee543913933fb95df482be8d95d6125de3d1b5d 100644 --- a/cpu/native/startup.c +++ b/cpu/native/startup.c @@ -374,7 +374,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv) #endif #ifdef MODULE_NG_NATIVENET # ifdef MODULE_NATIVENET -# error "Modules nativenet and ng_native are mutually exclusive." +# error "Modules nativenet and ng_nativenet are mutually exclusive." # endif dev_eth_tap_setup(&dev_eth_tap, argv[1]); #endif