forked from intel-iot-devkit/zmraa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzmraa.patch
46 lines (40 loc) · 1.13 KB
/
zmraa.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From d26d9c871c83f2b7b5634040882c01e48dfd9b43 Mon Sep 17 00:00:00 2001
From: Brendan Le Foll <[email protected]>
Date: Fri, 23 Sep 2016 09:20:17 +0100
Subject: [PATCH] zmraa: Added mraa as ext lib
Signed-off-by: Brendan Le Foll <[email protected]>
---
ext/Kconfig | 1 +
ext/lib/Kbuild | 1 +
ext/lib/Makefile | 4 ++++
3 files changed, 6 insertions(+)
diff --git a/ext/Kconfig b/ext/Kconfig
index 9d26499..1caaff9 100644
--- a/ext/Kconfig
+++ b/ext/Kconfig
@@ -21,6 +21,7 @@ menu "External Sources"
source "ext/hal/Kconfig"
source "ext/lib/crypto/Kconfig"
+source "ext/lib/mraa/Kconfig"
source "ext/fs/Kconfig"
diff --git a/ext/lib/Kbuild b/ext/lib/Kbuild
index 755bcbe..fffeb3c 100644
--- a/ext/lib/Kbuild
+++ b/ext/lib/Kbuild
@@ -1 +1,2 @@
obj-y += crypto/
+obj-$(CONFIG_MRAA) += mraa/
diff --git a/ext/lib/Makefile b/ext/lib/Makefile
index af81171..6803999 100644
--- a/ext/lib/Makefile
+++ b/ext/lib/Makefile
@@ -10,3 +10,7 @@ endif
ifdef CONFIG_MBEDTLS_LIBRARY
include $(srctree)/ext/lib/crypto/mbedtls/Makefile
endif
+
+ifdef CONFIG_MRAA
+ZEPHYRINCLUDE += -I$(srctree)/ext/lib/mraa/include
+endif
--
2.9.3