mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-15 23:05:34 +01:00
liboil: Fix build on risc-v
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
11165418e6
commit
d3d751e859
|
|
@ -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
|
||||
;;
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user