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 smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (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 77F3DC5478C for ; Mon, 4 Mar 2024 15:34:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 4276641526; Mon, 4 Mar 2024 15:34:51 +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 71seKXCZwGQB; Mon, 4 Mar 2024 15:34:50 +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 smtp2.osuosl.org 1FF604157D Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 1FF604157D; Mon, 4 Mar 2024 15:34:50 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id B60A51BF3B0 for ; Mon, 4 Mar 2024 15:34:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A445840137 for ; Mon, 4 Mar 2024 15:34:24 +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 9jNXCeHr6k6m for ; Mon, 4 Mar 2024 15:34:23 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::62c; helo=mail-ej1-x62c.google.com; envelope-from=dario.binacchi@amarulasolutions.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 85AB340028 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 85AB340028 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by smtp4.osuosl.org (Postfix) with ESMTPS id 85AB340028 for ; Mon, 4 Mar 2024 15:34:23 +0000 (UTC) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a44d084bfe1so275349666b.1 for ; Mon, 04 Mar 2024 07:34:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709566461; x=1710171261; 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=lKc3Chep2T+frNrBCRptjepZuevzShT3acM8aNVZLj/PoDxBCKNlD0o4jQs54Eyejj UoP9QJpOWNroa30AI+xvr5JcIwwinHvLBOs3kpMI/rSz0SsbN5SaLpQjpyO61fSaiACl fCswihlC6JKIUND6jSAP3o7cya3FzlKFKIkRQ7DufUa/HXJnpNVy5T6DkE5ZoGZO+3KD /kvV3wkeLCwqLkHZhIAxqJxrn3f2gtOw2ADLVDp231ejQu9Yp6jXnDIh+pn/xwLCZdu5 KxWRz4zq5IY16Z7Chp4Hvm31qPsXC4yqeNaU78BnyIVZMrxomaIf9NP9/IO/x7TMqhY5 Tl6w== X-Gm-Message-State: AOJu0Yx4APBOE9TJEJcGjyOSjZindrKYAMxwACpKoWcB4udFnU8kNbAD 92wyjZ9ArS7YjV7QqT4WisO2YNBmgrdKAbW/9P5Gw9SRp3P2TnWwgabZBIC9WyfsMooKbEzrugp BuyI= X-Google-Smtp-Source: AGHT+IH7sqZ6V/jVMw+iJs1iLzjbwmmUrR2Ru4cTzBGVfD1ToGVKRfl2mnk1015NFx7FLGLArzmPSg== X-Received: by 2002:a17:906:3715:b0:a44:7209:4c94 with SMTP id d21-20020a170906371500b00a4472094c94mr6623367ejc.14.1709566461405; Mon, 04 Mar 2024 07:34:21 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2001:b07:6474:ebbf:72fe:558f:d55e:d423]) by smtp.gmail.com with ESMTPSA id sa20-20020a1709076d1400b00a4432543b21sm4936082ejc.198.2024.03.04.07.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 07:34:21 -0800 (PST) From: Dario Binacchi To: buildroot@buildroot.org Date: Mon, 4 Mar 2024 16:32:42 +0100 Message-ID: <20240304153253.732708-12-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240304153253.732708-1-dario.binacchi@amarulasolutions.com> References: <20240304153253.732708-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=1709566461; x=1710171261; 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=ad79hS7sXejoZ183Ga3yJHVk0FATLIZK4VjgyCp0iIy3qQTfRol/i5z1Kb22ckdDa/ b8V82pFc8gPBOsUcrgTbd88xzHekw/2dK0jjA6/fiCX8xtCnCGit8b2ZBFKRszrPrMS5 qPDSQBbT/QGn3Uy4c7vloK8oq9egl02wzYp0U= X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=ad79hS7s Subject: [Buildroot] [PATCH v9 11/22] 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