From patchwork Fri Oct 30 15:31:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwenhael Goavec-Merou X-Patchwork-Id: 1391138 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=trabucayre.com Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CN6540zxfz9sRk for ; Sat, 31 Oct 2020 02:42:28 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F01C186655; Fri, 30 Oct 2020 15:42:25 +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 IFUQC6Dho0BY; Fri, 30 Oct 2020 15:42:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C9BF886016; Fri, 30 Oct 2020 15:42:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 409E71BF2B3 for ; Fri, 30 Oct 2020 15:42:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 317F487307 for ; Fri, 30 Oct 2020 15:42:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sFAJSjz0YIbh for ; Fri, 30 Oct 2020 15:42:23 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by hemlock.osuosl.org (Postfix) with ESMTPS id CA9D087301 for ; Fri, 30 Oct 2020 15:42:22 +0000 (UTC) Received: from localhost.localdomain (unknown [78.252.129.8]) by smtp3-g21.free.fr (Postfix) with ESMTP id 999EC145438; Fri, 30 Oct 2020 16:32:05 +0100 (CET) From: Gwenhael Goavec-Merou To: buildroot@buildroot.org Date: Fri, 30 Oct 2020 16:31:45 +0100 Message-Id: <20201030153145.1198183-1-gwenj@trabucayre.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/uhd: fix build with riscV 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: Gwenhael Goavec-Merou Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Gwenhael Goavec-Merou UHD with riscV CPU fails to build with error like: /xxx/output-1/build/uhd-3.15.0.0/host/lib/deps/rpclib/include/rpc/msgpack/pack.hpp:190:2: error: #error msgpack-c supports only big endian and little endian 190 | #error msgpack-c supports only big endian and little endian | ^~~~~ msgpack, required by MPMD, support many architecture but not riscV, and, consequently is unable to determine the endianess. This patch add a depends on !(BR2_RISCV_64 || BR2_RISCV_32) to disable MPMD for riscV target. Since E300 and E320 needs MPMD, the select is replaced by depends on Fixes: - http://autobuild.buildroot.net/results/b501a8bf90f2eb10c3f98f26a52539392d320088/ - http://autobuild.buildroot.net/results/f7ae898c6ecdfa568eb97f7cae6447e97ce306a0/ Signed-off-by: Gwenhael Goavec-Merou --- package/uhd/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/uhd/Config.in b/package/uhd/Config.in index 32cb4cf89d..cf4f470629 100644 --- a/package/uhd/Config.in +++ b/package/uhd/Config.in @@ -45,13 +45,13 @@ config BR2_PACKAGE_UHD_B200 config BR2_PACKAGE_UHD_E300 bool "E300 support" - select BR2_PACKAGE_UHD_MPMD + depends on BR2_PACKAGE_UHD_MPMD help enable E300 support config BR2_PACKAGE_UHD_E320 bool "E320 support" - select BR2_PACKAGE_UHD_MPMD + depends on BR2_PACKAGE_UHD_MPMD help enable E320 support @@ -62,6 +62,7 @@ config BR2_PACKAGE_UHD_EXAMPLES config BR2_PACKAGE_UHD_MPMD bool "MPMD support" + depends on !(BR2_RISCV_64 || BR2_RISCV_32) help enable MPMD support