From patchwork Thu Feb 20 22:49:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 1241702 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=Z87YAv4j; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48NqY11BJzz9sRR for ; Fri, 21 Feb 2020 09:49:56 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BFF6B207A8; Thu, 20 Feb 2020 22:49:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZoLAl-v4uFnr; Thu, 20 Feb 2020 22:49:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id E9BAF203B0; Thu, 20 Feb 2020 22:49:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7D6231BF354 for ; Thu, 20 Feb 2020 22:49:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7510C875EB for ; Thu, 20 Feb 2020 22:49:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UNucMn5bQ3cp for ; Thu, 20 Feb 2020 22:49:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by whitealder.osuosl.org (Postfix) with ESMTPS id 08E678758F for ; Thu, 20 Feb 2020 22:49:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1582238982; bh=lxnZE8uhwnBFkeHYsWz5dAohj0pcsGyxnElydEZGFG0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Z87YAv4j5pvvvZNUnv8PA8EHkxeX1Vc8RdYtBQkZy+XggjNuA++ymiiv6SLoBhjgq eMaUxBi4iMGMirCRe4ZCYJSy280yPN8l/7+r06orWK+NTCIxXJBw9R/XN5uxeN81H7 u7sETCaAWrZHrkSdPl839MY/1UDQza5uSl5as+pc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.fritz.box ([62.216.209.103]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MV67o-1iuZ3z4C5W-00S5N8; Thu, 20 Feb 2020 23:49:42 +0100 From: Peter Seiderer To: buildroot@busybox.net Date: Thu, 20 Feb 2020 23:49:38 +0100 Message-Id: <20200220224938.13945-1-ps.report@gmx.net> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:dbrBTaPJ9TCDlddJh80LuPJhfmKtX2StFUEGsWMwABMYbEc4x1V /lEeYfoNX9lxlG7BdoOTR2SXIU6v4P0X1g8Bh2+MQnbFL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rLnhg95qByqTF89OnVxgI2KGocTiDyNznjWt7NEL5DFwoIEEhunBqBGi+/i 6t38GZpWrt6nsAS/vimIBPtACBbaSHNSopU3ycsmATw0oM2+rI9PG4YaHxdSYKFhNuOezZ+xU 5uwlbhpSNcVuesl7elS/R3be38rpDYNdnpzPoMOE/7TUG2a1mO/WMUW8QEY3N0QCrE0otp6FN rgOcil7c6R9+xxN1dt35EOmkMoXBpOidCpNxAHCtTLSt4TL0s+CqJM3fHlvKpKkmZ4YqT5Z4O 7n/kLgI+4kaFUrEmRroU96fxEZCx+ly9GQAoH95NBV7/7fZTUMoQBkQt/PcYEg2km2QS+Y71j lC/Q2ra/VNB/dTqms Subject: [Buildroot] [RFC v1] WIP: package/qt5webengine: fix compile flags for rpi zero X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julien Corjon , =?utf-8?q?Ga=C3=ABl_Portay?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The qt5webengine configure simple takes QT_ARCH ('arm') to determine the chromium compiler flags resulting in wrong defaults for the rpi zero case (resulting in illegal instruction failure), e.g.: -march=armv7-a -mfloat-abi=hard -mtune=generic-armv7-a -mfpu=vfpv3-d16 Add patch to overwrite the chromium settings with suitable values for the rpi zero case in the file rc/3rdparty/chromium/build/config/arm.gni. Fixes: $ /usr/lib/qt/examples/webengine/minimal/minimal Illegal instruction Signed-off-by: Peter Seiderer --- Notes: - Work-In-Progress patch to test the prinziple of chromium configuration for the rpi zero case, do not apply. A real fix should set the values in arm.gni determined from the buildroot configuration. --- .../0002-force-rpi-zero-compile-flags.patch | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 package/qt5/qt5webengine/5.12.7/0002-force-rpi-zero-compile-flags.patch diff --git a/package/qt5/qt5webengine/5.12.7/0002-force-rpi-zero-compile-flags.patch b/package/qt5/qt5webengine/5.12.7/0002-force-rpi-zero-compile-flags.patch new file mode 100644 index 0000000000..fd74376f11 --- /dev/null +++ b/package/qt5/qt5webengine/5.12.7/0002-force-rpi-zero-compile-flags.patch @@ -0,0 +1,60 @@ +From b1fb963cfc5c164663e78d948eb8482d0ab80edb Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Thu, 20 Feb 2020 20:16:53 +0100 +Subject: [PATCH] force rpi zero compile flags + +Signed-off-by: Peter Seiderer +--- + src/3rdparty/chromium/build/config/arm.gni | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/src/3rdparty/chromium/build/config/arm.gni b/src/3rdparty/chromium/build/config/arm.gni +index abd4dd02f..8c0f4c979 100644 +--- a/src/3rdparty/chromium/build/config/arm.gni ++++ b/src/3rdparty/chromium/build/config/arm.gni +@@ -13,35 +13,35 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") { + declare_args() { + # Version of the ARM processor when compiling on ARM. Ignored on non-ARM + # platforms. +- arm_version = 7 ++ arm_version = 6 + + # The ARM architecture. This will be a string like "armv6" or "armv7-a". + # An empty string means to use the default for the arm_version. +- arm_arch = "" ++ arm_arch = "armv6kz+fp" + + # The ARM floating point hardware. This will be a string like "neon" or + # "vfpv3". An empty string means to use the default for the arm_version. +- arm_fpu = "" ++ arm_fpu = "vfp" + + # The ARM floating point mode. This is either the string "hard", "soft", or + # "softfp". An empty string means to use the default one for the + # arm_version. +- arm_float_abi = "" ++ arm_float_abi = "hard" + + # The ARM variant-specific tuning mode. This will be a string like "armv6" + # or "cortex-a15". An empty string means to use the default for the + # arm_version. +- arm_tune = "" ++ arm_tune = "arm1176jzf-s" + + # Whether to use the neon FPU instruction set or not. +- arm_use_neon = "" ++ arm_use_neon = "false" + + # Whether to enable optional NEON code paths. + arm_optionally_use_neon = false + + # Thumb is a reduced instruction set available on some ARM processors that + # has increased code density. +- arm_use_thumb = true ++ arm_use_thumb = false + } + + assert(arm_float_abi == "" || arm_float_abi == "hard" || +-- +2.25.0 +