From patchwork Sat Nov 26 21:54:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Barbion X-Patchwork-Id: 1709258 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NKQdZ1rsnz23nj for ; Sun, 27 Nov 2022 09:00:16 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B9E8C41607; Sat, 26 Nov 2022 22:00:13 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org B9E8C41607 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6hXfW73Tf-F1; Sat, 26 Nov 2022 22:00:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id C76F2415FE; Sat, 26 Nov 2022 22:00:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org C76F2415FE X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 605FB1BF29A for ; Sat, 26 Nov 2022 22:00:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3F72F40448 for ; Sat, 26 Nov 2022 22:00:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 3F72F40448 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H1NNf5nUoDI1 for ; Sat, 26 Nov 2022 22:00:08 +0000 (UTC) X-Greylist: delayed 00:05:22 by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org CBAB64011C Received: from aven.230ruedubac.fr (aven.230ruedubac.fr [163.172.52.73]) by smtp2.osuosl.org (Postfix) with ESMTPS id CBAB64011C for ; Sat, 26 Nov 2022 22:00:07 +0000 (UTC) Received: from aven.230ruedubac.fr (localhost [127.0.0.1]) by aven.230ruedubac.fr (230ruedubac.fr domain) with ESMTP id 7BF01565508 for ; Sat, 26 Nov 2022 21:54:41 +0000 (UTC) Received: from knet.local (knet.230ruedubac.fr [45.83.230.42]) by aven.230ruedubac.fr (230ruedubac.fr domain) with ESMTPS id 6FE915654F3 for ; Sat, 26 Nov 2022 21:54:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by knet.local (Postfix) with ESMTP id 3DFF7F09F for ; Sat, 26 Nov 2022 22:54:41 +0100 (CET) Received: from knet.local ([127.0.0.1]) by localhost (knet.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BICypn31p5dj for ; Sat, 26 Nov 2022 22:54:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by knet.local (Postfix) with ESMTP id EA64F11E63 for ; Sat, 26 Nov 2022 22:54:38 +0100 (CET) Received: from nb043690.eth.internal (unknown [192.168.2.253]) by knet.local (Postfix) with ESMTPSA id AE220F09F; Sat, 26 Nov 2022 22:54:38 +0100 (CET) From: David Barbion To: buildroot@buildroot.org Date: Sat, 26 Nov 2022 22:54:36 +0100 Message-Id: <20221126215436.2078346-1-davidb@230ruedubac.fr> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=230ruedubac.fr; s=mail; t=1669499681; bh=rxl6uUtZsVwXux08HFCITSdM5eT0xaewfrnQNaItLik=; h=From:To:Cc:Subject:Date:From; b=ou1WkN15rNKKbzUnuNAdAB64P+r4jyL6kVeh99XO5MlLQ3k4CoWiYdlsR0CDKNXAc ZqcyHMtXJCRY94h3nIyb/7jZ6fgmKRizHBcSscUQ7qtLqXHFBrnxrI9ECD6gmABitb AUHVEXNdhDDgOXu4uwv5YRUT31iLT80jSK70UQmU= X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=230ruedubac.fr header.i=@230ruedubac.fr header.a=rsa-sha256 header.s=mail header.b=ou1WkN15 X-Mailman-Original-Authentication-Results: aven.230ruedubac.fr; dmarc=fail (p=none dis=none) header.from=230ruedubac.fr Subject: [Buildroot] [PATCH 1/1] package/x265: fix armv6 cross compilation issue X-BeenThere: buildroot@buildroot.org 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: Bernd Kuhls , David Barbion , Thijs Vermeir Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" When running a program that depends on x265, it crashes with the message: illegal instruction The package x265 was forcibly compiled with the gcc flag -mfpu=neon even if the target CPU does not support the neon instruction set. This fix adds the cmake flag CROSS_COMPILE_ARM to correctly set gcc flags when compiling for ARM architecture. Signed-off-by: David Barbion --- package/x265/x265.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/x265/x265.mk b/package/x265/x265.mk index 51c39df4cd..e3a4acc6e5 100644 --- a/package/x265/x265.mk +++ b/package/x265/x265.mk @@ -35,4 +35,8 @@ else X265_CONF_OPTS += -DENABLE_CLI=OFF endif +ifeq ($(BR2_arm)$(BR2_aarch64),y) +X265_CONF_OPTS += -DCROSS_COMPILE_ARM=1 +endif + $(eval $(cmake-package))