diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-03-05 18:54:57 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-03-06 11:32:27 -0800 |
commit | d3d751e8594564451d926902518f54d488777f9c (patch) | |
tree | 617ea4c27443d98773797c4a123c277c866cc336 /meta-multimedia | |
parent | 11165418e6e869edb31f9c5c1d39136ce1dc8ec1 (diff) | |
download | meta-openembedded-d3d751e8594564451d926902518f54d488777f9c.tar.gz |
liboil: Fix build on risc-v
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia')
-rw-r--r-- | meta-multimedia/recipes-support/liboil/liboil-0.3.17/fix_riscv_unaligned_access.patch | 15 | ||||
-rw-r--r-- | meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb | 1 |
2 files changed, 16 insertions, 0 deletions
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 @@ | |||
1 | RISC-V supports unaligned accesses, therefore enable it | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | --- a/m4/as-unaligned-access.m4 | ||
6 | +++ b/m4/as-unaligned-access.m4 | ||
7 | @@ -5,7 +5,7 @@ AC_DEFUN([AS_UNALIGNED_ACCESS], [ | ||
8 | AC_MSG_CHECKING([if unaligned memory access works correctly]) | ||
9 | if test x"$as_cv_unaligned_access" = x ; then | ||
10 | case $host in | ||
11 | - alpha*|arm*|hp*|mips*|sh*|sparc*|ia64*) | ||
12 | + alpha*|arm*|hp*|mips*|riscv*|sh*|sparc*|ia64*) | ||
13 | _AS_ECHO_N([(blacklisted) ]) | ||
14 | as_cv_unaligned_access=no | ||
15 | ;; | ||
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 \ | |||
18 | file://0001-Fix-enable-vfp-flag.patch \ | 18 | file://0001-Fix-enable-vfp-flag.patch \ |
19 | file://liboil_fix_for_x32.patch \ | 19 | file://liboil_fix_for_x32.patch \ |
20 | file://0001-math_vfp_asm.S-Convert-fldmia-fstmia-instructions-to.patch \ | 20 | file://0001-math_vfp_asm.S-Convert-fldmia-fstmia-instructions-to.patch \ |
21 | file://fix_riscv_unaligned_access.patch \ | ||
21 | " | 22 | " |
22 | 23 | ||
23 | SRC_URI[md5sum] = "47dc734f82faeb2964d97771cfd2e701" | 24 | SRC_URI[md5sum] = "47dc734f82faeb2964d97771cfd2e701" |