diff mbox series

[oe,meta-multimedia,02/12] liboil: Fix build on risc-v

Message ID 20190306054548.16430-2-raj.khem@gmail.com
State New
Headers show
Series [oe,meta-oe,01/12] poco: Backport riscv support patch | expand

Commit Message

Khem Raj March 6, 2019, 5:45 a.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 .../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

-- 
2.21.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-multimedia/recipes-support/liboil/liboil-0.3.17/fix_riscv_unaligned_access.patch b/meta-multimedia/recipes-support/liboil/liboil-0.3.17/fix_riscv_unaligned_access.patch
new file mode 100644
index 0000000000..448bde73fc
--- /dev/null
+++ b/meta-multimedia/recipes-support/liboil/liboil-0.3.17/fix_riscv_unaligned_access.patch
@@ -0,0 +1,15 @@ 
+RISC-V supports unaligned accesses, therefore enable it
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- 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
+ 	;;
diff --git a/meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb b/meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb
index 7e8aa1572a..654ee1e883 100644
--- a/meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb
+++ b/meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb
@@ -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"