0002-Fix-include-paths.patch 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. The lua-periphery source code is designed to have c-periphery cloned
  6. and built internally, so the include paths are written with this
  7. assumption.
  8. This commit adjusts the header paths of the c-periphery headers to be
  9. compatible with a separated build/installation of c-periphery.
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. ---
  12. src/lua_gpio.c | 2 +-
  13. src/lua_i2c.c | 2 +-
  14. src/lua_mmio.c | 2 +-
  15. src/lua_serial.c | 2 +-
  16. src/lua_spi.c | 2 +-
  17. 5 files changed, 5 insertions(+), 5 deletions(-)
  18. diff --git a/lua-periphery/src/lua_gpio.c b/lua-periphery/src/lua_gpio.c
  19. index cfeb03d..711d7e1 100644
  20. --- a/lua-periphery/src/lua_gpio.c
  21. +++ b/lua-periphery/src/lua_gpio.c
  22. @@ -13,7 +13,7 @@
  23. #include <stdint.h>
  24. #include <errno.h>
  25. -#include <c-periphery/src/gpio.h>
  26. +#include <c-periphery/gpio.h>
  27. #include "lua_periphery.h"
  28. #include "lua_51compat.h"
  29. diff --git a/lua-periphery/src/lua_i2c.c b/lua-periphery/src/lua_i2c.c
  30. index ebdab79..7b38f6f 100644
  31. --- a/lua-periphery/src/lua_i2c.c
  32. +++ b/lua-periphery/src/lua_i2c.c
  33. @@ -13,7 +13,7 @@
  34. #include <stdint.h>
  35. #include <errno.h>
  36. -#include <c-periphery/src/i2c.h>
  37. +#include <c-periphery/i2c.h>
  38. #include "lua_periphery.h"
  39. #include "lua_51compat.h"
  40. diff --git a/lua-periphery/src/lua_mmio.c b/lua-periphery/src/lua_mmio.c
  41. index 5ab1188..7dd399b 100644
  42. --- a/lua-periphery/src/lua_mmio.c
  43. +++ b/lua-periphery/src/lua_mmio.c
  44. @@ -13,7 +13,7 @@
  45. #include <stdint.h>
  46. #include <errno.h>
  47. -#include <c-periphery/src/mmio.h>
  48. +#include <c-periphery/mmio.h>
  49. #include "lua_periphery.h"
  50. #include "lua_51compat.h"
  51. diff --git a/lua-periphery/src/lua_serial.c b/lua-periphery/src/lua_serial.c
  52. index 7d332af..85afa4a 100644
  53. --- a/lua-periphery/src/lua_serial.c
  54. +++ b/lua-periphery/src/lua_serial.c
  55. @@ -13,7 +13,7 @@
  56. #include <stdint.h>
  57. #include <errno.h>
  58. -#include <c-periphery/src/serial.h>
  59. +#include <c-periphery/serial.h>
  60. #include "lua_periphery.h"
  61. #include "lua_51compat.h"
  62. diff --git a/lua-periphery/src/lua_spi.c b/lua-periphery/src/lua_spi.c
  63. index a4735a2..0c1e583 100644
  64. --- a/lua-periphery/src/lua_spi.c
  65. +++ b/lua-periphery/src/lua_spi.c
  66. @@ -13,7 +13,7 @@
  67. #include <stdint.h>
  68. #include <errno.h>
  69. -#include <c-periphery/src/spi.h>
  70. +#include <c-periphery/spi.h>
  71. #include "lua_periphery.h"
  72. #include "lua_51compat.h"
  73. --
  74. 2.1.0