From ba4de322f437f9199af9c28d96de76baf82fcf85 Mon Sep 17 00:00:00 2001
From: Matthew Blue <matthew.blue.neuro@gmail.com>
Date: Mon, 27 Aug 2018 18:55:41 -0400
Subject: [PATCH] sys/eepreg: Makefile support

---
 sys/Makefile     | 3 +++
 sys/Makefile.dep | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/sys/Makefile b/sys/Makefile
index 9d63db742c..d17c7ec802 100644
--- a/sys/Makefile
+++ b/sys/Makefile
@@ -1,6 +1,9 @@
 ifneq (,$(filter csma_sender,$(USEMODULE)))
   DIRS += net/link_layer/csma_sender
 endif
+ifneq (,$(filter eepreg,$(USEMODULE)))
+  DIRS += eepreg
+endif
 ifneq (,$(filter posix_semaphore,$(USEMODULE)))
   DIRS += posix/semaphore
 endif
diff --git a/sys/Makefile.dep b/sys/Makefile.dep
index b2e06357c4..ce7f6f2c82 100644
--- a/sys/Makefile.dep
+++ b/sys/Makefile.dep
@@ -1,3 +1,7 @@
+ifneq (,$(filter eepreg,$(USEMODULE)))
+  FEATURES_REQUIRED += periph_eeprom
+endif
+
 ifneq (,$(filter prng_fortuna,$(USEMODULE)))
   CFLAGS += -DCRYPTO_AES
 endif
-- 
GitLab