From patchwork Sat Mar 30 16:02:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3062 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9C51A3F333 for ; Sat, 30 Mar 2024 17:02:53 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-56c53b37630sf1018695a12.1 for ; Sat, 30 Mar 2024 09:02:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711814573; cv=pass; d=google.com; s=arc-20160816; b=gDrpNAu27W8SCtvQeFL2hIAdxwts+Jv/cR2YUpN6H4T7BPirAewapqlZofPnHwLC7b xQnYdIVFxLkep2noDLxzEHdFC6IBFBibZbhTm5g/qwSnyI2Unc1ksUaX3mKY7ZwEx+LW Thbjixr8NsZcFyVvQFf2ISi92RRSKVEr63KEgBr0zgKDWUYGLi1HiJpbZqXHx2UIC0AW 51ex+uE3kfCJuQZgXjqZl9jPiYYA7eU1YMY9xWsv5AG+y0iU3ldpp+ljoeduGTOJ9GTh nEXgvDLpjNwXrwvLyF7TmHI5rwUN8+7V6y2hpGKKygFUP897zDZ4A8J7ie63R58iAjua h3Bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=xwVkTMWa4HkKlVvpYbgemO5JvOtOeAC3oVXSkIDiQf0=; fh=ZtwmU8h6/axGxv9358zyhJ7VJEyxcdzNC7ExK0R79Qc=; b=QttUlxREgwPTktJtKkPmKDhEkLBbTpeKaAv35VMIry68orLgJ4wZyLOvs/qDCQ88N+ gDtR9oxrRlHvUYBdERcT4KJwpXlW0ds69QburmXRmQvCr4iX88tk3En0Zd4zFvV7JLq7 ww8euu6x6zo9wlSCJQBWYWJOZbw6t9r1mDcDounip91mqEp4cq9qtSLSICSDkQGCTOlj ccpDj1MTL0J1+oBU6Yy2Qe2wjEI1InuuKwOvDMK9eUC77UAyQ6mpSwPME0u/g/TGHW8x JAeEOwA58kNWDo0XMSuTZYbFHW7jiRzoQN3wX08MPBAET7+kACcbCyHQPZAWwyGgU1r/ GU4A==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=q0g3QttA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1711814573; x=1712419373; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=xwVkTMWa4HkKlVvpYbgemO5JvOtOeAC3oVXSkIDiQf0=; b=fkUM55J8pSioog/I0ZTLfNFl/3sIhvLQr7eAdR0q+q0uRcomjp5IohFwJDOEkoiKYz 0p5/6zUmSnI9IHYw9juADnMLaSMKvldwFbsZnNSPM0vmpo/bGHgo8IVZC5wdmTy4RWgk HHDL1Pm3b7uTmhkMHB0PrFqy5qE/FbJRTGCGo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711814573; x=1712419373; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xwVkTMWa4HkKlVvpYbgemO5JvOtOeAC3oVXSkIDiQf0=; b=vczK5n3+aXPqSFza8d4BRiPQ6UHpgD9j51c43BHqVatEGLd05b4gg5ux01LSBW5mK+ OpKrbFJwQ0sMdTycyHDN9vKTvT564EhTamFG/aRzMs7hFEU/CuitAwv/yOTkoHqQ9b5p Hjsm/Gk1kwecWXlZhP7YU22AI0n+/sZzzpPQJpG+P/QvuVyoOti9fXOCaPtww0E8msfD MuPPf3S0017+7E+yzpaC+5L7CQArJsb7KrAY0JRANLgsZIVvad3g4venpjQVxnYL/cR8 PRcVCNsJ9t8wtqEXlUvbyY8rbe9LBetcjaPg1JhoRklR+P0x4l3ONm9NWdZaLOAV4a26 8NJg== X-Forwarded-Encrypted: i=2; AJvYcCVEIs25Az5he1PfAqPXW+fwb21VUe62McLWUsBL0rmh8gPOQVwaQ+Vs5rVVxo8KFQUzSv320snsb1K/Tk9rqUlcJwNbr3fNEY7mZN47l9IGglyV+57Xi49eR8ESGg== X-Gm-Message-State: AOJu0YyCnH04suoSPEq8bTPO+l8pDtZjjXhBDySecHaNLGShze+iCfX9 5cac1RmGY+29kEjPr7dasSNs+LqkzWX/+oYJ9GXOEs0VxdqamLtUL34ETYH6D8VKxA== X-Google-Smtp-Source: AGHT+IGroRVhDD0FgLNmHl7gGayY3PxcQQcyZXzE0g5/VkL1i3l1RrrQPx2HJ6XXMZondU4fGouwJQ== X-Received: by 2002:a05:6402:13d6:b0:56c:5a7b:5dbf with SMTP id a22-20020a05640213d600b0056c5a7b5dbfmr5564582edx.2.1711814573421; Sat, 30 Mar 2024 09:02:53 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:2695:b0:56c:53e6:a900 with SMTP id w21-20020a056402269500b0056c53e6a900ls297029edd.2.-pod-prod-05-eu; Sat, 30 Mar 2024 09:02:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVkFYKs7qxmb/6BehBChbIoOUqVJy6KoHDJgfu2yBwFGmRuJxeLQyCs7h0EEMqLsfnBiYQ4H6jcCmSKVw289l8mJ2CuO4eU9lUOD5b3QnZ5/dEJ X-Received: by 2002:a50:cd49:0:b0:566:be15:9a88 with SMTP id d9-20020a50cd49000000b00566be159a88mr3782094edj.20.1711814571781; Sat, 30 Mar 2024 09:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711814571; cv=none; d=google.com; s=arc-20160816; b=FAlOUX7EXntxOZsvkIcNI9gRfzrh0frkNp5fjBiKX65AEUBA+OcR1f+ZMRXFjxOdVH haUrj1BhSpfbfQrsP5Q6Odl4FR9aEpIGawTabzHFaYkcJji3kAgDPv3uB3BdJjn8/Uzm duosujWl7I1eydTLnyK31eQCUsNzYd7j3I9clJtFkoy8IFaC4LAZDCdh1DUDtyRuPVXg Nj/fJLvNQLAwmL4B7xTmJH7hpqVPPZRFj3Tf2Fd/AYl5bKB2Y5tF6n7ctDvPVUlP94gU IYqQ69BwFbnYj+fi1wwuvyLslwTteQ30UrceyWqkhuAMJe4Q8gXtIWVy/CxH0++T0D1H D9rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=MHvfJ0eKgtiCEVRndHATYfEiZnu5tEmA4V3DweUFaV0=; fh=HXoCNk8yn8O351HhXt27nGBLTN9Xx2AqAi95kTHgyMo=; b=PrblweNQCpBiDMaVs81hOvYaFy15ldRtl5YhCCIncWoAe+76otMpOmkFHmkan13FCm N0HWHrehgJNY8agZKpH/D1VDHPfRJFGZYWGh36JUzZ2HmZgj509PEs5TJMT22uGY44uL I3l+IbRMn9PN3cQ5GrKDvNr30Tmq+0XVTubPi/YmCffnTeEQXikhQIgHlw4BzqF57vhO ilEaaPeNEb0A9IG7o3dYRGM4Y0g2D5xnB2CaQHfF7Trx624GTMr5m3fKyRy7U83KtWDy 5t6w1Dusa88tp7n950ruXK+I7YMyNdSz4uxNtfi0TFbtC4k1ybinw9qhwgUEZosqGz3y ZJ1g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=q0g3QttA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id n29-20020a5099dd000000b0056c09a82c7dsor719503edb.6.2024.03.30.09.02.51 for (Google Transport Security); Sat, 30 Mar 2024 09:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCWlPpUCLsiiJMEn0Tlhld7veJhYHB8EmBGjOhYfBSFf9x/ziePlrfqELKvW7ZnhdRsn2NBM8oJu5jKvjfEBGc7nT/EKRwDQTYa4hA/LlSrx2Jo2 X-Received: by 2002:a50:a682:0:b0:56b:f54a:8485 with SMTP id e2-20020a50a682000000b0056bf54a8485mr4483237edc.0.1711814571523; Sat, 30 Mar 2024 09:02:51 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-8-99-67.retail.telecomitalia.it. [87.8.99.67]) by smtp.gmail.com with ESMTPSA id f13-20020a056402004d00b0056c633354c6sm2127107edu.45.2024.03.30.09.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 09:02:51 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Romain Naour , Alexander Sverdlin , Andreas Dannenberg , Yegor Yefremov , Xuanhao Shi , Anand Gadiyar , James Hilliard , Thomas Petazzoni , Dario Binacchi , michael@amarulasolutions.com, Asaf Kahlon , francois.perrad@gadz.org, linux-amarula@amarulasolutions.com, bryce@redpinelabs.com, "Yann E . Morin" Subject: [PATCH v10 02/12] boot/ti-k3-r5-loader: set binman environment Date: Sat, 30 Mar 2024 17:02:34 +0100 Message-ID: <20240330160244.3214733-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240330160244.3214733-1-dario.binacchi@amarulasolutions.com> References: <20240330160244.3214733-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=q0g3QttA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Signed-off-by: Dario Binacchi --- 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