diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-05-16 15:49:21 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2015-05-16 23:27:23 +0200 |
commit | 01dfbb48c5c0725a4656518864af792c0f532e99 (patch) | |
tree | f83c09902f75695b744026cd8fadc00d0c3a6069 /package/lua-periphery/0002-Fix-include-paths.patch | |
parent | 416e35b44a107316532bdde416128dcffaed49ff (diff) | |
download | buildroot-01dfbb48c5c0725a4656518864af792c0f532e99.tar.gz buildroot-01dfbb48c5c0725a4656518864af792c0f532e99.zip |
lua-periphery: depend on c-periphery instead of cloning it
lua-periphery currently clones and builds the c-periphery library by
itself. This causes two problems:
1/ It does not integrate properly with the download infrastructure of
Buildroot, making offline builds impossible since not the entire
source code is downloaded by Buildroot.
2/ It does not use the latest version of c-periphery, which has some
fixes contributed by Vicente to fix c-periphery on MIPS.
This commit fixes:
http://autobuild.buildroot.org/results/0ad/0ad656970b3cbc84b5531b28155ba2f747715fe3/
[Peter: fix minor typo in patch 0001 description]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/lua-periphery/0002-Fix-include-paths.patch')
-rw-r--r-- | package/lua-periphery/0002-Fix-include-paths.patch | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/package/lua-periphery/0002-Fix-include-paths.patch b/package/lua-periphery/0002-Fix-include-paths.patch new file mode 100644 index 0000000000..ede4e302b0 --- /dev/null +++ b/package/lua-periphery/0002-Fix-include-paths.patch @@ -0,0 +1,89 @@ +From b0a48721c48e0857458eb46b36ae575281412c64 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Date: Sat, 16 May 2015 15:12:30 +0200 +Subject: [PATCH 2/2] Fix include paths for c-periphery + +The lua-periphery source code is designed to have c-periphery cloned +and built internally, so the include paths are written with this +assumption. + +This commit adjusts the header paths of the c-periphery headers to be +compatible with a separated build/installation of c-periphery. + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +--- + src/lua_gpio.c | 2 +- + src/lua_i2c.c | 2 +- + src/lua_mmio.c | 2 +- + src/lua_serial.c | 2 +- + src/lua_spi.c | 2 +- + 5 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/lua-periphery/src/lua_gpio.c b/lua-periphery/src/lua_gpio.c +index cfeb03d..711d7e1 100644 +--- a/lua-periphery/src/lua_gpio.c ++++ b/lua-periphery/src/lua_gpio.c +@@ -13,7 +13,7 @@ + #include <stdint.h> + #include <errno.h> + +-#include <c-periphery/src/gpio.h> ++#include <c-periphery/gpio.h> + #include "lua_periphery.h" + #include "lua_51compat.h" + +diff --git a/lua-periphery/src/lua_i2c.c b/lua-periphery/src/lua_i2c.c +index ebdab79..7b38f6f 100644 +--- a/lua-periphery/src/lua_i2c.c ++++ b/lua-periphery/src/lua_i2c.c +@@ -13,7 +13,7 @@ + #include <stdint.h> + #include <errno.h> + +-#include <c-periphery/src/i2c.h> ++#include <c-periphery/i2c.h> + #include "lua_periphery.h" + #include "lua_51compat.h" + +diff --git a/lua-periphery/src/lua_mmio.c b/lua-periphery/src/lua_mmio.c +index 5ab1188..7dd399b 100644 +--- a/lua-periphery/src/lua_mmio.c ++++ b/lua-periphery/src/lua_mmio.c +@@ -13,7 +13,7 @@ + #include <stdint.h> + #include <errno.h> + +-#include <c-periphery/src/mmio.h> ++#include <c-periphery/mmio.h> + #include "lua_periphery.h" + #include "lua_51compat.h" + +diff --git a/lua-periphery/src/lua_serial.c b/lua-periphery/src/lua_serial.c +index 7d332af..85afa4a 100644 +--- a/lua-periphery/src/lua_serial.c ++++ b/lua-periphery/src/lua_serial.c +@@ -13,7 +13,7 @@ + #include <stdint.h> + #include <errno.h> + +-#include <c-periphery/src/serial.h> ++#include <c-periphery/serial.h> + #include "lua_periphery.h" + #include "lua_51compat.h" + +diff --git a/lua-periphery/src/lua_spi.c b/lua-periphery/src/lua_spi.c +index a4735a2..0c1e583 100644 +--- a/lua-periphery/src/lua_spi.c ++++ b/lua-periphery/src/lua_spi.c +@@ -13,7 +13,7 @@ + #include <stdint.h> + #include <errno.h> + +-#include <c-periphery/src/spi.h> ++#include <c-periphery/spi.h> + #include "lua_periphery.h" + #include "lua_51compat.h" + +-- +2.1.0 + |