From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MMUPHrc/12Z7VwAAqHPOHw:P1 (envelope-from ) for ; Tue, 03 Sep 2024 16:56:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MMUPHrc/12Z7VwAAqHPOHw (envelope-from ) for ; Tue, 03 Sep 2024 18:56:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="QSdoJhl/"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725382583; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=do+UnEz8ht693qjxF6Meb7IKkofhPku4rDKoEpTUcZc=; b=gBINO8Ak7VQY6rltxYFjbZDUxO1gW2CAmhtI9y5oyFSLyYd/ddo91envVaSQgaSpRyXscZ g+Kkm9q2ZsLC36o7K9IgHjAoNqMQhYa06SqwNY6QVp7v5M4LF6BAqLvWbxI3c+jpLX49+L GSH9Lu9ctNBOi3zECpv3cE5H4hlWtacYwpYt6yAj2ywlprComcdqymDldG13WOXOAsKEoU kUfSCi3V+CzG2vPMtFQph58ESJZmlsa4FcoDkuWRZ0FFqkZWMibG5loP3RJaqvYxfOZ8pl xLDErl8IcMFRgNNS3MJnNrRg2W4lOrP21BbQQYB7HC7wqOHoYFxzlALytfXRdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="QSdoJhl/"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725382583; a=rsa-sha256; cv=none; b=XRYTVO52KaNGQrxEtfkO6zqRi9ypEKPSbVjboWGsK9xy6sD8ISGyBleo0zD4XGpuoppu2s 8V8ND6KLx9ZcbD5/DyMhdFVLKJDeE5tLin/qWfB+EH4/6wQkgPkeDTe07ZAK36rBy9kfGc YuhcD6clWOSSEcs2F5eSi9q9xHC6sBEX1nJE5+pxJVnAxEuNpJ9FiApyIQrk9Bfl6PB7t1 RcL0KsBi4N+Zcq3ZibPicGu8Eq5ZLxTL8k9V5xEhe0bQNZtzCKPZejEhcnLxLmfvN1+07o SHOw5BeTjJnu96HUhyVkvPCUZ0ivWlo74eizdrTNoNlry9RR5syuwUBlUMR5Gw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C5FBB699B6 for ; Tue, 3 Sep 2024 18:56:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slWTr-0004nS-B3; Tue, 03 Sep 2024 12:34:11 -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 1slWTk-0004Ik-5h for guix-patches@gnu.org; Tue, 03 Sep 2024 12:34:04 -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 1slWTj-0006MG-S1; Tue, 03 Sep 2024 12:34:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=do+UnEz8ht693qjxF6Meb7IKkofhPku4rDKoEpTUcZc=; b=QSdoJhl/dcWX0TSHG2kxjRPnIKZA+Jc8yhxIJgCiRppRBucp6eJ30eap29gr+WhuwVxgdEMg5TvLXm6kZBTrkMJIZmAyWPplB4/vOAXVqjNZtTBCkVnTE3aWSqW64aftwWnCmuugT1bDzUhYuYsfbcmVYQL7WEn3pKyQ4Z8Jb7d3ObrywbppBBIjUwIA9ZSV1OcJHz8K01otPlXuXWJRHEro7eMkVpyaP5dKzAV7hZu1EqToTBjHCOKAsaW3cyIFdRYytVetPx9rGfyQj6dbN//37FbtwVKjX3BK83JZ1DYRSVyN1lXjFsllDnryUS7f80KWkg7HaQZ8X0o3SmI8fA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slWUh-0001DT-G0; Tue, 03 Sep 2024 12:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73006] [PATCH 1/2] utils: Add 'objcopy-for-target' and 'objdump-for-target'. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Tue, 03 Sep 2024 16:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73006 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73006@debbugs.gnu.org Cc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 73006-submit@debbugs.gnu.org id=B73006.17253812824604 (code B ref 73006); Tue, 03 Sep 2024 16:35:03 +0000 Received: (at 73006) by debbugs.gnu.org; 3 Sep 2024 16:34:42 +0000 Received: from localhost ([127.0.0.1]:60677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slWUL-0001CB-MX for submit@debbugs.gnu.org; Tue, 03 Sep 2024 12:34:41 -0400 Received: from smtp81.cstnet.cn ([159.226.251.81]:48752 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slWUI-0001Bu-U8 for 73006@debbugs.gnu.org; Tue, 03 Sep 2024 12:34:40 -0400 Received: from m.tailaa68d.ts.net (unknown [107.174.64.25]) by APP-03 (Coremail) with SMTP id rQCowADHlIxSOtdmXIPbAA--.39233S2; Wed, 04 Sep 2024 00:33:26 +0800 (CST) From: Zheng Junjie Date: Wed, 4 Sep 2024 00:33:20 +0800 Message-ID: <0b9dfc09ce11ce65535e93b26272450f60d737dc.1725379915.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: rQCowADHlIxSOtdmXIPbAA--.39233S2 X-Coremail-Antispam: 1UD129KBjvdXoWrKF4DKry3Ar18KFWDAFy5urg_yoWkWwb_C3 4vqFyUGr47Wr48KrWYkFWrWFyxtws7Xr1xuF47tr4q93sxZF4rtFWDJFykAw1jkr4xtF17 ArZ3Zry8GF18WjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbrAYjsxI4VWxJwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r1j6r4UM28EF7xvwVC2z2 80aVCY1x0267AKxVWUJVW8JwAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAK zVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx 8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC20s02 6xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_Jr I_JrWlx4CE17CEb7AF67AKxVWUJVWUXwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v2 6r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj4 0_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8 JbIYCTnIWIevJa73UjIFyTuYvjxU7LZ2DUUUU X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -7.52 X-Migadu-Queue-Id: C5FBB699B6 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.52 X-TUID: u78dzJJjGAbe * guix/utils.scm (objcopy-for-target, objdump-for-target): New procedures. Change-Id: I302be242752cd1f4f23368bcbfc8c1674a815224 --- guix/utils.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/guix/utils.scm b/guix/utils.scm index d8ce6ed886..368a34dfbf 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -115,6 +115,8 @@ (define-module (guix utils) cc-for-target cxx-for-target ld-for-target + objcopy-for-target + objdump-for-target pkg-config-for-target strip-for-target @@ -826,6 +828,16 @@ (define* (ld-for-target #:optional (target (%current-target-system))) (string-append target "-ld") "ld")) +(define* (objcopy-for-target #:optional (target (%current-target-system))) + (if target + (string-append target "-objcopy") + "objcopy")) + +(define* (objdump-for-target #:optional (target (%current-target-system))) + (if target + (string-append target "-objdump") + "objdump")) + (define* (pkg-config-for-target #:optional (target (%current-target-system))) (if target (string-append target "-pkg-config") -- 2.45.2