From patchwork Fri Sep 29 09:16:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 54393 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4C93327BBEA; Fri, 29 Sep 2023 10:18:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E8E9D27BBE2 for ; Fri, 29 Sep 2023 10:18:40 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qm9dK-0005Wu-GX; Fri, 29 Sep 2023 05:18:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qm9d7-0005SV-3I for guix-patches@gnu.org; Fri, 29 Sep 2023 05:17:51 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qm9d6-0003u1-Rn for guix-patches@gnu.org; Fri, 29 Sep 2023 05:17:48 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qm9dK-0004l4-GX; Fri, 29 Sep 2023 05:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH 04/23] guix: utils: Add target-avr?. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 29 Sep 2023 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com X-Debbugs-Original-Xcc: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.169597903317994 (code B ref 66263); Fri, 29 Sep 2023 09:18:02 +0000 Received: (at 66263) by debbugs.gnu.org; 29 Sep 2023 09:17:13 +0000 Received: from localhost ([127.0.0.1]:55175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cW-0004fh-3Y for submit@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:13 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:56819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cM-0004du-HQ for 66263@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:09 -0400 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-5041bb9ce51so21854970e87.1 for <66263@debbugs.gnu.org>; Fri, 29 Sep 2023 02:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1695978998; x=1696583798; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CsgqduFhNDliwjaZuh0YLSyXui8IMz/a3w4p93ybbeY=; b=IO27oih6orNRU5g1a/HDqOZ3Ls1vsQ1xmhsURjMGNhz93OfmQIH8D0qmvDCwJQoIxP r0xwsMN5aBJXMscRHr5RybSdQJXmFDyWyWEt8yR8uGgVA21mdYeSrQBjSp8k6yWrT9x1 Pkg8d9qefx7oSY/zegx5dLLgjhKd6v2TCPEMQns+KxO+M3UMlXqNKhI/tMXAaVGedUdQ z+9N67psMXe0Sdpa2XyiboqE0uqijQfjm6WGn5/hpHO0KlBP7LXnhZpm0OrNEUJfmJAY 3D9mbRi5Nm++Y1jljxB3tFB40TAZlMQmpuUX6gnOBfLDBFE8aQrfyo4CsGdnyRFhATUM /aNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695978998; x=1696583798; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CsgqduFhNDliwjaZuh0YLSyXui8IMz/a3w4p93ybbeY=; b=Gw0dzVDttnB6aGqdfhwJ6v6rNFuUIymcRlVOZphOZJ4cmoTGBTNA8gg/dVpZXSAnbk eURMriRvf252M0BUPCGMvmn5VjGRS1TH0R3Pg7hwkzUmAOl+f3koExQfQ7NJDF/1mDrO JjaLRYhk8s2n2o/XAEhfAangoQkj7ZwR1Us324KGxgjBg1yNMrOWadXZ0AR7x/C3+BTB WNtk/zVzSKCJeUJRF1RWEkUHkG4IspXSv5gaA1GhZ4Xp00RswwFNmDdydRUnepNMSXDx WJSBre+H4QtXTTqrC93fVPaAVlY0BY9z+fk8pHrMMLikcPcCW0PWNTwPSVBJrLwZRaSx 4YMw== X-Gm-Message-State: AOJu0YzKCWb4rNR7w/uGWYOlHdfVIooPwar9XrKIg2INYRqi8kTZNQY+ BolKN/3wYMAxHyvKpSA6sKWxFKaqYwb2WYg6qycB0w== X-Google-Smtp-Source: AGHT+IG0oi9j2kRMyiHrnFIYemGisqatWwDBRzK+vSsewj5ocw+uqC45c0SpZY4vhZfU1UhAk7MjBQ== X-Received: by 2002:a05:6512:e9b:b0:4ff:9efd:8a9e with SMTP id bi27-20020a0565120e9b00b004ff9efd8a9emr3730116lfb.7.1695978998429; Fri, 29 Sep 2023 02:16:38 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id k15-20020a7bc40f000000b004013797efb6sm1020933wmi.9.2023.09.29.02.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 02:16:38 -0700 (PDT) Date: Fri, 29 Sep 2023 11:16:08 +0200 Message-Id: <20230929091627.7820-4-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230929091627.7820-1-jean@foundationdevices.com> References: <20230929091627.7820-1-jean@foundationdevices.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * guix/utils.scm (target-avr?): New procedure. --- guix/utils.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guix/utils.scm b/guix/utils.scm index e9af33bdeb..1724b53149 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -98,6 +98,7 @@ (define-module (guix utils) target-arm32? target-aarch64? target-arm? + target-avr? target-ppc32? target-ppc64le? target-powerpc? @@ -722,6 +723,9 @@ (define* (target-arm? #:optional (target (or (%current-target-system) (%current-system)))) (or (target-arm32? target) (target-aarch64? target))) +(define* (target-avr? #:optional (target (%current-target-system))) + (string-prefix? "avr" target)) + (define* (target-ppc32? #:optional (target (or (%current-target-system) (%current-system)))) (string-prefix? "powerpc-" target))