summaryrefslogtreecommitdiff
path: root/src/app/mpu9250_motionlog
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/mpu9250_motionlog
parente12d6d528705344628568000dc2fddb919457411 (diff)
Expose configuration via Kconfig
Diffstat (limited to 'src/app/mpu9250_motionlog')
-rw-r--r--src/app/mpu9250_motionlog/Kconfig2
-rw-r--r--src/app/mpu9250_motionlog/Makefile.inc6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/app/mpu9250_motionlog/Kconfig b/src/app/mpu9250_motionlog/Kconfig
new file mode 100644
index 0000000..27d605f
--- /dev/null
+++ b/src/app/mpu9250_motionlog/Kconfig
@@ -0,0 +1,2 @@
+prompt "Motion Logger"
+depends on driver_mpu9250
diff --git a/src/app/mpu9250_motionlog/Makefile.inc b/src/app/mpu9250_motionlog/Makefile.inc
index 5da92be..ed959ca 100644
--- a/src/app/mpu9250_motionlog/Makefile.inc
+++ b/src/app/mpu9250_motionlog/Makefile.inc
@@ -1,2 +1,4 @@
-arch_drivers += ,i2c
-override drivers += ,mpu9250
+ifdef app
+ override arch_drivers += ,i2c
+ override drivers += ,mpu9250
+endif