From patchwork Fri Dec 17 15:36:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Madison X-Patchwork-Id: 1662 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 42B4CC433EF for ; Fri, 17 Dec 2021 15:37:03 +0000 (UTC) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mx.groups.io with SMTP id smtpd.web10.7493.1639755422457331830 for ; Fri, 17 Dec 2021 07:37:02 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@madison.systems header.s=google header.b=PV8Rwhvz; spf=pass (domain: madison.systems, ip: 209.85.214.181, mailfrom: matt@madison.systems) Received: by mail-pl1-f181.google.com with SMTP id p18so2145619pld.13 for ; Fri, 17 Dec 2021 07:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=madison.systems; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=29WWtFtdk4ZzY7hzLGwGRfyWsr+2FrV5eNXimnj7DGk=; b=PV8RwhvzACRlOveDB6priMJojcjNXEhfUYv8mxR7V3Co3QEUCcGV55Zg/vNah4GrU3 X8THFmR3RBPcjsG1K+HgQYATtrLZ/SXJCy+s527kMZSuFfNkKremC1zrWaqC966+nSAb Sqh4LrY9UMuF9xjqGRhIAuOwJWUnDdYgSCxo2R/eetMvUno/Y2Fs29hqZZSHMqM9uBZi ew9Zt+na11VcqJI6XIbQX5nWfQ7jiKC75yeTVwwj8/uSMWEyUXoa8jdVN7pygki/6sS6 y4WTb3SVyWruMGRFfghMEsmRvUIa8MgY711s46I9aFWvWXzZRfD3cMQOEP4b4QjvsGsG me+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=29WWtFtdk4ZzY7hzLGwGRfyWsr+2FrV5eNXimnj7DGk=; b=ji6SPI0s3iLBgWI+KrIjydLhDiaTwhZWZjL7rU++Foc44bX8ZKl7BT7udUfroHKvu3 20e3ratL7pZpvm67q+5m6eok8A2Mg11yMrz8SIxQtFu6cI7D57x0gxW1fU4++uIxiYN8 PfYj26kP/vZuvkyxjZRBHwvPWSx4UTVfTg4dH2t56XHfhva8H95wp5ArIjT86ztwDwPZ QL+P6hdm3K0ulwPh77hFfACe621K8LR0XM01Y/I6KG+/0j4vOvJUYPG2YTLxXqSUxRQk LaQo9RP6RRa9xJNuFBmdyBmiu5/qZMRV2c95p1mfiaytBvii4Xk0rNZWynP6gyENAxAK /bTg== X-Gm-Message-State: AOAM532zFordHbfeZjgJ5/J3V5F3euJVn8P/hV1ceWggPki4ZqJBjUY8 G1Ktv6R3anjE8Lc0mtIHC5sknGwBISSaVw== X-Google-Smtp-Source: ABdhPJy+/Z8vKg4Er+LregJBcbabFDXPa4GW/7CgfugXdQkK3HS0Izq4065hNPUVblhpHQvTdvOaCQ== X-Received: by 2002:a17:902:ea03:b0:148:ea19:557 with SMTP id s3-20020a170902ea0300b00148ea190557mr659573plg.129.1639755421464; Fri, 17 Dec 2021 07:37:01 -0800 (PST) Received: from visar.local (76-209-242-28.lightspeed.mtryca.sbcglobal.net. [76.209.242.28]) by smtp.gmail.com with ESMTPSA id ip5sm8271631pjb.1.2021.12.17.07.37.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 07:37:00 -0800 (PST) From: Matt Madison To: openembedded-core@lists.openembedded.org Cc: Joshua Watt , Matt Madison Subject: [OE-core][PATCH 1/4] lib/crate.py: install crate fetcher on import Date: Fri, 17 Dec 2021 07:36:27 -0800 Message-Id: <20211217153630.1746217-2-matt@madison.systems> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211217153630.1746217-1-matt@madison.systems> References: <20211217153630.1746217-1-matt@madison.systems> 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 ; Fri, 17 Dec 2021 15:37:03 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/159829 to enable the move to using OE_IMPORTS for adding this fetcher. Signed-off-by: Matt Madison --- meta/lib/crate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/lib/crate.py b/meta/lib/crate.py index d10f441875..f9db7c28cd 100644 --- a/meta/lib/crate.py +++ b/meta/lib/crate.py @@ -147,3 +147,5 @@ class Crate(Wget): mdpath = os.path.join(bbpath, cratepath, mdfile) with open(mdpath, "w") as f: json.dump(metadata, f) + +bb.fetch2.methods.append(Crate()) From patchwork Fri Dec 17 15:36:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Madison X-Patchwork-Id: 1663 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 3C6E1C4332F for ; Fri, 17 Dec 2021 15:37:04 +0000 (UTC) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mx.groups.io with SMTP id smtpd.web12.7582.1639755423693874465 for ; Fri, 17 Dec 2021 07:37:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@madison.systems header.s=google header.b=UOShx2Ow; spf=pass (domain: madison.systems, ip: 209.85.216.53, mailfrom: matt@madison.systems) Received: by mail-pj1-f53.google.com with SMTP id k6-20020a17090a7f0600b001ad9d73b20bso3139762pjl.3 for ; Fri, 17 Dec 2021 07:37:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=madison.systems; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k9IJU/rrqQCkHBQk7AxhYEI0SP7Kptz7NbDT5rrCMGg=; b=UOShx2Owyz8ywqDi867+KS2juXOTV613YSv8kv+ngIcGwSs8feNkykTEo5yRBC/HQM flI0wLGnpd7RWuIk7okUIjd1g/JyWQQj2uLyk7251dH7pLT8M0mOCWzQSk4DdQDLMg7J Ba+5oi4V+ACYc0bKjhSizcPajmjQpEo9DVVWeVJRIFq5DSHL51TMlD5zJwXe66eRKDlU IvbMfhyqxQIVrOiJdo2VICJtG+d+3st/J1urQgCwnxwImV7CQkJ3gvgVaSAWcc8aonZM w8MC40ywA2TVe0ljDcjQZEgRuwIHYspa/Wv7977ytA9MIbvH9otveERLbN2AGHVOxftj xlBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=k9IJU/rrqQCkHBQk7AxhYEI0SP7Kptz7NbDT5rrCMGg=; b=keGo8JMexwx9EOm5nKNEe8MhHz5E7xUkOLDbVWAuvroIM0sim/2vb2TVqP9SuM/n/p HUkZXPxRoMzJanP0h6r+kYaG/mkSwXyq+n3s6EaZO3oIY1kJ/pZoxhYWx9HE1FIt6Psx hd2++J8MNTo/Qfxm5AKt5tai2xEDXAjPgch2lKtvPdY6loIIQnkQFkPbIUlgGOxz4Hcv H+SkDOLkn4zAMJ8hwLyu0pfC8dCWpAExwMe3Ma8NHK3qCSBKMooCD6czQI7qmuXaml/M cSyFb0nFoQouAEfg4Fof8z+5k/RsNKm/ugNlvwcswXcFC3KdrqGuCvcFCmtRxZOF84y3 z2xg== X-Gm-Message-State: AOAM530Gs0Ed5qUrZdHJ12POF2VsU59wvHyGl1xAIwpdFoBYL9w3OSwC ojqfTG7//11Pdy/rs8Fn/lIwiDLqVAzNmg== X-Google-Smtp-Source: ABdhPJxTF8RcwWt0suvBm4IH/7MqddR6yMIlv6xDI1uBFTcZodY1/XQ41MxoAtxOgHFqj7H1lAUQag== X-Received: by 2002:a17:902:6a8a:b0:143:905f:aec7 with SMTP id n10-20020a1709026a8a00b00143905faec7mr3681037plk.8.1639755422847; Fri, 17 Dec 2021 07:37:02 -0800 (PST) Received: from visar.local (76-209-242-28.lightspeed.mtryca.sbcglobal.net. [76.209.242.28]) by smtp.gmail.com with ESMTPSA id ip5sm8271631pjb.1.2021.12.17.07.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 07:37:02 -0800 (PST) From: Matt Madison To: openembedded-core@lists.openembedded.org Cc: Joshua Watt , Matt Madison Subject: [OE-core][PATCH 2/4] base.bbclass: add crate to OE_IMPORTS Date: Fri, 17 Dec 2021 07:36:28 -0800 Message-Id: <20211217153630.1746217-3-matt@madison.systems> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211217153630.1746217-1-matt@madison.systems> References: <20211217153630.1746217-1-matt@madison.systems> 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 ; Fri, 17 Dec 2021 15:37:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/159830 to install the crate:// fetch handler. Signed-off-by: Matt Madison --- meta/classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index b709777f24..ee9950f207 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -12,7 +12,7 @@ inherit logging OE_EXTRA_IMPORTS ?= "" -OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath oe.license oe.qa oe.reproducible ${OE_EXTRA_IMPORTS}" +OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath oe.license oe.qa oe.reproducible crate ${OE_EXTRA_IMPORTS}" OE_IMPORTS[type] = "list" PACKAGECONFIG_CONFARGS ??= "" From patchwork Fri Dec 17 15:36:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Madison X-Patchwork-Id: 1664 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 3FCC5C433F5 for ; Fri, 17 Dec 2021 15:37:06 +0000 (UTC) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mx.groups.io with SMTP id smtpd.web12.7584.1639755425015188118 for ; Fri, 17 Dec 2021 07:37:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@madison.systems header.s=google header.b=K/WseoGq; spf=pass (domain: madison.systems, ip: 209.85.216.48, mailfrom: matt@madison.systems) Received: by mail-pj1-f48.google.com with SMTP id v13-20020a17090a088d00b001b0e3a74cf7so4474445pjc.1 for ; Fri, 17 Dec 2021 07:37:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=madison.systems; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DdOaHP0QVS7ch+A9eKvnKV7Ab43oksQzuznCpzzCICI=; b=K/WseoGqVqq46mSZGeXICcK7sv8k00oE1fasAsCASNJzrwrlgKhacYK/UycFIhywBc JkLGVRPT9CQdcXNmpigitftNxU9WZeGQ7Esr9cFKN1jtWFud989aQoBPBFFftnJv5oFn Cu+yBkB/2j/QcwsXMsoi8f3LMNPQiWPWgmeRiUr/NY9uzWO0AzER12kcD7IX57KgKeLY KJD8LGYG8sl63u/sJtgbO8xHnmXkfOe05fkDAtajPTxRvY8MIvo2pEoaI1rMAh+3yk/o 6oTycDdjuqbBmGlZKcNRDeBVxwLyGa85z1dcsm5NSFalqE4fPJMSm3OKf/wHz542ypZu D6VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DdOaHP0QVS7ch+A9eKvnKV7Ab43oksQzuznCpzzCICI=; b=AXtvt2gYk5ZGfneMDJ6/f8Ir405CqBPG5JspkLTWkz6J03Ej1DZhPUvMsK9O8tg8AU /Eo063bJcqe3R8/CbRh/KnTUO1MJiI0iQCzhJ4E22GKuvsauddxu3BfwtvorG6JFahik RYk3ooQDup9WHQccnJy54B61HLuBYVeb0i1jLSzeTDL56NJ2bo0uCMEaHuArCdQEncNi 3+dKsFJtLnUXB3ITlc7Npvu/RF8SKxZ1iQYJzON1x7yVgMtggI2Fx2b+CqiHvLxCAUqG kJWgpoImDdvMpcNUxguy0T3YVkiepQ6b1Pmyt2lGQgT1nntf9DABh0CFXcwAvGKvlN04 oHmQ== X-Gm-Message-State: AOAM531MYWFW8e9fLJ55YOVPqicIO/7Q8z/8SZf8UwjeIPlFu0wn+N3/ uIvEbY6f4nFZjTCHL77Uh3tRCZ1ab25aDQ== X-Google-Smtp-Source: ABdhPJzYs4s1FTljvpjZtQWD5jTJWCh7MtZuIbsgnycY6EKuIkNaFglDld6F0OnUmR6wY+4D2RewLg== X-Received: by 2002:a17:902:7c02:b0:148:a2f7:9d6d with SMTP id x2-20020a1709027c0200b00148a2f79d6dmr3979490pll.140.1639755424054; Fri, 17 Dec 2021 07:37:04 -0800 (PST) Received: from visar.local (76-209-242-28.lightspeed.mtryca.sbcglobal.net. [76.209.242.28]) by smtp.gmail.com with ESMTPSA id ip5sm8271631pjb.1.2021.12.17.07.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 07:37:03 -0800 (PST) From: Matt Madison To: openembedded-core@lists.openembedded.org Cc: Joshua Watt , Matt Madison Subject: [OE-core][PATCH 3/4] cargo_common.bbclass: remove inherit of crate-fetch Date: Fri, 17 Dec 2021 07:36:29 -0800 Message-Id: <20211217153630.1746217-4-matt@madison.systems> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211217153630.1746217-1-matt@madison.systems> References: <20211217153630.1746217-1-matt@madison.systems> 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 ; Fri, 17 Dec 2021 15:37:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/159831 No longer needed now that the crate fetcher is installed via OE_IMPORTS. Signed-off-by: Matt Madison --- meta/classes/cargo_common.bbclass | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta/classes/cargo_common.bbclass b/meta/classes/cargo_common.bbclass index 23d82aa6ab..c403591434 100644 --- a/meta/classes/cargo_common.bbclass +++ b/meta/classes/cargo_common.bbclass @@ -8,8 +8,6 @@ ## is used by cargo.bbclass and Rust ## -# add crate fetch support -inherit crate-fetch inherit rust-common # Where we download our registry and dependencies to From patchwork Fri Dec 17 15:36:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Madison X-Patchwork-Id: 1665 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 3D136C433FE for ; Fri, 17 Dec 2021 15:37:07 +0000 (UTC) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mx.groups.io with SMTP id smtpd.web12.7586.1639755426280581481 for ; Fri, 17 Dec 2021 07:37:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@madison.systems header.s=google header.b=OQmaRI0a; spf=pass (domain: madison.systems, ip: 209.85.210.179, mailfrom: matt@madison.systems) Received: by mail-pf1-f179.google.com with SMTP id r26so1888221pfg.12 for ; Fri, 17 Dec 2021 07:37:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=madison.systems; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LFHnJy1Uz27To9MJDCAiQkbDNAClr1MrVWwSLgTyH8w=; b=OQmaRI0aRbQiP3GkJtu1mE7J42Ly7j/NK1y21xyDrdzzlOGP+3fbF2lvgmAOeU8p7q Z8xGoApjRmF98m6wAtAynevdfdhf4m//7cpMW6qtVbQ5eSFUO+NAU5q2wsGFahK05+ES fEXQ6RDTSGksW5EtABXexnx6QqN3dFj0Gl0hrmvvdgQQEJr6YG6HzhOWbv7C+jLd/HSZ divXapNCbjR/h9VyJAw+sCnlXyVWm+GGDKl5YbYPcBLudOuJe5xx9GZxqnc7Hc6cwgnK zwquHeMF/JyKITrLjmacM6uP/dny1aPeAryQjQWZH/e9n8XMlgl+r8MyV/DLvKEVDZkH 0nVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LFHnJy1Uz27To9MJDCAiQkbDNAClr1MrVWwSLgTyH8w=; b=IDoFUPlpLMx8IOC2uQ3BXtxecibEg85kNIUGonetW2wbHtLe8JuGbQo7Q/ZhZZxEDW ZL/ubp66WOgufxmZVGNQzohUCyR3O1fQZTD3mp8A/oN+S1xz1FcyeqxH46rE+Zf9cJdM Ey/CxtPsZD+krqp7u8OIZp2IxXHU1+lOQc5G0IKQCVF9zQquylBFSrSHoRFGgOTQ7A4p RkZSKfGXyA2RRPTzczPzGR0S69lQdCYdTo7nZgJQkmbrL3hDIibW0l8P9Po7Xjto897c LKDp5N70F9XzBwhX932dKXfRk9lNX2gUZA3/SPe9I9s03I4aZTrQasVvcKx9/+Ukl6hQ lvwg== X-Gm-Message-State: AOAM531KjDoErvp/MMJAvQfVFxmE7JThv1PouY9ndFUrhci+4PMeG0Zy fgOwrFlOgdapyT4rXMV+RCdrm7G7xnG6/g== X-Google-Smtp-Source: ABdhPJzlx+jrNSKcICVwnV+rASeozNnh4+ougmP7pN46JvaAq3xJVBhtCL14Jun+LUEntKfZLhjR3A== X-Received: by 2002:aa7:9af4:0:b0:4a4:cd7f:2732 with SMTP id y20-20020aa79af4000000b004a4cd7f2732mr3589586pfp.60.1639755425434; Fri, 17 Dec 2021 07:37:05 -0800 (PST) Received: from visar.local (76-209-242-28.lightspeed.mtryca.sbcglobal.net. [76.209.242.28]) by smtp.gmail.com with ESMTPSA id ip5sm8271631pjb.1.2021.12.17.07.37.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 07:37:04 -0800 (PST) From: Matt Madison To: openembedded-core@lists.openembedded.org Cc: Joshua Watt , Matt Madison Subject: [OE-core][PATCH 4/4] classes: remove crate-fetch.bbclass Date: Fri, 17 Dec 2021 07:36:30 -0800 Message-Id: <20211217153630.1746217-5-matt@madison.systems> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211217153630.1746217-1-matt@madison.systems> References: <20211217153630.1746217-1-matt@madison.systems> 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 ; Fri, 17 Dec 2021 15:37:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/159832 No longer required now that the crate fetcher gets installed via OE_IMPORTS. Signed-off-by: Matt Madison --- meta/classes/crate-fetch.bbclass | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 meta/classes/crate-fetch.bbclass diff --git a/meta/classes/crate-fetch.bbclass b/meta/classes/crate-fetch.bbclass deleted file mode 100644 index a7fa22b2a0..0000000000 --- a/meta/classes/crate-fetch.bbclass +++ /dev/null @@ -1,28 +0,0 @@ -# -# crate-fetch class -# -# Registers 'crate' method for Bitbake fetch2. -# -# Adds support for following format in recipe SRC_URI: -# crate:/// -# - -def import_crate(d): - import crate - if not getattr(crate, 'imported', False): - bb.fetch2.methods.append(crate.Crate()) - crate.imported = True - -python crate_import_handler() { - import_crate(d) -} - -addhandler crate_import_handler -crate_import_handler[eventmask] = "bb.event.RecipePreFinalise" - -def crate_get_srcrev(d): - import_crate(d) - return bb.fetch2.get_srcrev(d) - -# Override SRCPV to make sure it imports the fetcher first -SRCPV = "${@crate_get_srcrev(d)}"