From patchwork Thu Apr 7 00:56:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1614217 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=FtNxrEMj; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KYjd822yBz9sFk for ; Thu, 7 Apr 2022 10:56:43 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9A94A83F0C; Thu, 7 Apr 2022 00:56:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1BaUbKxfyX_T; Thu, 7 Apr 2022 00:56:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id D67B783EDB; Thu, 7 Apr 2022 00:56:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6B1861C1135 for ; Thu, 7 Apr 2022 00:56:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 59F7283EDB for ; Thu, 7 Apr 2022 00:56:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KHRNPnSIsue1 for ; Thu, 7 Apr 2022 00:56:26 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by smtp1.osuosl.org (Postfix) with ESMTPS id E162683E86 for ; Thu, 7 Apr 2022 00:56:26 +0000 (UTC) Received: by mail-pj1-x102f.google.com with SMTP id nt14-20020a17090b248e00b001ca601046a4so7489395pjb.0 for ; Wed, 06 Apr 2022 17:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PqlwKGT14+jq0DWB8xFUYd2YMUImtBCsDpABjpUdel4=; b=FtNxrEMjh32oy9XUCM17NehbX4BaD22kvaFGPniWzyXmQLfg2OyDRlk0cz9uGv5voD tzTjTv5xSTuUrplF8zmIemycdpXf+yuHUfgsH3S6FXv4RI0F5qvRtGmxICyll1SmJcKB 0WtsRQQ3/q4MLN8IbGgb2+fTyE0XUhJ3JM/zM8YRRPSpsUcEHacwpp7/kUl3jvVSAdej gCNkDCC3ubVNNQ95AEX+0uKQ/YgQxfnEt4TPHjZKq39RbLjUKWZzQQoPg0qkdMY/Xlaw JfqMDkJVDH85LkxLZ7DaWmr/xq91Ewn9bbuU+a8FU9W/FmBkQqfgYeFv9eVJxSW9TSGs So2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=PqlwKGT14+jq0DWB8xFUYd2YMUImtBCsDpABjpUdel4=; b=zz/TOFvK/WWIQN8eGDqqv2Sz8Ri6PlzW+r6BtKR9rEs/Raodf2lVHtkifLKnc66c92 S/EOxxvAEn2zuEWrkaLLOFkUjVl0iVunXPLILQ5qfd4OBMiym5NZ1WM5Xurym0HOUu20 JbJzbvTZ9YP8/zvbeVvH8yuWeAM3purJW6GxSUao5hyFvprgbAjg/BD8KEr/c4Q0EUmi 3Kv3JEfYLvhhH3ULi8ruUgWOMGDiu5WsV4QCxaFUiQVeqWvGHygHG3zhcs53eMTTKqFr q5AUTzbm0De31RA2Pzgp8jdry/S+VghvsadoLzInLTQxul9Zo8bJGqp/0GySepQ/BUTr Eveg== X-Gm-Message-State: AOAM530M2GAaOKoAYtkc4Mqcoj2Y8fgKqtjvXqsYwENRo3N5YPNiMVS/ 6bPnBPUk+c7XFyrIurmG77CI5oX/xmk= X-Google-Smtp-Source: ABdhPJxVZe+Ggahxbe0EHuLAqNBVmZnx+g6nLBtNK49uRur4/WdVylWBFoHlQmgeax8EhEac42ypXw== X-Received: by 2002:a17:902:cec5:b0:154:6b18:6157 with SMTP id d5-20020a170902cec500b001546b186157mr11220210plg.145.1649292985828; Wed, 06 Apr 2022 17:56:25 -0700 (PDT) Received: from voyager.ibm.com (cpe-172-197-129-163.sa.foxtel.net.au. [172.197.129.163]) by smtp.gmail.com with ESMTPSA id x12-20020aa7956c000000b004fdf7a4d49dsm13067804pfq.158.2022.04.06.17.56.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 17:56:24 -0700 (PDT) From: Joel Stanley To: buildroot@buildroot.org, fontaine.fabrice@gmail.com Date: Thu, 7 Apr 2022 10:26:06 +0930 Message-Id: <20220407005608.203359-2-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220407005608.203359-1-joel@jms.id.au> References: <20220407005608.203359-1-joel@jms.id.au> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/3] arch/Config.in.powerpc: Add BR2_POWERPC_CPU_HAS_VSX 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: Joseph Kogut , Bernd Kuhls , Giulio Benetti , Cyril Bur , Michael Ellerman Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Introduced to allow VSX to be selectively enabled for packages that support it. Initially used by libnss. Signed-off-by: Joel Stanley --- arch/Config.in.powerpc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/Config.in.powerpc b/arch/Config.in.powerpc index 4a39cfee70d4..272f66f4e7ea 100644 --- a/arch/Config.in.powerpc +++ b/arch/Config.in.powerpc @@ -1,6 +1,9 @@ config BR2_POWERPC_CPU_HAS_ALTIVEC bool +config BR2_POWERPC_CPU_HAS_VSX + bool + config BR2_POWERPC_CPU_HAS_SPE bool @@ -123,9 +126,11 @@ config BR2_powerpc_power6 config BR2_powerpc_power7 bool "power7" select BR2_POWERPC_CPU_HAS_ALTIVEC + select BR2_POWERPC_CPU_HAS_VSX config BR2_powerpc_power8 bool "power8" select BR2_POWERPC_CPU_HAS_ALTIVEC + select BR2_POWERPC_CPU_HAS_VSX endchoice choice From patchwork Thu Apr 7 00:56:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1614218 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=dNo8+gRu; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KYjdP0LDtz9sG5 for ; Thu, 7 Apr 2022 10:56:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E897E61199; Thu, 7 Apr 2022 00:56:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xYYq0sOpGDY3; Thu, 7 Apr 2022 00:56:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 0194F60F41; Thu, 7 Apr 2022 00:56:52 +0000 (UTC) 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 987761C1135 for ; Thu, 7 Apr 2022 00:56:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 8652C40570 for ; Thu, 7 Apr 2022 00:56:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 UVtJno_QPrRj for ; Thu, 7 Apr 2022 00:56:30 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by smtp2.osuosl.org (Postfix) with ESMTPS id CD43040500 for ; Thu, 7 Apr 2022 00:56:30 +0000 (UTC) Received: by mail-pl1-x636.google.com with SMTP id f10so3494603plr.6 for ; Wed, 06 Apr 2022 17:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kzSJafxD/867Fw06E6oFy+AMGGGNnOmjzEQZHlW9dj0=; b=dNo8+gRu4A1c0AQWRB5EjIXzr9ArYREc2vUZk7bgp89LQxDjDv+wUl2vMAlrmyDr0E 5UzCH+vmApMPs4/Kjaf5D6AE3/dD48o7xFJRHVM3Xp4Z0tJjUEVczvO4qi15VFtKa+vV 78Y4kc6VKku90zcrLPojxqUajEq5xI8TcpHTmmdRfL9eQ65fd/cjGxTG0hOX6KVTcR0b /O6eQX8h+44z4KgkeFkoYCkkhSh93NrzHAvMYujhpmmSER0H/bJh+bp6P+UYCQ/edf6D 0gvxucLTIZpuMLKPvcdFURvDna78REk2haQTsnuunjIYLzvjBGYu+A9jWJnLEVhg18fM fiLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=kzSJafxD/867Fw06E6oFy+AMGGGNnOmjzEQZHlW9dj0=; b=FoLcPSS766cyyCV6ESKFxZu3d3iEfRv0yLAXEwLGhgSzCtkfgN5Q/bF+m/+mvztBuY kjNPDxMKc85LQgorXO8NXmS0AnfoubXQYk69hqf5dJicWiNvKq3qS64uQ9loGbknPQPt Z0Hs0llqnlwEa3MpFsAo0npHR/uVgPzSx7oJHFEjEJe/QPCOp7ZhhhmBRfGXB6GHdaEx DHIJ8u9jVbJKEIkzDUxsK2cGtrZdszSLkIlEcWAG+BBXOHaInTeI6yP3pJAEMzHgXPmQ 1RZhGajW3KVHPkHPIXTahRPukhKjj+4WTukA40WZlMZnukXVcUh3moVQuEO4J0x1lhsl SLRg== X-Gm-Message-State: AOAM532yCz6Rk0ZkrS8ZR8GliRugv9x4mTnCboeyYYr4Sv1y/Gm3rup7 7+yg9H9XLjMKx8e5BBIViBlJoQywPVs= X-Google-Smtp-Source: ABdhPJyyGK+xiYR0wWqobAxiDa5XENN7wamcfqjXVKJVAnZul4V0f1lfILVK+xQ35rDqmxqCfOPfFQ== X-Received: by 2002:a17:902:ce82:b0:156:bb3c:3297 with SMTP id f2-20020a170902ce8200b00156bb3c3297mr11009595plg.159.1649292989624; Wed, 06 Apr 2022 17:56:29 -0700 (PDT) Received: from voyager.ibm.com (cpe-172-197-129-163.sa.foxtel.net.au. [172.197.129.163]) by smtp.gmail.com with ESMTPSA id x12-20020aa7956c000000b004fdf7a4d49dsm13067804pfq.158.2022.04.06.17.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 17:56:28 -0700 (PDT) From: Joel Stanley To: buildroot@buildroot.org, fontaine.fabrice@gmail.com Date: Thu, 7 Apr 2022 10:26:07 +0930 Message-Id: <20220407005608.203359-3-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220407005608.203359-1-joel@jms.id.au> References: <20220407005608.203359-1-joel@jms.id.au> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 2/3] package/libnss: fix build on powerpc 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: Joseph Kogut , Bernd Kuhls , Giulio Benetti , Cyril Bur , Michael Ellerman Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Fabrice Fontaine Set NSS_DISABLE_CRYPTO_VSX which is available since version 3.64 and https://github.com/nss-dev/nss/commit/9dab43371d4d924419523e18ba84f02804880533 to avoid the following build failure on powerpc: cc1: warning: '-mvsx' requires hardware floating point cc1: error: '-mno-vsx' turns off '-mcrypto' Fixes: - http://autobuild.buildroot.org/results/6bedb5b658f6c9c16c26c73a524a995e5e84fcc8 Signed-off-by: Fabrice Fontaine Signed-off-by: Joel Stanley --- v2: rework to use BR2_POWERPC_CPU_HAS_VSX --- package/libnss/libnss.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk index 2f7a2651363e..318b6e305724 100644 --- a/package/libnss/libnss.mk +++ b/package/libnss/libnss.mk @@ -64,6 +64,11 @@ ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),) LIBNSS_BUILD_VARS += NSS_DISABLE_ALTIVEC=1 endif +ifeq ($(BR2_POWERPC_CPU_HAS_VSX),) +# Disable VSX if not supported +LIBNSS_BUILD_VARS += NSS_DISABLE_CRYPTO_VSX=1 +endif + ifeq ($(BR2_ARM_CPU_HAS_NEON),) # Disable arm32-neon if neon is not supported LIBNSS_BUILD_VARS += NSS_DISABLE_ARM32_NEON=1 From patchwork Thu Apr 7 00:56:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1614219 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=bPYHtVCG; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KYjdc5yNrz9sFk for ; Thu, 7 Apr 2022 10:57:08 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id D4F116119B; Thu, 7 Apr 2022 00:57:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rq1dUmQQ_PlK; Thu, 7 Apr 2022 00:57:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id D911C6119D; Thu, 7 Apr 2022 00:57:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id DA2691C1135 for ; Thu, 7 Apr 2022 00:56:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D704A41970 for ; Thu, 7 Apr 2022 00:56:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 JwmjV0DIcScv for ; Thu, 7 Apr 2022 00:56:34 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by smtp4.osuosl.org (Postfix) with ESMTPS id 36B874196F for ; Thu, 7 Apr 2022 00:56:34 +0000 (UTC) Received: by mail-pj1-x102c.google.com with SMTP id j20-20020a17090ae61400b001ca9553d073so4596813pjy.5 for ; Wed, 06 Apr 2022 17:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WFmmZT7jqGqP8Tfb3eBTSZfetRcZro3zlhV/SyQVVYM=; b=bPYHtVCGKsHdK4BMuTyf7QZsywuD0NSXm+/Sm5otl8x2U4IiOzid0lBzwXpuutW7zm O8lmp712zD5h8323jiiuqLCChAT8Q5pX13211bKKSUBlnmZDe9pFqbgMV5Z6I55RUKRk m4jlBFY5yjFEf2yHyyOvnesEMP5hUAYakVnMjlK5IUTrQQFfABRsEyEoGBcmh/7Du7Td WJhSdAUdwy9y8EP48yvxZ55oHG+O8XNASU823Lr+tNRWw4S/Wny3wuW+sAKWhUhWB2zS /z1PNIhuMg2R7qrH6wYPRWHCBXjDAWO5rAtgJuRA+C+1gcA1/46IrhrlIOlJvXqOk67w bsHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=WFmmZT7jqGqP8Tfb3eBTSZfetRcZro3zlhV/SyQVVYM=; b=gfpLLh56/KRUshL4KbHWDHtnHWkUUOaODMUiTsuYo/XwAxm5cu0lY1qy6V5Qn5XBaJ UeZSe2LN5HBTG3CwXJSOsII80IggFEsiGGmKZ+MkM+JJrhhPvPadlNdHqb6+LhccnE2m l0dB4N7sNEUkwaOB6KEkBqey+VWigs+q/0iQtRuaPWzF5pGLT5cOg0A+hzJAx6IJEGBO mW1lJt6hHQseujr+LXbYe0eat0oBiLAp++aUfb+bPICHOlDW9JmR24I6jKjeODtTKQNV ZZ0vlB21vKglY9ebnyNeGjaOCORc8gJncQuKSGucQRbeDjQoNC3ivXvIMtLQHrtrHim+ 2k5w== X-Gm-Message-State: AOAM530N6GlhGT2I0/LZ8ki40aW9fFZd+M/lbMdnIYUdy2wTv2B8IAez CK/hMcUK1UhM3vUGi5H/KCM4boz1yok= X-Google-Smtp-Source: ABdhPJwCFnGC45ih/UFzU2fn2AySqilLp4vwP+BfwoSNShHjbvN6TFSprgCAhv2q/Bit0R2vrlYlLQ== X-Received: by 2002:a17:903:2488:b0:156:1e8d:a82 with SMTP id p8-20020a170903248800b001561e8d0a82mr11250090plw.51.1649292993195; Wed, 06 Apr 2022 17:56:33 -0700 (PDT) Received: from voyager.ibm.com (cpe-172-197-129-163.sa.foxtel.net.au. [172.197.129.163]) by smtp.gmail.com with ESMTPSA id x12-20020aa7956c000000b004fdf7a4d49dsm13067804pfq.158.2022.04.06.17.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 17:56:32 -0700 (PDT) From: Joel Stanley To: buildroot@buildroot.org, fontaine.fabrice@gmail.com Date: Thu, 7 Apr 2022 10:26:08 +0930 Message-Id: <20220407005608.203359-4-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220407005608.203359-1-joel@jms.id.au> References: <20220407005608.203359-1-joel@jms.id.au> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 3/3] package/flac: Configure powerpc vector extensions 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: Joseph Kogut , Bernd Kuhls , Giulio Benetti , Cyril Bur , Michael Ellerman Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Remove the hard coded disabling of altivec and vsx, and instead use the BR2_POWERPC_CPU_HAS_VSX and BR2_POWERPC_CPU_HAS_ALTIVEC variables to control the flags. Signed-off-by: Joel Stanley --- package/flac/flac.mk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/package/flac/flac.mk b/package/flac/flac.mk index 3a18d81591e6..d1cc42f352f2 100644 --- a/package/flac/flac.mk +++ b/package/flac/flac.mk @@ -19,9 +19,15 @@ FLAC_AUTORECONF = YES FLAC_CONF_OPTS = \ $(if $(BR2_INSTALL_LIBSTDCPP),--enable-cpplibs,--disable-cpplibs) \ --disable-xmms-plugin \ - --disable-altivec \ - --disable-stack-smash-protection \ - --disable-vsx + --disable-stack-smash-protection + +ifeq ($(BR2_POWERPC_CPU_HAS_VSX),) +FLAC_CONF_OPTS += --disable-vsx +endif + +ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),) +FLAC_CONF_OPTS += --disable-altivec +endif ifeq ($(BR2_PACKAGE_LIBOGG),y) FLAC_CONF_OPTS += --with-ogg=$(STAGING_DIR)/usr