Message ID | 20221220165038.25114-1-maxim.cournoyer@gmail.com |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8872C27BBEE; Tue, 20 Dec 2022 18:44:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable 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 CD5D127BBE9 for <patchwork@mira.cbaines.net>; Tue, 20 Dec 2022 18:44:27 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1p7fqX-0007Q0-9q; Tue, 20 Dec 2022 11:52:05 -0500 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 <Debian-debbugs@debbugs.gnu.org>) id 1p7fqV-0007Pn-5k for guix-patches@gnu.org; Tue, 20 Dec 2022 11:52:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1p7fqU-0008DY-Tz for guix-patches@gnu.org; Tue, 20 Dec 2022 11:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1p7fqT-0006p2-NJ for guix-patches@gnu.org; Tue, 20 Dec 2022 11:52:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60224] [PATCH 0/9] Improvements to our u-boot tooling Resent-From: Maxim Cournoyer <maxim.cournoyer@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Dec 2022 16:52:01 +0000 Resent-Message-ID: <handler.60224.B.167155506226198@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60224 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60224@debbugs.gnu.org Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167155506226198 (code B ref -1); Tue, 20 Dec 2022 16:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Dec 2022 16:51:02 +0000 Received: from localhost ([127.0.0.1]:45912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1p7fpW-0006oK-78 for submit@debbugs.gnu.org; Tue, 20 Dec 2022 11:51:02 -0500 Received: from lists.gnu.org ([209.51.188.17]:36368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maxim.cournoyer@gmail.com>) id 1p7fpU-0006o4-2l for submit@debbugs.gnu.org; Tue, 20 Dec 2022 11:51:00 -0500 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 <maxim.cournoyer@gmail.com>) id 1p7fpR-0007Lm-In for guix-patches@gnu.org; Tue, 20 Dec 2022 11:50:57 -0500 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <maxim.cournoyer@gmail.com>) id 1p7fpK-0007yy-PT for guix-patches@gnu.org; Tue, 20 Dec 2022 11:50:57 -0500 Received: by mail-qt1-x82b.google.com with SMTP id h26so7560385qtu.2 for <guix-patches@gnu.org>; Tue, 20 Dec 2022 08:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=j+6vPTiVtc1cGDCZy+F60tNHlTCg2hQOIoe+AUuwdRI=; b=GTbXQEAaUzCN8fPnaI1YCZpm8fr44bWnNzu9opf0FCvu2R1Sf+Taqaa1n8tsh4vPPC L9t0nXsDMfK6xniC6OySEImKCcl17XuFWL+mWLgqGIqiFL4/ld90wCaCFUY4L/9H400l ynB+zMkbkpVg71XqO49FnF4/ASlIcwr8zMUVsymem5/+qH7wVf6H6o95yiah21sRVarK X77geH0hn4EDZOuerO2E5o80LTJs+/s/S/+b9rCOV0WZC5oaapjhLCDsrVazlXyxEyjV Dp2I6ISDn/KzGuGUI0J2x7bbQNgma0/D2BsSmCaA+8aS8ERpJz9qFj5jNkT69ps4YzIs OuGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=j+6vPTiVtc1cGDCZy+F60tNHlTCg2hQOIoe+AUuwdRI=; b=wYCnXcqnYLfjkGINJP2qtzcIR7LQ0dPUvggFkLc5ILUOK638vixtnZkWCfkGbA7yb/ Qbkt3c6rJxgFmt744veejzBe85aU6rJPwa3WangpIrQi+YJYLO50yAgbulGQ/fFwO2SK KJszMlTfsxyRARmvs8KF49VTgXWwFGlYubVze6Sqx+02H3R81INn1DiqedPcv9p3Ssqn P7ucJL/ZIM0JLNziK5EcLPsNi0FJpS1jEg7BFWzcQt6ejBXrkO0JvoyVt17T1SEqsmql Sf118BE/HYQkITBSQ0nkWU9McEiC7+LfojOPMkGQvYL2KWOVSs/yABE2+wrybellj8RS Z5dg== X-Gm-Message-State: AFqh2kr6XY2BcCN2eI/wO7TV19yXoVAla4YvCKK7TbZqywnjlo2E2le2 78jSqsmkdK5pT5SYQcn1uvZ4g7sx/agLaw== X-Google-Smtp-Source: AMrXdXuaeRZv1KzMHjsXkxL5rGCMyjO58T7uWNMB82apGus0uh9VVlg410ELcmNX6pBvPNA0w9XIUg== X-Received: by 2002:ac8:5403:0:b0:3a9:926a:4125 with SMTP id b3-20020ac85403000000b003a9926a4125mr6853128qtq.47.1671555047720; Tue, 20 Dec 2022 08:50:47 -0800 (PST) Received: from localhost.localdomain ([2607:fad8:4:3::1002]) by smtp.gmail.com with ESMTPSA id z26-20020ac8711a000000b003a816011d51sm7803538qto.38.2022.12.20.08.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 08:50:47 -0800 (PST) From: Maxim Cournoyer <maxim.cournoyer@gmail.com> Date: Tue, 20 Dec 2022 11:50:38 -0500 Message-Id: <20221220165038.25114-1-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> 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 |
Series |
Improvements to our u-boot tooling
|
|
Message
Maxim Cournoyer
Dec. 20, 2022, 4:50 p.m. UTC
This series include a few changes that were useful or needed to build U-Boot for the i.MX6, notably installation of the u-boot.imx image. It also cleans up things for cross-compilation, no longer explicitly adding cross-gcc and cross-binutils, leaving the build system taking care of that. The two first commits of this series were previously submitted as #59761, now extracted and submitted here for transparency, with fixes for impacted u-boot packages that broke because the move to use gexps. Maxim Cournoyer (9): gnu: make-u-boot-package: Add a u-boot argument and use gexps. gnu: make-u-boot-package: Install .imx files. gnu: make-uboot-package: Simplify build. gnu: u-boot-pinebook-pro-rk3399: Remove input labels and use gexps. gnu: u-boot-firefly-rk3399: Use gexps and fix cross-build. gnu: make-u-boot-sunxi64-package: Use gexps and adjust file name. gnu: u-boot-rock64-rk3328: Fix build. gnu: u-boot-sifive-unmatched: Use gexps and remove inputs. gnu: u-boot-puma-rk3399: Use make-u-boot-sunxi64-package. gnu/packages/bootloaders.scm | 295 +++++++++++++++++------------------ 1 file changed, 144 insertions(+), 151 deletions(-) base-commit: 1a3d8b922863c22f612ea679d9419bb457874fdf
Comments
Hi Maxim, this looks reasonable to me. Some comments below. A minor comment about the first patch: you still bind “outputs” in the build phases, but since you’re using #$output anyway this value is never used. [PATCH 3/9] introduces a comment in the definition of “native-build?”, which references %current-target-system, yet only %current-system is used. Is this a mistake? [PATCH 4/9] — This one appends arm-trusted-firmware-rk3399 instead of prepending it. This differs from how it was done with the labeled inputs. Does this have any consequences? Is the “firmware” label used anywhere (such as downstream packages)? The same applies to patches 5/9, 7/9, and 8/9. [PATCH 6/9] — The change from .bin to .elf confuses me. Is this due to the fact that “target” is now actually set and the package build thus behaves differently? [PATCH 8/9] removes a reference to “firware”; this answers my question to patch 4/9, but perhaps other such references remain?
Hi Ricardo! Ricardo Wurmus <rekado@elephly.net> writes: > Hi Maxim, > > this looks reasonable to me. Some comments below. Sorry for the late reply, it hadn't reached my INBOX (please keep me in CC to ensure it does :-)). > A minor comment about the first patch: you still bind “outputs” in the > build phases, but since you’re using #$output anyway this value is never > used. Fixed! > [PATCH 3/9] introduces a comment in the definition of “native-build?”, > which references %current-target-system, yet only %current-system is > used. Is this a mistake? Fixed! > [PATCH 4/9] — This one appends arm-trusted-firmware-rk3399 instead of > prepending it. This differs from how it was done with the labeled > inputs. Does this have any consequences? Is the “firmware” label used > anywhere (such as downstream packages)? The same applies to patches > 5/9, 7/9, and 8/9. I don't think it matters; the base u-boot package which gets used doesn't include any "firmware" input, and the file provided via arm-trusted-firmware-rk3399 is searched via "search-input-file". I've grepped for 'assoc-ref.*"firmware"' and there doesn't seem to be any remnants except for u-boot-rockpro64-rk3399, which I've now fixed in the last commit. > [PATCH 6/9] — The change from .bin to .elf confuses me. Is this due to the > fact that “target” is now actually set and the package build thus > behaves differently? I think so. I was puzzled by it too, especially since some packages already were searching for a .elf file rather than a .bin file. > [PATCH 8/9] removes a reference to “firware”; this answers my question > to patch 4/9, but perhaps other such references remain? Answered above. Thanks for the review! v3 will appear shortly.