Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CC74C54798 for ; Tue, 27 Feb 2024 16:31:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6E2BA40682; Tue, 27 Feb 2024 16:31:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EnqWYAKSA5g1; Tue, 27 Feb 2024 16:31:10 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 922CF41553 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 922CF41553; Tue, 27 Feb 2024 16:31:09 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 3C36C1BF30A for ; Tue, 27 Feb 2024 16:30:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2A671605D5 for ; Tue, 27 Feb 2024 16:30:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Za_lMrY2d1H6 for ; Tue, 27 Feb 2024 16:30:44 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::133; helo=mail-lf1-x133.google.com; envelope-from=dario.binacchi@amarulasolutions.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 08141605BD DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 08141605BD Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by smtp3.osuosl.org (Postfix) with ESMTPS id 08141605BD for ; Tue, 27 Feb 2024 16:30:43 +0000 (UTC) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-512ed314881so4629091e87.2 for ; Tue, 27 Feb 2024 08:30:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709051441; x=1709656241; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bSjGw9f6z6kn4c1jsZC1lUaY+UqUehEPVM2pz+w5v/o=; b=EEvpGrBKF5CquWPW8/xtBFFvaRM0DM+BN9P9+a1EN1bH0l7DQzy6HENdERaTFmf9HB 8BmZDogpiVD2S27OOLix2+QZAGaUsbM4LgN815BS9l3pr7lQX9LaiGECkzOFWWmTQzx6 Bh3s5xnEquKd8a4sxrTJWJwp2heGu2o2gHgVfAznEHCFDBNTtqQbl/kRF+0SyeaPp1kw Slb8qz6rzEk+v+RyZnyLx+zaMhQ2Oea2CMF7W603g/F7xgsrKyaHDkrqN7IgH09LzzZB zaEs/6YltKqd8Gm8sADN/Cxj2fEukb6QKQzv7JZjfydvh09yVBHN7ARdbZDuPH+vTKnE 81yw== X-Gm-Message-State: AOJu0YzBE0gPC+oQ9utmzlpAv8xdHVIY5cnxcx0C1CQyWoIkaSNzQL2A vs+QwFy9AZq3jtiTNk/KQxsQA1SxGYx42BOMc+jG56ZM9YqEHQ/bvLdmP/+F+UTTvcoNZLQBEh7 7Pwo= X-Google-Smtp-Source: AGHT+IGkK2+4oymaOOmGloXZZlg6t/0dcBRsmhfvq8j/vGqP8NBoi25Afdzih4HoNBOLpoSNm0a1Jg== X-Received: by 2002:a05:6512:6d0:b0:512:fc60:38e4 with SMTP id u16-20020a05651206d000b00512fc6038e4mr5053609lff.54.1709051441389; Tue, 27 Feb 2024 08:30:41 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2001:b07:6474:ebbf:e567:9129:29c8:388f]) by smtp.gmail.com with ESMTPSA id p16-20020a056402045000b0055edfb81384sm898404edw.60.2024.02.27.08.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:30:41 -0800 (PST) From: Dario Binacchi To: buildroot@buildroot.org Date: Tue, 27 Feb 2024 17:30:13 +0100 Message-ID: <20240227163019.2876942-12-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227163019.2876942-1-dario.binacchi@amarulasolutions.com> References: <20240227163019.2876942-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1709051441; x=1709656241; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bSjGw9f6z6kn4c1jsZC1lUaY+UqUehEPVM2pz+w5v/o=; b=GDmIdmkmbloKs3NP5M8BJPS9wyv7gRkDvaWtXz6fGNT/Er21FwCHlvR9gOQU07BZud hV6Yx8FWGT7EyclCTxScY+yH5l2XMOkqGtcV8hz5b0Js0i5fVb+6W3WcgiBgyZFSf4B8 RAzvohtr45x05blnItnXnMr0Kh6sJpjJiEE7w= X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=GDmIdmkm Subject: [Buildroot] [PATCH v7 11/17] boot/ti-k3-r5-loader: set binman environment X-BeenThere: buildroot@buildroot.org 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: Dario Binacchi , michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, Asaf Kahlon , Xuanhao Shi , James Hilliard , Thomas Petazzoni , Romain Naour , Andreas Dannenberg , Alexander Sverdlin , bryce@redpinelabs.com, Anand Gadiyar Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" 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. 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 Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Co-developed-by: Romain Naour Signed-off-by: Romain Naour Signed-off-by: Dario Binacchi --- 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 | 1 + boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/boot/ti-k3-r5-loader/Config.in b/boot/ti-k3-r5-loader/Config.in index 5f86c045c99f..fc71337e80cc 100644 --- a/boot/ti-k3-r5-loader/Config.in +++ b/boot/ti-k3-r5-loader/Config.in @@ -1,6 +1,7 @@ config BR2_TARGET_TI_K3_R5_LOADER bool "ti-k3-r5-loader" depends on BR2_aarch64 + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-rpds-py -> python-jsonschema help Separate U-Boot SPL build for R5 core on TI's K3 processors. Usually used to build tiboot3.bin with k3-image-gen. 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..fdb058f3b72a 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,12 @@ TI_K3_R5_LOADER_DEPENDENCIES = \ host-pkgconf \ $(BR2_MAKE_HOST_DEPENDENCY) \ host-arm-gnu-toolchain \ - host-openssl + host-openssl \ + host-python-jsonschema \ + host-python-pyyaml \ + host-python3 \ + host-python-setuptools \ + host-python-pylibfdt TI_K3_R5_LOADER_MAKE = $(BR2_MAKE) TI_K3_R5_LOADER_MAKE_ENV = $(TARGET_MAKE_ENV) @@ -58,6 +63,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 -- 2.43.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot