[Buildroot] [PATCH v4 13/20] boot/ti-k3-r5-loader: set binman environment

Romain Naour romain.naour at smile.fr
Mon Feb 19 10:40:12 UTC 2024


Hello Alexander,

Le 17/02/2024 à 21:38, Alexander Sverdlin a écrit :
> Hi Dario,
> 
> On Sat, 2024-02-17 at 17:02 +0100, Dario Binacchi wrote:
>> 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.
>>
>> The patch set the BINMAN_INDIRS environment variable to provide the
>> directory to search for binary blobs and select the packages required by
>> binman.
>>
>> Co-developed-by: Michael Trimarchi <michael at amarulasolutions.com>
>> Signed-off-by: Michael Trimarchi <michael at amarulasolutions.com>
>> Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
> 
> I personally do not see why binman usage should be configurable as in
> https://patchwork.ozlabs.org/project/buildroot/patch/20240213172817.2872849-11-romain.naour@smile.fr/
> your patch looks simpler,

Agree, the binman must be mandatory for ti-k3-r5-loader package.

The intend was to take care of the existing am64x am62x defconfig that was
working without binman. As soon as all TI K3 defconfig switched to binman, this
option can be removed.

Best regards,
Romain


> 
> Reviewed-by: Alexander Sverdlin <alexander.sverdlin at gmail.com>
> 
>> ---
>>
>> 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
>>
>> Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
>> ---
>>  boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 13 ++++++++++++-
>>  1 file changed, 12 insertions(+), 1 deletion(-)
>>
>> 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 0ffcb8235f2e..2a10024aedaa 100644
>> --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
>> +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
>> @@ -39,7 +39,13 @@ TI_K3_R5_LOADER_DEPENDENCIES = \
>>  	host-pkgconf \
>>  	$(BR2_MAKE_HOST_DEPENDENCY) \
>>  	host-arm-gnu-toolchain \
>> -	host-openssl
>> +	host-openssl \
>> +	host-python-attrs \
>> +	host-python-jsonschema \
>> +	host-python-jsonschema-specifications \
>> +	host-python-pyyaml \
>> +	host-python-referencing \
>> +	host-python-rpds-py
>>  
>>  TI_K3_R5_LOADER_MAKE = $(BR2_MAKE)
>>  TI_K3_R5_LOADER_MAKE_ENV = $(TARGET_MAKE_ENV)
>> @@ -49,6 +55,10 @@ TI_K3_R5_LOADER_KCONFIG_DEPENDENCIES = \
>>  	$(BR2_BISON_HOST_DEPENDENCY) \
>>  	$(BR2_FLEX_HOST_DEPENDENCY)
>>  
>> +ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
>> +TI_K3_R5_LOADER_DEPENDENCIES += host-python-pylibfdt
>> +endif
>> +
>>  ifeq ($(BR2_TARGET_TI_K3_R5_LOADER_USE_DEFCONFIG),y)
>>  TI_K3_R5_LOADER_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG))_defconfig
>>  else ifeq ($(BR2_TARGET_TI_K3_R5_LOADER_USE_CUSTOM_CONFIG),y)
>> @@ -58,6 +68,7 @@ TI_K3_R5_LOADER_MAKE_OPTS = \
>>  	CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \
>>  	ARCH=arm \
>>  	HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \
>> +	BINMAN_INDIRS=$(BINARIES_DIR) \
>>  	HOSTLDFLAGS="$(HOST_LDFLAGS)"
>>  
>>  define TI_K3_R5_LOADER_BUILD_CMDS
> 




More information about the buildroot mailing list