From patchwork Fri Feb 7 18:08:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 1235100 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.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mind.be Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mind.be header.i=@mind.be header.a=rsa-sha256 header.s=google header.b=JYkHzF9P; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48DjyL0rnFz9sPJ for ; Sat, 8 Feb 2020 05:10:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 54F2386928; Fri, 7 Feb 2020 18:10:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u1qLK8gDPzhq; Fri, 7 Feb 2020 18:10:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A9F30868BC; Fri, 7 Feb 2020 18:10:12 +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 BBC951BF9BD for ; Fri, 7 Feb 2020 18:09:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B880B81FD3 for ; Fri, 7 Feb 2020 18:09:19 +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 Q26VO9RihHOf for ; Fri, 7 Feb 2020 18:09:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 01BAD81FAA for ; Fri, 7 Feb 2020 18:09:18 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id s10so3473569wmh.3 for ; Fri, 07 Feb 2020 10:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zpf4fguVD4n1KGK2whhV7fA6/Py0w98q3M+eVtrwPzI=; b=JYkHzF9PjvLNSzW9sbyHggG8yJrGXGZnQNEAlE7b2NOKeenzdsBTTneJncHT9iD3lg 62YP45Z9rNNDvwXwqkGxf5vFyYndabFNoerljUgY+LH1oEzXKk1wGB3MxJY8RZKbdcAm 95VNp+AxpTo6yMP2z82osChSvgZwEunkPPodpkQatpMtDAh15G9PyH0PBBdtgDzdV3uD OvHXHg3lmMPLsWWIIGu2yNmMn7xDKtqSI3HWiQf1RpMO2IQddX85LOve++20tgMM68h6 zLraBL+vpEPpZ7mvYyZMHMYB1or2sIuqhB7/bBIVyC+S7Cl2YgTe0c2rezs95rD9d0EH Q5zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zpf4fguVD4n1KGK2whhV7fA6/Py0w98q3M+eVtrwPzI=; b=YAVE0E/O3ZhUmtDpriITW1wCwsUAeLuKTd9EqfTc7xDU3OzXoJdFzPe735oRNPr+el tfG+xnqFNqksM32/JZDoZb7oSccJwXAOalh/oAw7WxW3S5UE+TG9cB+1cMrWLfFncZon KYk3UC+oTywcojAwjqyWmrKc/46Na8UI8DrRrMrGHXCLmpk/7hBTDybOGGcyqr1d9c5M fJ7JJIOaQUNi87EzrczOGc00h8sxTMyvjoCXPwE1lmmghNOeCofTw+fDpq6ksIdMwgYV KY7XIycDoW/uh2kY7hFMT6tngvcX9dvMHQNbSdLGfb6UuveH5OAxTdplYX/9LPVnpTIi sQiQ== X-Gm-Message-State: APjAAAWOtWNHloUF71Zpo1oxmU5XDvEL8VvFoM1anzn1TR2Msx68kbvl D9NNxXG3IpClVgoWZnbj4BbdkIRDReM= X-Google-Smtp-Source: APXvYqzW/zoBbWGzjzp08kXAypJGqikm8BhX5wCyEacX06AIIHbXZOFEYPLyL1f/ZLtzJCviiMOreg== X-Received: by 2002:a05:600c:2406:: with SMTP id 6mr5598017wmp.30.1581098956324; Fri, 07 Feb 2020 10:09:16 -0800 (PST) Received: from localhost.localdomain (ip-188-118-3-185.reverse.destiny.be. [188.118.3.185]) by smtp.gmail.com with ESMTPSA id g128sm4080277wme.47.2020.02.07.10.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 10:09:15 -0800 (PST) From: "Arnout Vandecappelle (Essensium/Mind)" To: buildroot@buildroot.org Date: Fri, 7 Feb 2020 19:08:27 +0100 Message-Id: <20200207180829.165689-9-arnout@mind.be> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200207180829.165689-1-arnout@mind.be> References: <20200207180829.165689-1-arnout@mind.be> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 08/10] docs/manual: cargo packages depend on host-rustc 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: Eric Le Bihan , Patrick Havelange Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Eric Le Bihan As Cargo is either installed by host-rust or host-rust-bin, the Cargo-based packages should depend on host-rustc. Signed-off-by: Eric Le Bihan Signed-off-by: Patrick Havelange [Arnout: also select HOST_RUSTC in Config.in] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Reviewed-by: David Pierret Tested-by: David Pierret --- docs/manual/adding-packages-cargo.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/manual/adding-packages-cargo.txt b/docs/manual/adding-packages-cargo.txt index b6029e1eed..bb078b6981 100644 --- a/docs/manual/adding-packages-cargo.txt +++ b/docs/manual/adding-packages-cargo.txt @@ -18,7 +18,7 @@ The +Config.in+ file of Cargo-based package 'foo' should contain: 01: config BR2_PACKAGE_FOO 02: bool "foo" 03: depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS -04: select BR2_PACKAGE_HOST_CARGO +04: select BR2_PACKAGE_HOST_RUSTC 05: help 06: This is a comment that explains what foo is. 07: @@ -44,7 +44,7 @@ package. Let's start with an example: 10: FOO_LICENSE = GPL-3.0+ 11: FOO_LICENSE_FILES = COPYING 12: -13: FOO_DEPENDENCIES = host-cargo +13: FOO_DEPENDENCIES = host-rustc 14: 15: FOO_CARGO_ENV = CARGO_HOME=$(HOST_DIR)/share/cargo 16: FOO_CARGO_MODE = $(if $(BR2_ENABLE_DEBUG),debug,release)