From patchwork Tue May 4 20:51:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 1473979 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FZX8922rbz9sRR for ; Wed, 5 May 2021 06:51:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3B03D843ED; Tue, 4 May 2021 20:51:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HWJpLSsyTz9o; Tue, 4 May 2021 20:51:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 793D5843DE; Tue, 4 May 2021 20:51:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B294C1BF360 for ; Tue, 4 May 2021 20:51:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A1D94405DB for ; Tue, 4 May 2021 20:51:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 323K-xHBesBi for ; Tue, 4 May 2021 20:51:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by smtp2.osuosl.org (Postfix) with ESMTPS id 65DB34013A for ; Tue, 4 May 2021 20:51:45 +0000 (UTC) X-Originating-IP: 90.76.218.148 Received: from localhost (lfbn-tou-1-1158-148.w90-76.abo.wanadoo.fr [90.76.218.148]) (Authenticated sender: thomas.petazzoni@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 2F324E0005; Tue, 4 May 2021 20:51:41 +0000 (UTC) From: Thomas Petazzoni To: Buildroot List Date: Tue, 4 May 2021 22:51:31 +0200 Message-Id: <20210504205139.1055360-1-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 0/7] Support for the BeagleV platform X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Drew Fustini , Bin Meng , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Hello, Here is a third iteration of the BeagleV patch series, which brings a few fixes: * The post-build script of v1 calling "make printvars" was working only for in-tree builds. Following a comment from Frank Hunleth on the v1, it was changed in v2 to use "make -C ${O} printvars", which made out-of-tree builds work, but broke in-tree builds. So in this new version, we introduced a preliminary patch that exposes $(CONFIG_DIR) to post-build/post-image scripts, to make such "make printvars" invocations possible. * The beaglev_defconfig is updated to take into account the rename of the Git repositories by Starfive for Linux, U-Boot and OpenSBI. * Reviewed-by tags from Bin Meng are added on beaglev-ddrinit, beaglev-secondboot and the corresponding beaglev_defconfig update. Thanks Bin! As usual, the whole thing is also available at: https://github.com/tpetazzoni/buildroot/commits/beaglev Best regards, Thomas Petazzoni Thomas Petazzoni (7): package/Makefile.in: expose CONFIG_DIR to post-build/post-image scripts boot/opensbi: add options to enable/disable image installation configs/beaglev_defconfig: new defconfig package/riscv64-elf-toolchain: new package boot/beaglev-ddrinit: new package boot/beaglev-secondboot: new package configs/beaglev: enable building of low-level firmware DEVELOPERS | 5 + board/beaglev/extlinux.conf | 4 + board/beaglev/genimage.cfg | 12 ++ ...s-starfive-vic7100-adjust-fdt_addr_r.patch | 39 ++++++ board/beaglev/post-build.sh | 17 +++ board/beaglev/readme.txt | 122 ++++++++++++++++++ boot/Config.in | 2 + boot/beaglev-ddrinit/Config.in | 9 ++ boot/beaglev-ddrinit/beaglev-ddrinit.mk | 29 +++++ boot/beaglev-secondboot/Config.in | 9 ++ boot/beaglev-secondboot/beaglev-secondboot.mk | 29 +++++ boot/opensbi/Config.in | 20 +++ boot/opensbi/opensbi.mk | 16 ++- configs/beaglev_defconfig | 37 ++++++ docs/manual/customize-post-image.txt | 3 +- docs/manual/customize-rootfs.txt | 3 + package/Makefile.in | 1 + .../riscv64-elf-toolchain.mk | 25 ++++ 18 files changed, 375 insertions(+), 7 deletions(-) create mode 100644 board/beaglev/extlinux.conf create mode 100644 board/beaglev/genimage.cfg create mode 100644 board/beaglev/patches/uboot/0001-include-configs-starfive-vic7100-adjust-fdt_addr_r.patch create mode 100755 board/beaglev/post-build.sh create mode 100644 board/beaglev/readme.txt create mode 100644 boot/beaglev-ddrinit/Config.in create mode 100644 boot/beaglev-ddrinit/beaglev-ddrinit.mk create mode 100644 boot/beaglev-secondboot/Config.in create mode 100644 boot/beaglev-secondboot/beaglev-secondboot.mk create mode 100644 configs/beaglev_defconfig create mode 100644 package/riscv64-elf-toolchain/riscv64-elf-toolchain.mk