[oe-commits] [openembedded-core] 20/27: webkitgtk: Enable building for ARC architecture

git at git.openembedded.org git at git.openembedded.org
Mon Jan 14 11:23:09 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 463f10fde9f72d26e89db324ca675bfe597fcc5e
Author: Alexey Brodkin <alexey.brodkin at synopsys.com>
AuthorDate: Fri Jan 11 15:50:14 2019 +0300

    webkitgtk: Enable building for ARC architecture
    
    For that we need 2 things:
     1. Disable JIT in JS as it's not supported for ARC.
    
     2. Compile with "-mlong-calls" so relocations with
        offsets larger than 25 bits are used, otherwise
        linker fails to link final binaries.
    
    Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
    Cc: Alexander Kanavin <alex.kanavin at gmail.com>
    Cc: Hongxu Jia <hongxu.jia at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-sato/webkit/webkitgtk_2.22.5.bb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/recipes-sato/webkit/webkitgtk_2.22.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.22.5.bb
index 2e79f73..e3579e4 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.22.5.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.22.5.bb
@@ -69,6 +69,13 @@ EXTRA_OECMAKE = " \
 EXTRA_OECMAKE_append_x86 = " -DUSE_GSTREAMER_GL=OFF "
 EXTRA_OECMAKE_append_x86-x32 = " -DUSE_GSTREAMER_GL=OFF "
 
+# Javascript JIT is not supported on ARC
+EXTRA_OECMAKE_append_arc = " -DENABLE_JIT=OFF "
+# By default 25-bit "medium" calls are used on ARC
+# which is not enough for binaries larger than 32 MiB
+CFLAGS_append_arc = " -mlong-calls"
+CXXFLAGS_append_arc = " -mlong-calls"
+
 # Javascript JIT is not supported on powerpc
 EXTRA_OECMAKE_append_powerpc = " -DENABLE_JIT=OFF "
 EXTRA_OECMAKE_append_powerpc64 = " -DENABLE_JIT=OFF "

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list