The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / lua-periphery / 0002-Fix-include-paths.patch
1 From b0a48721c48e0857458eb46b36ae575281412c64 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 16 May 2015 15:12:30 +0200
4 Subject: [PATCH 2/2] Fix include paths for c-periphery
5
6 The lua-periphery source code is designed to have c-periphery cloned
7 and built internally, so the include paths are written with this
8 assumption.
9
10 This commit adjusts the header paths of the c-periphery headers to be
11 compatible with a separated build/installation of c-periphery.
12
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 ---
15  src/lua_gpio.c   | 2 +-
16  src/lua_i2c.c    | 2 +-
17  src/lua_mmio.c   | 2 +-
18  src/lua_serial.c | 2 +-
19  src/lua_spi.c    | 2 +-
20  5 files changed, 5 insertions(+), 5 deletions(-)
21
22 diff --git a/lua-periphery/src/lua_gpio.c b/lua-periphery/src/lua_gpio.c
23 index cfeb03d..711d7e1 100644
24 --- a/lua-periphery/src/lua_gpio.c
25 +++ b/lua-periphery/src/lua_gpio.c
26 @@ -13,7 +13,7 @@
27  #include <stdint.h>
28  #include <errno.h>
29  
30 -#include <c-periphery/src/gpio.h>
31 +#include <c-periphery/gpio.h>
32  #include "lua_periphery.h"
33  #include "lua_51compat.h"
34  
35 diff --git a/lua-periphery/src/lua_i2c.c b/lua-periphery/src/lua_i2c.c
36 index ebdab79..7b38f6f 100644
37 --- a/lua-periphery/src/lua_i2c.c
38 +++ b/lua-periphery/src/lua_i2c.c
39 @@ -13,7 +13,7 @@
40  #include <stdint.h>
41  #include <errno.h>
42  
43 -#include <c-periphery/src/i2c.h>
44 +#include <c-periphery/i2c.h>
45  #include "lua_periphery.h"
46  #include "lua_51compat.h"
47  
48 diff --git a/lua-periphery/src/lua_mmio.c b/lua-periphery/src/lua_mmio.c
49 index 5ab1188..7dd399b 100644
50 --- a/lua-periphery/src/lua_mmio.c
51 +++ b/lua-periphery/src/lua_mmio.c
52 @@ -13,7 +13,7 @@
53  #include <stdint.h>
54  #include <errno.h>
55  
56 -#include <c-periphery/src/mmio.h>
57 +#include <c-periphery/mmio.h>
58  #include "lua_periphery.h"
59  #include "lua_51compat.h"
60  
61 diff --git a/lua-periphery/src/lua_serial.c b/lua-periphery/src/lua_serial.c
62 index 7d332af..85afa4a 100644
63 --- a/lua-periphery/src/lua_serial.c
64 +++ b/lua-periphery/src/lua_serial.c
65 @@ -13,7 +13,7 @@
66  #include <stdint.h>
67  #include <errno.h>
68  
69 -#include <c-periphery/src/serial.h>
70 +#include <c-periphery/serial.h>
71  #include "lua_periphery.h"
72  #include "lua_51compat.h"
73  
74 diff --git a/lua-periphery/src/lua_spi.c b/lua-periphery/src/lua_spi.c
75 index a4735a2..0c1e583 100644
76 --- a/lua-periphery/src/lua_spi.c
77 +++ b/lua-periphery/src/lua_spi.c
78 @@ -13,7 +13,7 @@
79  #include <stdint.h>
80  #include <errno.h>
81  
82 -#include <c-periphery/src/spi.h>
83 +#include <c-periphery/spi.h>
84  #include "lua_periphery.h"
85  #include "lua_51compat.h"
86  
87 -- 
88 2.1.0
89