liboil: Fix build on risc-v

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2019-03-05 18:54:57 -08:00
parent 11165418e6
commit d3d751e859
2 changed files with 16 additions and 0 deletions

View File

@ -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
;;

View File

@ -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"