From patchwork Fri Jan 11 12:50:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 1023565 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oQtN1Zn0"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="gne2/KJw"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43bjQH2Rzmz9s3l for ; Fri, 11 Jan 2019 23:50:29 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=Iht8rKTfD3xh2WRgTmfBh9odhPdKTJzbNmmfwk1vKCE=; b=oQt N1Zn0DfywNDl48O40N8TAMUopqF5BKK+whC4uuzarjmyBT7pfGHC7ua7oca5b/dcISO6Izukokvmd 69MuNiyscGQnHPdZe9xlR+5UPh451KDQ67Ng/lmsTXASSFGwvraR7SLzHDFKSwV5+A2H7spYDY+iZ YotxSFuNhoK+0a3Qiaai/+GmBpOvzli40A/uG4seIV/3lUt3RAHgd3pM9j+ef1Keth3u63X1uuv4j 93kXLDnBtiee6pHK9RcPLLuSrqMc2+UE+NwTYHLZi3Zt4zhZ9JXHCc4wUlC0sxDPSqeCDnZY/B2Et c+KmewGrhLgrXK13w9I88Gz6EBtpnGg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghwGZ-0004wR-ET; Fri, 11 Jan 2019 12:50:27 +0000 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghwGW-0004tZ-G4 for linux-snps-arc@lists.infradead.org; Fri, 11 Jan 2019 12:50:26 +0000 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id BAF6E10C05CC; Fri, 11 Jan 2019 04:50:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1547211022; bh=SPf1OB2Q83MraP2BrkSLq+ywcX6eWgf77qd3vo6ds8U=; h=From:To:Cc:Subject:Date:From; b=gne2/KJw25OO4ssI3H/5MAGTkLh24aKaRMEl7+LUiWcZJzCtRTEZeaC9KUMKO2fFw bUVTKQk1JlLZvE1ZAXN8EH4bZBKfPJ2NUVxM7sn2WliiP+XT/Zo7pdnoC3sIGr/GVl ApqNhA4sOlad4ZyLlLeqIhgq+N+PHW2VaMz4NGHvjg1aLTg4ulljjAHJnI/7Wz6AVy Afv9PEQNHKpjXLX+/gxVIzKoDRlyvBZ3cqCdRzIMeeKqWQIRgwtvsUtWSM2NwbQS+H ZEG/o/StO1CeeSFv93YONkhm2Fk6lWBh6Yoqg34jycm8mpTUsp/9O6zf9tOaRPnd8T gvz75CJ5WPbrg== Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id B085F3A76; Fri, 11 Jan 2019 04:50:19 -0800 (PST) From: Alexey Brodkin To: openembedded-core@lists.openembedded.org Subject: [PATCH] webkitgtk: Enable building for ARC architecture Date: Fri, 11 Jan 2019 15:50:14 +0300 Message-Id: <20190111125014.34593-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190111_045024_543259_4841FCCC X-CRM114-Status: UNSURE ( 8.94 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Brodkin , Hongxu Jia , Khem Raj , Richard Purdie , Alexander Kanavin , linux-snps-arc@lists.infradead.org, Ross Burton MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Alexander Kanavin Cc: Hongxu Jia --- 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 fc56822f7a..56f69c7a30 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 "