diff --git a/cpu/native/Makefile b/cpu/native/Makefile index 51adb1efba..628d7eb5a3 100644 --- a/cpu/native/Makefile +++ b/cpu/native/Makefile @@ -2,9 +2,6 @@ MODULE = cpu DIRS += periph DIRS += drivers -ifneq (,$(filter rtc,$(USEMODULE))) - DIRS += rtc -endif ifneq (,$(filter nativenet,$(USEMODULE))) DIRS += net endif diff --git a/cpu/native/drivers/Makefile b/cpu/native/drivers/Makefile index 48422e909a..439af37cdc 100644 --- a/cpu/native/drivers/Makefile +++ b/cpu/native/drivers/Makefile @@ -1 +1,5 @@ +ifneq (,$(filter rtc,$(USEMODULE))) + DIRS += rtc +endif + include $(RIOTBASE)/Makefile.base diff --git a/cpu/native/rtc/Makefile b/cpu/native/drivers/rtc/Makefile similarity index 100% rename from cpu/native/rtc/Makefile rename to cpu/native/drivers/rtc/Makefile diff --git a/cpu/native/rtc/posix-rtc.c b/cpu/native/drivers/rtc/posix-rtc.c similarity index 100% rename from cpu/native/rtc/posix-rtc.c rename to cpu/native/drivers/rtc/posix-rtc.c