From 3a66ae51c3f34108428e582ef693866d71496d16 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 28 Aug 2020 15:25:37 +0200 Subject: Expose configuration via Kconfig --- src/app/button-and-motion-logger/Kconfig | 2 ++ src/app/button-and-motion-logger/Makefile.inc | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 src/app/button-and-motion-logger/Kconfig (limited to 'src/app/button-and-motion-logger') diff --git a/src/app/button-and-motion-logger/Kconfig b/src/app/button-and-motion-logger/Kconfig new file mode 100644 index 0000000..fe5d888 --- /dev/null +++ b/src/app/button-and-motion-logger/Kconfig @@ -0,0 +1,2 @@ +prompt "Button and Motion Logger" +depends on meta_driver_adc && driver_mpu9250 && !loop && !wakeup diff --git a/src/app/button-and-motion-logger/Makefile.inc b/src/app/button-and-motion-logger/Makefile.inc index f433287..eff5706 100644 --- a/src/app/button-and-motion-logger/Makefile.inc +++ b/src/app/button-and-motion-logger/Makefile.inc @@ -1,2 +1,4 @@ -arch_drivers += ,adc,i2c -override drivers += ,mpu9250 +ifdef app + override arch_drivers += ,adc,i2c + override drivers += ,mpu9250 +endif -- cgit v1.2.3