All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle via buildroot <buildroot@buildroot.org>
To: Romain Naour <romain.naour@smile.fr>, buildroot@buildroot.org
Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	Michael Trimarchi <michael@amarulasolutions.com>
Subject: Re: [Buildroot] [PATCH v12 04/16] boot/ti-k3-r5-loader: add BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option
Date: Sun, 7 Apr 2024 22:07:18 +0200	[thread overview]
Message-ID: <19db26fb-d5cd-41d4-a7bd-491b2d19dd66@mind.be> (raw)
In-Reply-To: <20240407103512.1112712-5-romain.naour@smile.fr>



On 07/04/2024 12:34, Romain Naour wrote:
> From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> 
> Recent version of U-Boot use binman to provide a mechanism for building
> images, from simple SPL + U-Boot combinations, to more complex
> arrangements with many parts.
> 
> This tool uses additional host python modules that must be provided by
> Buildroot. So introduce a new option
> BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN to add additional host packages
> in U-Boot build dependency to use binman.
> 
> When BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN is set, BINMAN_INDIRS
> environment variable to provide the directory to search for binary
> blobs and select the packages required by binman. Make sure that
> ti-k3-boot-firmware package has been installed before building
> ti-k3-r5-loader in order to provide such firmwares.
> 
> The BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option is currently needed
> since we are in the middle of the process to switch TI AM62 and AM64
> board defconfig to binman. Keep BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN
> disabled for them until the u-boot/ti-k3-r5-loader version bump to
> 2024.01.
> 
> The dependency of binman is not really easy to follow. First we have
> the packages list from binman.rst [1] then we have to install
> additional python modules [2]. Maybe in the future it will be
> necessary to add host-lzma and host-lz4 in the dependencies list.
> 
> [1] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/binman/binman.rst?plain=1#L377
> [2] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt

  Excellent that you added this paragraph!

  Regards,
  Arnout

> 
> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> Co-developed-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> ---
> Changes in v11:
> - Use BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option while AM62 and AM64
>    still use ti-k3-image-gen
> - Add missing ti-k3-boot-firmware dependency
> 
> Changes in v6:
> - Update the commit message adding the links of requirements.
> 
> Changes in v5:
> - Add dependecy on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
> - Drop runtime dependecies
> - Add host-python-pylibfdt dependency without requiring
>    BR2_TARGET_UBOOT_NEEDS_PYLIBFDT configuration
> - Add host-python3 and host-python-setuptools dependencies
> - Add SOB and COB tags of Romain Naour
> 
> Changes in v4:
> - Drop the BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option
> 
> Changes in v2:
> - Change commit message
> - Add BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option
> - Select packages required by binman if
>    BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN is enabled
> ---
>   boot/ti-k3-r5-loader/Config.in          |  9 +++++++++
>   boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 15 +++++++++++++++
>   2 files changed, 24 insertions(+)
> 
> diff --git a/boot/ti-k3-r5-loader/Config.in b/boot/ti-k3-r5-loader/Config.in
> index 5f86c045c9..5f4f33b220 100644
> --- a/boot/ti-k3-r5-loader/Config.in
> +++ b/boot/ti-k3-r5-loader/Config.in
> @@ -93,4 +93,13 @@ config BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_CONFIG_FILE
>   	help
>   	  Path to the TI K3 R5 Loader configuration file.
>   
> +config BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN
> +	bool "ti-k3-r5-loader use binman"
> +	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-rpds-py -> python-jsonschema
> +	select BR2_TARGET_TI_K3_BOOT_FIRMWARE
> +	help
> +	  Use binman tool for generation and signing of boot images.
> +
> +	  https://docs.u-boot.org/en/v2024.01/develop/package/binman.html
> +
>   endif
> diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
> index 0ffcb8235f..cf18b43871 100644
> --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
> +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
> @@ -60,6 +60,21 @@ TI_K3_R5_LOADER_MAKE_OPTS = \
>   	HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \
>   	HOSTLDFLAGS="$(HOST_LDFLAGS)"
>   
> +ifeq ($(BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN),y)
> +# https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt
> +TI_K3_R5_LOADER_DEPENDENCIES += \
> +	host-python-jsonschema \
> +	host-python-pyyaml \
> +	ti-k3-boot-firmware
> +# Make sure that all binman requirements are build before ti-k3-r5-loader.
> +TI_K3_R5_LOADER_DEPENDENCIES += \
> +	host-python3 \
> +	host-python-pyelftools \
> +	host-python-pylibfdt \
> +	host-python-setuptools
> +TI_K3_R5_LOADER_MAKE_OPTS += BINMAN_INDIRS=$(BINARIES_DIR)
> +endif
> +
>   define TI_K3_R5_LOADER_BUILD_CMDS
>   	$(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS)
>   endef
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-04-07 20:07 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-07 10:34 [Buildroot] [PATCH v12 00/16] Add support for AM62x-SK HS-FS devices Romain Naour
2024-04-07 10:34 ` [Buildroot] [PATCH v12 01/16] boot/ti-k3-r5-loader: drop hash for version 2022.10 Romain Naour
2024-04-07 10:34 ` [Buildroot] [PATCH v12 02/16] board/ti/am6{2, 4}x-sk: add arm-trusted-firmware v2.7 hash Romain Naour
2024-04-07 19:53   ` Arnout Vandecappelle via buildroot
2024-04-09 11:35     ` Romain Naour
2024-04-07 10:34 ` [Buildroot] [PATCH v12 03/16] boot/uboot: rename TI_K3_DM option to cover further TI K3 SoCs support Romain Naour
2024-04-07 20:01   ` Arnout Vandecappelle via buildroot
2024-04-09 11:36     ` Romain Naour
2024-04-07 10:34 ` [Buildroot] [PATCH v12 04/16] boot/ti-k3-r5-loader: add BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option Romain Naour
2024-04-07 20:07   ` Arnout Vandecappelle via buildroot [this message]
2024-04-07 10:34 ` [Buildroot] [PATCH v12 05/16] boot/uboot: add BR2_TARGET_UBOOT_USE_BINMAN option Romain Naour
2024-04-08 16:11   ` James Hilliard
2024-04-09 11:58     ` Romain Naour
2024-04-07 10:34 ` [Buildroot] [PATCH v12 06/16] boot/ti-k3-r5-loader: install tiboot3.bin and sysfw.itb to BINARIES_DIR Romain Naour
2024-04-07 20:19   ` Arnout Vandecappelle via buildroot
2024-04-07 10:35 ` [Buildroot] [PATCH v12 07/16] configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01 Romain Naour
2024-04-08 13:00   ` Arnout Vandecappelle via buildroot
2024-04-09 11:36     ` Romain Naour
2024-04-09 12:05     ` Romain Naour
2024-04-07 10:35 ` [Buildroot] [PATCH v12 08/16] configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.18 Romain Naour
2024-04-07 10:35 ` [Buildroot] [PATCH v12 09/16] board/ti/am62x-sk: generalize post-build.sh Romain Naour
2024-04-08 13:25   ` Arnout Vandecappelle via buildroot
2024-04-09 11:41     ` Romain Naour
2024-04-07 10:35 ` [Buildroot] [PATCH v12 10/16] board/ti/am62x-sk: move post-build.sh to board/ti/common/am6xx Romain Naour
2024-04-08 13:26   ` Arnout Vandecappelle via buildroot
2024-04-07 10:35 ` [Buildroot] [PATCH v12 11/16] configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 Romain Naour
2024-04-07 10:35 ` [Buildroot] [PATCH v12 12/16] configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18 Romain Naour
2024-04-07 10:35 ` [Buildroot] [PATCH v12 13/16] boot/uboot: remove BR2_TARGET_UBOOT_TI_K3_DM_SOCNAME Romain Naour
2024-04-07 10:35 ` [Buildroot] [PATCH v12 14/16] boot/ti-k3-image-gen: remove package Romain Naour
2024-04-07 10:35 ` [Buildroot] [PATCH v12 15/16] boot/ti-k3-r5-loader: remove BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN Romain Naour
2024-04-08 13:39   ` Arnout Vandecappelle via buildroot
2024-04-07 10:35 ` [Buildroot] [PATCH v12 16/16] package/ti-k3: switch ti_am6{2, 4}x_sk_defconfig to HS-FS by default Romain Naour
2024-04-08 13:46   ` Arnout Vandecappelle via buildroot
2024-04-09 21:35     ` Andreas Dannenberg via buildroot
2024-04-07 20:30 ` [Buildroot] [PATCH v12 00/16] Add support for AM62x-SK HS-FS devices Arnout Vandecappelle via buildroot
2024-04-08 13:47   ` Arnout Vandecappelle via buildroot
2024-04-09 21:17     ` Romain Naour
2024-04-10  7:34       ` Dario Binacchi
2024-04-10  8:00         ` Gero Schwäricke via buildroot
2024-04-10  8:24           ` Andreas Dannenberg via buildroot
2024-04-10  9:23             ` Andreas Dannenberg via buildroot
2024-04-10  9:36               ` Dario Binacchi
2024-04-10 11:10             ` Gero Schwäricke via buildroot
2024-04-10 21:38             ` Romain Naour
2024-04-10 21:30         ` Romain Naour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19db26fb-d5cd-41d4-a7bd-491b2d19dd66@mind.be \
    --to=buildroot@buildroot.org \
    --cc=arnout@mind.be \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=michael@amarulasolutions.com \
    --cc=romain.naour@smile.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.