Skip to contentSkip to conversation

poco: Backport riscv support patch

PATCH In review Khem Raj 3 participants 17 messages Mar 6, 2019 – Mar 7, 2019 RISC-V

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/12 poco: Backport riscv support patch

---
 ...riscv64-by-Manuel-A.-Fernandez-Monte.patch | 41 +++++++++++++++++++
 meta-oe/recipes-support/poco/poco_1.9.0.bb    |  1 +
 2 files changed, 42 insertions(+)
 create mode 100644 meta-oe/recipes-support/poco/poco/0001-Support-of-arch-riscv64-by-Manuel-A.-Fernandez-Monte.patch
meta-oe/recipes-support/poco/poco/0001-Support-of-arch-riscv64-by-Manuel-A.-Fernandez-Monte.patch new file +41 -0
new file mode 100644
index 0000000000..72d89d09b2
@@ -0,0 +1,41 @@
+From ed04c97abe015a226269de391e36c4d251292725 Mon Sep 17 00:00:00 2001
+From: Francis ANDRE <[email protected]>
+Date: Sun, 6 May 2018 12:28:25 +0200
+Subject: [PATCH] Support of arch riscv64 by Manuel A. Fernandez Montecelo
+ <[email protected]>
+
+---
+ Foundation/include/Poco/Platform.h | 6 +++++-
+ Foundation/src/utils.h             | 1 +
+ 2 files changed, 6 insertions(+), 1 deletion(-)
+
+--- a/Foundation/include/Poco/Platform.h
++++ b/Foundation/include/Poco/Platform.h
+@@ -134,6 +134,7 @@
+ #define POCO_ARCH_NIOS2   0x0e
+ #define POCO_ARCH_AARCH64 0x0f
+ #define POCO_ARCH_ARM64   0x0f // same as POCO_ARCH_AARCH64
++#define POCO_ARCH_RISCV64 0x10
+ 
+ 
+ #if defined(__ALPHA) || defined(__alpha) || defined(__alpha__) || defined(_M_ALPHA)
+@@ -224,6 +225,9 @@
+ #elif defined(__AARCH64EB__)
+ 	#define POCO_ARCH POCO_ARCH_AARCH64
+ 	#define POCO_ARCH_BIG_ENDIAN 1
++#elif defined(__riscv) && (__riscv_xlen == 64)
++	#define POCO_ARCH POCO_ARCH_RISCV64
++	#define POCO_ARCH_LITTLE_ENDIAN 1
+ #endif
+ 
+ 
+--- a/Foundation/src/utils.h
++++ b/Foundation/src/utils.h
+@@ -63,6 +63,7 @@
+     defined(__SH4__) || defined(__alpha__) || \
+     defined(_MIPS_ARCH_MIPS32R2) || \
+     defined(__AARCH64EL__) || \
++    defined(__riscv) || \
+     defined(nios2) || defined(__nios2) || defined(__nios2__)
+ #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
+ #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
meta-oe/recipes-support/poco/poco_1.9.0.bb +1 -0
index 258cc4994f..70b251034b 100644
@@ -11,6 +11,7 @@ DEPENDS = "libpcre zlib"
 SRC_URI = " \
     git://github.com/pocoproject/poco.git;branch=poco-${PV} \
     file://0001-Don-t-try-to-install-non-existing-Encodings-testsuit.patch \
+    file://0001-Support-of-arch-riscv64-by-Manuel-A.-Fernandez-Monte.patch \
     file://run-ptest \
    "
 SRCREV = "daf00da73ab917e4d4581e3aa00c0ee61e0cc58b"
Signature · 1 line
2.21.0
author
#1 lore raw

PATCH 2/12 liboil: Fix build on risc-v

---
 .../fix_riscv_unaligned_access.patch              | 15 +++++++++++++++
 .../recipes-support/liboil/liboil_0.3.17.bb       |  1 +
 2 files changed, 16 insertions(+)
 create mode 100644 meta-multimedia/recipes-support/liboil/liboil-0.3.17/fix_riscv_unaligned_access.patch
meta-multimedia/recipes-support/liboil/liboil-0.3.17/fix_riscv_unaligned_access.patch new file +15 -0
new file mode 100644
index 0000000000..448bde73fc
@@ -0,0 +1,15 @@
+RISC-V supports unaligned accesses, therefore enable it
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+--- a/m4/as-unaligned-access.m4
++++ b/m4/as-unaligned-access.m4
+@@ -5,7 +5,7 @@ AC_DEFUN([AS_UNALIGNED_ACCESS], [
+   AC_MSG_CHECKING([if unaligned memory access works correctly])
+   if test x"$as_cv_unaligned_access" = x ; then
+     case $host in
+-      alpha*|arm*|hp*|mips*|sh*|sparc*|ia64*)
++      alpha*|arm*|hp*|mips*|riscv*|sh*|sparc*|ia64*)
+         _AS_ECHO_N([(blacklisted) ])
+         as_cv_unaligned_access=no
+ 	;;
meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb +1 -0
index 7e8aa1572a..654ee1e883 100644
@@ -18,6 +18,7 @@ SRC_URI = "http://liboil.freedesktop.org/download/${BPN}-${PV}.tar.gz \
            file://0001-Fix-enable-vfp-flag.patch \
            file://liboil_fix_for_x32.patch \
            file://0001-math_vfp_asm.S-Convert-fldmia-fstmia-instructions-to.patch \
+           file://fix_riscv_unaligned_access.patch \
            "
 
 SRC_URI[md5sum] = "47dc734f82faeb2964d97771cfd2e701"
Signature · 1 line
2.21.0
author
#2 lore raw

PATCH 3/12 msgpack-c: Upgrade to 3.1.1

In reply to Khem Raj

Drop upstreamed patch

---
 .../0001-Fix-Werror-class-memaccess.patch     | 35 -------------------
 ...{msgpack-c_2.1.5.bb => msgpack-c_3.1.1.bb} |  4 +--
 2 files changed, 2 insertions(+), 37 deletions(-)
 delete mode 100644 meta-oe/recipes-devtools/msgpack/msgpack-c/0001-Fix-Werror-class-memaccess.patch
 rename meta-oe/recipes-devtools/msgpack/{msgpack-c_2.1.5.bb => msgpack-c_3.1.1.bb} (84%)
meta-oe/recipes-devtools/msgpack/msgpack-c/0001-Fix-Werror-class-memaccess.patch deleted +0 -35
deleted file mode 100644
index b0d772d937..0000000000
@@ -1,35 +0,0 @@
-From a05d92ae85024d0648f69f95307a1d3e8e51109c Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sun, 1 Apr 2018 19:55:38 -0700
-Subject: [PATCH] Fix -Werror=class-memaccess
-
-Casting to void* make gcc happy since its upset about
-object types and rightly so
-
-Fixes
-
-'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'struct msgpack::v2::object' from an array of 'const msgpack_object' {aka 'const struct msgpack_object'} [-Werror=class-memaccess]
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Submitted [https://github.com/msgpack/msgpack-c/pull/659]
-
- include/msgpack/v1/object.hpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/include/msgpack/v1/object.hpp b/include/msgpack/v1/object.hpp
-index 64da8c53..9721f705 100644
---- a/include/msgpack/v1/object.hpp
-+++ b/include/msgpack/v1/object.hpp
-@@ -661,7 +661,7 @@ inline object::object(const msgpack_object& o)
- inline void operator<< (msgpack::object& o, const msgpack_object& v)
- {
-     // FIXME beter way?
--    std::memcpy(&o, &v, sizeof(v));
-+    std::memcpy(static_cast<void*>(&o), &v, sizeof(v));
- }
- 
- inline object::operator msgpack_object() const
--- 
-2.16.3
-
meta-oe/recipes-devtools/msgpack/msgpack-c_3.1.1.bb renamed from meta-oe/recipes-devtools/msgpack/msgpack-c_2.1.5.bb +2 -2
similarity index 84%
rename from meta-oe/recipes-devtools/msgpack/msgpack-c_2.1.5.bb
rename to meta-oe/recipes-devtools/msgpack/msgpack-c_3.1.1.bb
index 690a7f444b..90fd44e607 100644
@@ -10,9 +10,9 @@ LIC_FILES_CHKSUM = "file://NOTICE;md5=7a858c074723608e08614061dc044352 \
 PV .= "+git${SRCPV}"
 
 SRC_URI = "git://github.com/msgpack/msgpack-c \
-           file://0001-Fix-Werror-class-memaccess.patch \
            "
-SRCREV = "208595b2620cf6260ce3d6d4cf8543f13b206449"
+# cpp-3.1.1
+SRCREV = "83a82e3eb512b18d4149cabb7eb43c7e8bc081af"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.21.0
author
#3 lore raw

PATCH 4/12 python-greenlet: Upgrade to 0.4.15

In reply to Khem Raj
---
 meta-python/recipes-devtools/python/python-greenlet.inc       | 4 ++--
 .../{python-greenlet_0.4.14.bb => python-greenlet_0.4.15.bb}  | 0
 ...{python3-greenlet_0.4.14.bb => python3-greenlet_0.4.15.bb} | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python-greenlet_0.4.14.bb => python-greenlet_0.4.15.bb} (100%)
 rename meta-python/recipes-devtools/python/{python3-greenlet_0.4.14.bb => python3-greenlet_0.4.15.bb} (100%)
meta-python/recipes-devtools/python/python-greenlet.inc +2 -2
index fcd81f6c3e..c7c656c84a 100644
@@ -3,7 +3,7 @@ LICENSE = "MIT & PSF"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=03143d7a1a9f5d8a0fee825f24ca9c36 \
                     file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a"
 
-SRC_URI[md5sum] = "a87b6028c3b742b210bf5973939db595"
-SRC_URI[sha256sum] = "f1cc268a15ade58d9a0c04569fe6613e19b8b0345b64453064e2c3c6d79051af"
+SRC_URI[md5sum] = "10fa304f673fc18b28fa6d8c6658cb80"
+SRC_URI[sha256sum] = "9416443e219356e3c31f1f918a91badf2e37acf297e2fa13d24d1cc2380f8fbc"
 
 inherit pypi
meta-python/recipes-devtools/python/python-greenlet_0.4.15.bb renamed from meta-python/recipes-devtools/python/python-greenlet_0.4.14.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python-greenlet_0.4.14.bb
rename to meta-python/recipes-devtools/python/python-greenlet_0.4.15.bb
meta-python/recipes-devtools/python/python3-greenlet_0.4.15.bb renamed from meta-python/recipes-devtools/python/python3-greenlet_0.4.14.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-greenlet_0.4.14.bb
rename to meta-python/recipes-devtools/python/python3-greenlet_0.4.15.bb
Signature · 1 line
2.21.0
author
#4 lore raw

PATCH 5/12 python-grpcio: Upgrade to 1.19.0

In reply to Khem Raj

Refresh patch to apply cleanly
Fix build for RISC-V

---
 .../recipes-devtools/python/python-grpcio.inc    |  6 ++++--
 ....py-Do-not-mix-C-and-C-compiler-options.patch | 12 +++++-------
 .../python/python-grpcio/riscv64_support.patch   | 16 ++++++++++++++++
 ...-grpcio_1.17.1.bb => python-grpcio_1.19.0.bb} |  0
 ...grpcio_1.17.1.bb => python3-grpcio_1.19.0.bb} |  0
 5 files changed, 25 insertions(+), 9 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-grpcio/riscv64_support.patch
 rename meta-python/recipes-devtools/python/{python-grpcio_1.17.1.bb => python-grpcio_1.19.0.bb} (100%)
 rename meta-python/recipes-devtools/python/{python3-grpcio_1.17.1.bb => python3-grpcio_1.19.0.bb} (100%)
meta-python/recipes-devtools/python/python-grpcio.inc +4 -2
index 0cef0dda02..fd341f5de7 100644
@@ -8,6 +8,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/python-grpcio:"
 
 SRC_URI_append_class-target = " file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch \
                                 file://ppc-boringssl-support.patch \
+                                file://riscv64_support.patch \
 "
 
 RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \
@@ -19,8 +20,9 @@ LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
 
 inherit pypi
-SRC_URI[md5sum] = "dd46d7270dfce713c03f45fae999cae3"
-SRC_URI[sha256sum] = "fd6774bbb6c717f725b39394757445ead4f69c471118364933aadb81a4f16961"
+
+SRC_URI[md5sum] = "188565f150f34d1927b87e014f0f4b73"
+SRC_URI[sha256sum] = "2ddbca16c2e7b3f2ffc6e34c7cfa6886fb01de9f156ad3f77b72ad652d632097"
 
 CLEANBROKEN = "1"
 
meta-python/recipes-devtools/python/python-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch +5 -7
index 996597b146..f17f048de8 100644
@@ -18,11 +18,9 @@ Signed-off-by: Khem Raj <[email protected]>
  setup.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-Index: grpcio-1.14.1/setup.py
-===================================================================
---- grpcio-1.14.1.orig/setup.py
-+++ grpcio-1.14.1/setup.py
-@@ -123,7 +123,7 @@ ENABLE_DOCUMENTATION_BUILD = os.environ.
+--- a/setup.py
++++ b/setup.py
+@@ -145,7 +145,7 @@ ENABLE_DOCUMENTATION_BUILD = os.environ.
  EXTRA_ENV_COMPILE_ARGS = os.environ.get('GRPC_PYTHON_CFLAGS', None)
  EXTRA_ENV_LINK_ARGS = os.environ.get('GRPC_PYTHON_LDFLAGS', None)
  if EXTRA_ENV_COMPILE_ARGS is None:
@@ -31,7 +29,7 @@ Index: grpcio-1.14.1/setup.py
    if 'win32' in sys.platform and sys.version_info < (3, 5):
      EXTRA_ENV_COMPILE_ARGS += ' -D_hypot=hypot'
      # We use define flags here and don't directly add to DEFINE_MACROS below to
-@@ -135,7 +135,7 @@ if EXTRA_ENV_COMPILE_ARGS is None:
+@@ -157,7 +157,7 @@ if EXTRA_ENV_COMPILE_ARGS is None:
      else:
        EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime64 -D_timeb=__timeb64'
    elif "linux" in sys.platform:
@@ -39,4 +37,4 @@ Index: grpcio-1.14.1/setup.py
 +    EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv -fno-exceptions'
    elif "darwin" in sys.platform:
      EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv -fno-exceptions'
- EXTRA_ENV_COMPILE_ARGS += ' -DPB_FIELD_16BIT'
+ EXTRA_ENV_COMPILE_ARGS += ' -DPB_FIELD_32BIT'
meta-python/recipes-devtools/python/python-grpcio/riscv64_support.patch new file +16 -0
new file mode 100644
index 0000000000..fef7d9e757
@@ -0,0 +1,16 @@
+Add RISC-V 64bit support
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+--- a/third_party/boringssl/include/openssl/base.h
++++ b/third_party/boringssl/include/openssl/base.h
+@@ -104,6 +104,9 @@ extern "C" {
+ #elif defined(__mips__) && defined(__LP64__)
+ #define OPENSSL_64_BIT
+ #define OPENSSL_MIPS64
++#elif defined(__riscv) && defined(__riscv_xlen)
++#define OPENSSL_64_BIT
++#define OPENSSL_RISCV64
+ #elif defined(__pnacl__)
+ #define OPENSSL_32_BIT
+ #define OPENSSL_PNACL
meta-python/recipes-devtools/python/python-grpcio_1.19.0.bb renamed from meta-python/recipes-devtools/python/python-grpcio_1.17.1.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python-grpcio_1.17.1.bb
rename to meta-python/recipes-devtools/python/python-grpcio_1.19.0.bb
meta-python/recipes-devtools/python/python3-grpcio_1.19.0.bb renamed from meta-python/recipes-devtools/python/python3-grpcio_1.17.1.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-grpcio_1.17.1.bb
rename to meta-python/recipes-devtools/python/python3-grpcio_1.19.0.bb
Signature · 1 line
2.21.0
author
#5 lore raw

PATCH 6/12 inetutils: Fix build on RISC-V

In reply to Khem Raj
---
 .../recipes-connectivity/inetutils/inetutils_1.9.4.bb           | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb +2 -0
index a27dbae2e6..453f485d1c 100644
@@ -54,6 +54,8 @@ EXTRA_OECONF_append_libc-musl = " --disable-rsh --disable-rcp --disable-rlogin "
 do_configure_prepend () {
     export HELP2MAN='true'
     cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
     rm -f ${S}/glob/configure*
 }
 
Signature · 1 line
2.21.0
#6 lore raw

Re: [meta-networking][PATCH 06/12] inetutils: Fix build on RISC-V

Quoted 4 lines · Khem Raj
---
 .../recipes-connectivity/inetutils/inetutils_1.9.4.bb           | 2 ++

...

This recipe moved to OE-core.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
author
#7 lore raw

Re: [meta-networking][PATCH 06/12] inetutils: Fix build on RISC-V

Quoted 9 lines · Adrian Bunk
Quoted 4 lines · Khem Raj
---
 .../recipes-connectivity/inetutils/inetutils_1.9.4.bb           | 2 ++

...

This recipe moved to OE-core.

thansk of reminder, yeah it was in transition. I hoping Tom will send a patch to delete these recipes from meta-oe repo.

Quoted 10 lines

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

#8 lore raw

Re: [meta-networking][PATCH 06/12] inetutils: Fix build on RISC-V

Quoted 8 lines · Khem Raj
Quoted 7 lines · Adrian Bunk
Quoted 4 lines · Khem Raj
---
 .../recipes-connectivity/inetutils/inetutils_1.9.4.bb           | 2 ++

...

Quoted 5 lines
Quoted 2 lines

This recipe moved to OE-core.

thansk of reminder, yeah it was in transition. I hoping Tom will send a patch to delete these recipes from meta-oe repo.

Yes, I sent one last week :) Do you need me to rebase them?

Signature · 1 line
Tom
author
#9 lore raw

Re: [meta-networking][PATCH 06/12] inetutils: Fix build on RISC-V

Quoted 10 lines · Tom Rini
Quoted 8 lines · Khem Raj
Quoted 7 lines · Adrian Bunk
Quoted 4 lines · Khem Raj
---
 .../recipes-connectivity/inetutils/inetutils_1.9.4.bb           | 2 ++

...

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

This recipe moved to OE-core.

thansk of reminder, yeah it was in transition. I hoping Tom will send a patch to delete these recipes from meta-oe repo.

Yes, I sent one last week :) Do you need me to rebase them?

its not in my inbox, maybe I missed it, please point me to it. In anycase I have pushed a patch into master-next

https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=26e11bd62d066dfdb7034c981f6fca04411c95f2

Quoted 2 lines

--
Tom

#10 lore raw

Re: [meta-networking][PATCH 06/12] inetutils: Fix build on RISC-V

Quoted 14 lines · Khem Raj
Quoted 13 lines · Tom Rini
Quoted 11 lines · Khem Raj
Quoted 9 lines · Adrian Bunk
Quoted 4 lines · Khem Raj
---
 .../recipes-connectivity/inetutils/inetutils_1.9.4.bb           | 2 ++

...

This recipe moved to OE-core.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

thansk of reminder, yeah it was in transition. I hoping Tom will send a patch to delete these recipes from meta-oe repo.

Yes, I sent one last week :) Do you need me to rebase them?

its not in my inbox, maybe I missed it, please point me to it. In anycase I have pushed a patch into master-next

Lemme just wipe the egg off my face for sending it to the wrong list, rebase it anyhow and send it properly. Sorry about that!

Signature · 1 line
Tom
author
#11 lore raw

PATCH 7/12 nmap: Fix build on RISC-V

In reply to Khem Raj
---
 meta-oe/recipes-security/nmap/nmap_7.70.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-security/nmap/nmap_7.70.bb +2 -0
index e878038266..b1b150a7d0 100644
@@ -42,6 +42,8 @@ export PYTHON_SITEPACKAGES_DIR
 
 do_configure() {
     autoconf
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
     oe_runconf
 }
 
Signature · 1 line
2.21.0
author
#12 lore raw

PATCH 8/12 netdata: Link with libpthread

In reply to Khem Raj

Fixes
global_statistics.c:90: undefined reference to `__atomic_fetch_add_2' | collect2: error: ld returned 1 exit status

---
 meta-webserver/recipes-webadmin/netdata/netdata_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-webserver/recipes-webadmin/netdata/netdata_git.bb +2 -0
index b0f1602528..390fa4ba9b 100644
@@ -27,6 +27,8 @@ DEPENDS += "zlib util-linux"
 
 inherit pkgconfig autotools useradd systemd
 
+LDFLAGS += "-pthread"
+
 #systemd
 SYSTEMD_PACKAGES = "${PN}"
 SYSTEMD_SERVICE_${PN} = "netdata.service"
Signature · 1 line
2.21.0
author
#13 lore raw

PATCH 9/12 webrtc-audio-processing: Add support for risc-v

In reply to Khem Raj
---
 .../riscv_support.patch                       | 33 +++++++++++++++++++
 .../webrtc-audio-processing_0.3.bb            |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing/riscv_support.patch
meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing/riscv_support.patch new file +33 -0
new file mode 100644
index 0000000000..576b9860a8
@@ -0,0 +1,33 @@
+Add support for RISC-V
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+--- a/webrtc/base/basictypes.h
++++ b/webrtc/base/basictypes.h
+@@ -29,6 +29,10 @@
+ #define CPU_ARM 1
+ #endif
+ 
++#if defined(__riscv) || defined(_M_RISCV)
++#define CPU_RISCV 1
++#endif
++
+ #if defined(CPU_X86) && defined(CPU_ARM)
+ #error CPU_X86 and CPU_ARM both defined.
+ #endif
+--- a/webrtc/typedefs.h
++++ b/webrtc/typedefs.h
+@@ -56,6 +56,13 @@
+ #elif defined(__powerpc__)
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_BIG_ENDIAN
++#elif defined(__riscv)
++#if __riscv_xlen == 64
++# define WEBRTC_ARCH_64_BITS
++#else
++# define WEBRTC_ARCH_32_BITS
++#endif
++#define WEBRTC_ARCH_LITTLE_ENDIAN
+ #elif defined(__pnacl__)
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing_0.3.bb +1 -0
index 2b0f7c6840..dbba2f488c 100644
@@ -19,6 +19,7 @@ SRC_URI = "http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/${
            file://0004-typedefs.h-add-support-for-64-bit-and-big-endian-MIP.patch \
            file://0005-typedefs.h-add-support-for-PowerPC.patch \
            file://0006-common_audio-implement-endianness-conversion-in-wav-.patch \
+           file://riscv_support.patch \
 "
 
 SRC_URI[md5sum] = "336ae032f608e65808ac577cde0ab72c"
Signature · 1 line
2.21.0
author
#14 lore raw

PATCH 10/12 openocd: Fix build for risc-v

In reply to Khem Raj
---
 meta-oe/recipes-devtools/openocd/openocd_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/openocd/openocd_git.bb +2 -0
index 21a86de390..4377e88e47 100644
@@ -29,6 +29,8 @@ EXTRA_OECONF = "--enable-ftdi --disable-doxygen-html"
 
 do_configure() {
     ./bootstrap nosubmodule
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/jimtcl/autosetup
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/jimtcl/autosetup
     oe_runconf ${EXTRA_OECONF}
 }
 
Signature · 1 line
2.21.0
author
#15 lore raw

PATCH 11/12 rabbitmq-c: Upgrade to 0.9.0

In reply to Khem Raj

Switch to Cmake

---
 .../{rabbitmq-c_0.7.0.bb => rabbitmq-c_0.9.0.bb}           | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
 rename meta-oe/recipes-connectivity/rabbitmq-c/{rabbitmq-c_0.7.0.bb => rabbitmq-c_0.9.0.bb} (67%)
meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.9.0.bb renamed from meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.7.0.bb +4 -3
similarity index 67%
rename from meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.7.0.bb
rename to meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.9.0.bb
index e9846fdea5..5096d6cd3a 100644
@@ -4,15 +4,16 @@ LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=6b7424f9db80cfb11fdd5c980b583f53"
 LICENSE = "MIT"
 
 SRC_URI = "git://github.com/alanxz/rabbitmq-c.git"
-SRCREV = "4dde30ce8d984edda540349f57eb7995a87ba9de"
+# v0.9.0-master
+SRCREV = "7e693a23f7fb7120f85995d3c922814495be30db"
 
 S = "${WORKDIR}/git"
 
 DEPENDS = "popt openssl"
 
-EXTRA_OECONF = "--disable-examples --enable-tools --disable-docs"
+EXTRA_OECMAKE = "-DBUILD_EXAMPLES=OFF -DBUILD_TOOLS=ON -DBUILD_TOOLS_DOCS=OFF -DBUILD_API_DOCS=OFF"
 
-inherit autotools pkgconfig
+inherit cmake pkgconfig
 
 PACKAGE_BEFORE_PN += "${PN}-tools"
 FILES_${PN}-tools = "${bindir}"
Signature · 1 line
2.21.0
author
#16 lore raw

PATCH 12/12 libmxml: Upgrade to 3.0 release

In reply to Khem Raj

License-Update: Switch to Apache-2.0 as upstream has switched

https://github.com/michaelrsweet/mxml/commit/f166ad1977f2f13295689772a5d9e442f73d46f1#diff-9879d6db96fd29134fc802214163b95a

Fix build on risc-v

---
 meta-oe/recipes-support/libmxml/libmxml_git.bb | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
meta-oe/recipes-support/libmxml/libmxml_git.bb +7 -4
index 542fe81575..b17fc67e0a 100644
@@ -1,13 +1,14 @@
 DESCRIPTION = "Tiny XML Library"
-LICENSE = "Mini-XML-License"
-LIC_FILES_CHKSUM = "file://COPYING;md5=a6ba38606d63bb042c5d8cfee182e120"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
 HOMEPAGE = "https://www.msweet.org/mxml/"
 BUGTRACKER = "https://github.com/michaelrsweet/mxml/issues"
 
 SRC_URI = "git://github.com/michaelrsweet/mxml.git"
-SRCREV = "ba3cca82e15a88a9cc6afb60f059288a99afc703"
+SRCREV = "c7755b6992a2afdd34dde47fc9be97f1237cfded"
 S = "${WORKDIR}/git"
-PV = "2.12+git${SRCPV}"
+# v3.0
+PV = "3.0"
 
 CONFIGUREOPTS = " --prefix=${prefix} \
                   --bindir=${bindir} \
@@ -28,6 +29,8 @@ CONFIGUREOPTS = " --prefix=${prefix} \
                 "
 
 do_configure() {
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
     ./configure ${CONFIGUREOPTS} --enable-shared
 }
 
Signature · 1 line
2.21.0