summaryrefslogtreecommitdiff
path: root/src/app/luxlog
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-08-28 15:25:37 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-08-28 15:25:37 +0200
commit3a66ae51c3f34108428e582ef693866d71496d16 (patch)
tree6a8ab3774af1b1077720671a92f40a92d5425bcf /src/app/luxlog
parente12d6d528705344628568000dc2fddb919457411 (diff)
Expose configuration via Kconfig
Diffstat (limited to 'src/app/luxlog')
-rw-r--r--src/app/luxlog/Kconfig2
-rw-r--r--src/app/luxlog/Makefile.inc8
2 files changed, 7 insertions, 3 deletions
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