summaryrefslogtreecommitdiffstats
path: root/package/lua-periphery/0001-Makefile-don-t-clone-build-c-periphery.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-05-16 15:49:21 +0200
committerPeter Korsgaard <peter@korsgaard.com>2015-05-16 23:27:23 +0200
commit01dfbb48c5c0725a4656518864af792c0f532e99 (patch)
treef83c09902f75695b744026cd8fadc00d0c3a6069 /package/lua-periphery/0001-Makefile-don-t-clone-build-c-periphery.patch
parent416e35b44a107316532bdde416128dcffaed49ff (diff)
downloadbuildroot-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/0001-Makefile-don-t-clone-build-c-periphery.patch')
-rw-r--r--package/lua-periphery/0001-Makefile-don-t-clone-build-c-periphery.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/lua-periphery/0001-Makefile-don-t-clone-build-c-periphery.patch b/package/lua-periphery/0001-Makefile-don-t-clone-build-c-periphery.patch
new file mode 100644
index 0000000000..f6d3f271a6
--- /dev/null
+++ b/package/lua-periphery/0001-Makefile-don-t-clone-build-c-periphery.patch
@@ -0,0 +1,32 @@
+From 395bb4cb37612a4ac94346531b13ff0e901ed05e Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Tue, 5 May 2015 23:59:17 +0200
+Subject: [PATCH 1/2] Makefile: don't clone/build c-periphery
+
+This patch adjusts lua-periphery Makefile to not clone and build the
+c-periphery library by itself, and instead use the already available
+c-periphery library.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lua-periphery/Makefile b/lua-periphery/Makefile
+index bed9b32..a4c68eb 100644
+--- a/lua-periphery/Makefile
++++ b/lua-periphery/Makefile
+@@ -36,8 +36,8 @@ install:
+
+ ###########################################################################
+
+-$(LIB): $(C_PERIPHERY_LIB) $(SRCS)
+- $(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) $(C_PERIPHERY_LIB) -o $@
++$(LIB): $(SRCS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -lc-periphery -o $@
+
+ $(C_PERIPHERY_LIB): $(C_PERIPHERY)/Makefile
+ cd $(C_PERIPHERY); $(MAKE)
+--
+2.1.0
+
OpenPOWER on IntegriCloud