summaryrefslogtreecommitdiffstats
path: root/package/lua-periphery/0002-Fix-build-on-SPARC.patch
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2018-12-16 21:19:03 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-17 09:56:05 +0100
commit3cac66f07c4e7e76800b294d50f3d9420d186a2e (patch)
treed4e5b7ccd6e843a3c9f1ad1bfc4a6a61e7326cb5 /package/lua-periphery/0002-Fix-build-on-SPARC.patch
parent9b0ac875385e3bcb052fc2f376f45fa61e102673 (diff)
downloadbuildroot-3cac66f07c4e7e76800b294d50f3d9420d186a2e.tar.gz
buildroot-3cac66f07c4e7e76800b294d50f3d9420d186a2e.zip
package/lua-periphery: bump to version 1.1.1
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/lua-periphery/0002-Fix-build-on-SPARC.patch')
-rw-r--r--package/lua-periphery/0002-Fix-build-on-SPARC.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/package/lua-periphery/0002-Fix-build-on-SPARC.patch b/package/lua-periphery/0002-Fix-build-on-SPARC.patch
deleted file mode 100644
index ce461ddca2..0000000000
--- a/package/lua-periphery/0002-Fix-build-on-SPARC.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-[PATCH] Fix build on SPARC
-
-On SPARC, the definitions of B2500000, B3000000, B3500000 and B4000000
-are not necessarily available, so use those values only if defined in
-the kernel headers.
-
-It fixes SPARC build failures such as:
-
-src/serial.c: In function '_serial_baudrate_to_bits':
-src/serial.c:73:30: error: 'B2500000' undeclared (first use in this function)
- case 2500000: return B2500000;
- ^
-src/serial.c:73:30: note: each undeclared identifier is reported only once for each function it appears in
-src/serial.c:74:30: error: 'B3000000' undeclared (first use in this function)
- case 3000000: return B3000000;
- ^
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-
-Index: b/lua-periphery/c-periphery/src/serial.c
-===================================================================
---- a/lua-periphery/c-periphery/src/serial.c
-+++ b/lua-periphery/c-periphery/src/serial.c
-@@ -70,10 +70,18 @@
- case 1152000: return B1152000;
- case 1500000: return B1500000;
- case 2000000: return B2000000;
-+#ifdef B2500000
- case 2500000: return B2500000;
-+#endif
-+#ifdef B3000000
- case 3000000: return B3000000;
-+#endif
-+#ifdef B3500000
- case 3500000: return B3500000;
-+#endif
-+#ifdef B4000000
- case 4000000: return B4000000;
-+#endif
- default: return -1;
- }
- }
-@@ -107,10 +115,18 @@
- case B1152000: return 1152000;
- case B1500000: return 1500000;
- case B2000000: return 2000000;
-+#ifdef B2500000
- case B2500000: return 2500000;
-+#endif
-+#ifdef B3000000
- case B3000000: return 3000000;
-+#endif
-+#ifdef B3500000
- case B3500000: return 3500000;
-+#endif
-+#ifdef B4000000
- case B4000000: return 4000000;
-+#endif
- default: return -1;
- }
- }
OpenPOWER on IntegriCloud