From patchwork Thu Jan 20 10:54:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Opdenacker X-Patchwork-Id: 2704 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AABAC4332F for ; Thu, 20 Jan 2022 10:54:49 +0000 (UTC) Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by mx.groups.io with SMTP id smtpd.web12.10061.1642676087903629607 for ; Thu, 20 Jan 2022 02:54:48 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: bootlin.com, ip: 217.70.178.230, mailfrom: michael.opdenacker@bootlin.com) Received: (Authenticated sender: michael.opdenacker@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id DE864240006; Thu, 20 Jan 2022 10:54:45 +0000 (UTC) From: Michael Opdenacker To: bitbake-devel@lists.openembedded.org Cc: docs@lists.yoctoproject.org, Michael Opdenacker Subject: [PATCH] bitbake-user-manual: add "crate" fetcher Date: Thu, 20 Jan 2022 11:54:38 +0100 Message-Id: <20220120105438.1212027-1-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 20 Jan 2022 10:54:49 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/2433 Signed-off-by: Michael Opdenacker --- ...itbake-user-manual-add-crate-fetcher.patch | 40 +++++++++++++++++++ .../bitbake-user-manual-fetching.rst | 16 ++++++++ 2 files changed, 56 insertions(+) create mode 100644 doc/0001-bitbake-user-manual-add-crate-fetcher.patch diff --git a/doc/0001-bitbake-user-manual-add-crate-fetcher.patch b/doc/0001-bitbake-user-manual-add-crate-fetcher.patch new file mode 100644 index 00000000..db26cd80 --- /dev/null +++ b/doc/0001-bitbake-user-manual-add-crate-fetcher.patch @@ -0,0 +1,40 @@ +From 9959a987ae3def8ea4fed41df4c890fb8856bae5 Mon Sep 17 00:00:00 2001 +From: Michael Opdenacker +Date: Thu, 20 Jan 2022 11:52:53 +0100 +Subject: [PATCH] bitbake-user-manual: add "crate" fetcher + +Signed-off-by: Michael Opdenacker +--- + .../bitbake-user-manual-fetching.rst | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) + +diff --git a/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst b/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +index 77384cfd..4a18c076 100644 +--- a/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst ++++ b/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +@@ -688,6 +688,22 @@ Here is an example URL:: + + It can also be used when setting mirrors definitions using the :term:`PREMIRRORS` variable. + ++Crate Fetcher (``crate://``) ++---------------------------- ++ ++This submodule fetches code for ++`Rust language "crates" `__ ++corresponding to Rust libraries and programs to compile. Such crates are typically shared ++on https://crates.io/ but this fetchers supports other servers too. ++ ++The format for the :term:`SRC_URI` setting must be:: ++ ++ SRC_URI = "crate://HOST/NAME/VERSION" ++ ++Here is an example URL:: ++ ++ SRC_URI = "crate://crates.io/glob/0.2.11" ++ + Other Fetchers + -------------- + +-- +2.25.1 + diff --git a/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst b/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst index 77384cfd..2c15ad7d 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst @@ -688,6 +688,22 @@ Here is an example URL:: It can also be used when setting mirrors definitions using the :term:`PREMIRRORS` variable. +Crate Fetcher (``crate://``) +---------------------------- + +This submodule fetches code for +`Rust language "crates" `__ +corresponding to Rust libraries and programs to compile. Such crates are typically shared +on https://crates.io/ but this fetcher supports other servers too. + +The format for the :term:`SRC_URI` setting must be:: + + SRC_URI = "crate://HOST/NAME/VERSION" + +Here is an example URL:: + + SRC_URI = "crate://crates.io/glob/0.2.11" + Other Fetchers --------------