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/luxlog/Kconfig | 2 ++ src/app/luxlog/Makefile.inc | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 src/app/luxlog/Kconfig (limited to 'src/app/luxlog') diff --git a/src/app/luxlog/Kconfig b/src/app/luxlog/Kconfig new file mode 100644 index 0000000..6e1c6e6 --- /dev/null +++ b/src/app/luxlog/Kconfig @@ -0,0 +1,2 @@ +prompt "Ambient Brightness Logger" +depends on driver_max44009 diff --git a/src/app/luxlog/Makefile.inc b/src/app/luxlog/Makefile.inc index bcee1d0..a0cbcd8 100644 --- a/src/app/luxlog/Makefile.inc +++ b/src/app/luxlog/Makefile.inc @@ -1,3 +1,5 @@ -arch_drivers += ,i2c -drivers += ,max44009 -loop ?= 1 +ifdef app + override loop = 1 + override arch_drivers += ,i2c + override drivers += ,max44009 +endif -- cgit v1.2.3