From patchwork Fri Mar 1 13:36:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3023 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E490D3F057 for ; Fri, 1 Mar 2024 14:36:39 +0100 (CET) Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a445a83754esf107556866b.3 for ; Fri, 01 Mar 2024 05:36:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709300199; cv=pass; d=google.com; s=arc-20160816; b=Y1ltiN/M/G5UB+t+Tby3ABjrkr5V/nHeMhbex7ezG/+kYhPr3VpHh9AebE932lBY6g le63t77jvqEYEeUwSkOUuba/LBjR8a76k7tdwwp5kEve9DJ3E6cHdKNqQBHWDHYx+ljY AK5Z+Jg8B4L/q9efSq6KybpBhv2Gb7tBKfrz4laAgZTDx/azQi9kcfBoNOP2wTGmzqDh 0k2znov6zhFvXoQCIC2gqweA7wi8eX098CeEe2/0X/0vn9DjkbSA+1Kb3mwPCNxt0xM5 AJobUQFbUKOUWfq+fyyzyDfKISgAiZSA2pp0/v1JSwNrNjIgqEIvvF1PMAjWPz1+rsNW gDBQ== 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=xhmqMShaavSzh6zCbfNfWqvSdcrq4cazZziytNlgP8I=; b=IR3li7saVg9JNPZsjYxidW+USfQTSOsQOeMGM1YkSinOQp250uS/CNAn4a/Uqyhvt9 wcIe+a/oizIScI25TguxqE/7CBgDDgN96hwQYyWHnrDrsK704I8s3Q2o/UgeS824JCmN mJMZ4CteHOetxdH13QR/ejF4UAyQPgxNd8IZV8SCM/V0UXz7KqcUbIGpSNyMFSYx1hGG DjTepNDkkgsv2ZPpB4B8SacQ29uq4Ldn8i8AXC/ZP0eOENSps/Ds+9Pkb0QGTWDqudYy J7z/tkDWkiUJEwtVrYTXVE7iyqGBhOD2GPjDtZl8sXDILqO6JH8H1q0wJhDpkOPGFRr+ L/OA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LDPeboSz; 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=1709300199; x=1709904999; 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=qW5cReSuIRIhIAfbnNzY3GEg1FdduyA9gY+s3x2yDvF+t2Q4Y8FGrcGiSPGeXTz/tS e951avaGEcgMhGZGJ+GPzhvO2G/3xBKQI+NXs89MmRWLf7z6LgWRTProaKdPWgsJwFql n95vrnz52MR7sVThQumvlXSRz7ERRr79miaME= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709300199; x=1709904999; 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=bnsxW9N+JNf0T46bF7RutL40oLdDWEdmcxN9LRfPITb0j00bWS0UJAerAf9S9Cb+Oy l2ngsujv/wftCL4dQn34EiFlw+dH5+AakjOo2NJ8/NcmaoTWv90X2hA+Uo94Fa+sP+lm GcB4LmtqOmsaN+Z1edSBfg5tjyaTrPVLVr2b67JaTDSZuiZnwD7Kn6r1aCooOPnoT8pG BV20zNeH09okqbGhteBPiK65jmHAZny4VxrKfYbzVFltPCTej3hGX08KHYOnXzXibfUl k6wQXriBTKO45cf8KTxJNA/O06VIQYWxWofuBwyS421hCKd2u4wBBihEI0Mb11yEgbrc TjRw== X-Forwarded-Encrypted: i=2; AJvYcCXai4XBKuGfHk7uFfac7aEtMBkK9zwDEfv3UHBsBie9uKsiZOtIrrqRdU7PwZebtvwQ2WSPLIXrngQr8vkp3ZJ0RitzHU1GkYSspnZskztIoH6jMrSynBfNp3AzSQ== X-Gm-Message-State: AOJu0YxwcjWkH3uYTtofiL3fsWtB5IEL7mVxSj7Q4mtzYcQDAJBm7t6R viNJozyguETla8d19q5v1gsZh3WOfYvYuu/oZ7IY1dsV7uJb/2D3gZcGm+eG7EvZRQ== X-Google-Smtp-Source: AGHT+IFR0ieZ5wzHaygidsVH7SFiR5XAIKy5Qv0LzIzInTjqasD+Y+G6TwMmNll6vbP30UR9Biwujw== X-Received: by 2002:a50:cac7:0:b0:564:b823:a78 with SMTP id f7-20020a50cac7000000b00564b8230a78mr1167988edi.37.1709300199726; Fri, 01 Mar 2024 05:36:39 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:388e:b0:566:a8bd:678e with SMTP id fd14-20020a056402388e00b00566a8bd678els903422edb.2.-pod-prod-08-eu; Fri, 01 Mar 2024 05:36:38 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX1FfrM/1DD5WCBfWc3w/q+XP5vTJkLsIbhOVfizu3ujHkxZhklIiXgZ+wOXlBCOkCF3AOiG12vs7nCEC8brXk7lb66iM8Le6XiDqFgXh+RK71y X-Received: by 2002:a17:906:1d5a:b0:a44:48c5:85f6 with SMTP id o26-20020a1709061d5a00b00a4448c585f6mr1300516ejh.43.1709300198216; Fri, 01 Mar 2024 05:36:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709300198; cv=none; d=google.com; s=arc-20160816; b=E/uXYfl0EknRKTPlkGQph+yg8BLx6SKnrOge2iYx2pwqQnJihfnc8gVGoCqKPZoVmD dWkVB0/aCrBhaXTo8feN5CrWTtr14EAb9by3/FSVwJMPY0LRxRDmAIzv21ywM/+DvWhN G8CaMkHryc0pmxtoV/7HxgValN8HhMnAXAjbNEG/qDXHxW+NSSmrRMIgZi1tM5DIVfky qRPK5uO6jdeOBO1smFJTzIDQxMzglOFVHJQzWtKojNdeJtS1shUd2k6RT5v2gjWpBddo 3dk/ExfhkPz2U/o6qrE8YF5G8SYu9s0sprKR+F6LfQ/TxYZW05c1RHv9jdsvIpRHDaaL WCEQ== 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=nPhBcm+Tzu2TptCofmjcV0oAY5V+cEpKIhetmHj9Iok=; b=jNEcURuJ9ICZRft/RnJUp5pMrwei96TredHGOVI+28ay79GD5hV3U1W9g8tTW6u6vc RGJnlygaZiZwXaVrLi1AzmE6rLTh5+9CSH3JmhsfDpiAMvJrcnBCRNr8o3Axoh3+FOS8 cLr9DzvbGjobwOvS9ijWuvW0vwpIm65l9Jc88g1ytDGhJ8o3ni1ZYa+PgOKFhdw4/np7 XzLG2V2ovZ+BZzSk5W68BzYbYPnufktn1c8/nqKLQ5akZBxmm5azFqtbOE7P2U/ozR1P tlFOLdIwrn/dvUW3qf0q1gNoxoTiHe+UMVjngYdu+4BFvYqqwenw34Z5Eu9S44G/LJ/v hVEQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LDPeboSz; 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 w11-20020a170906130b00b00a444ad03612sor1372004ejb.21.2024.03.01.05.36.38 for (Google Transport Security); Fri, 01 Mar 2024 05:36:38 -0800 (PST) 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; AJvYcCVbmP2tA+SSbDuYWiINwetL3+UMouB8pUM/iXAWp4BYtLmvlvked1XfiuZH4/dCDMrCv/SPVp/vFitDGkiX3f4HoeRqOhz09jYaBf8Nqhf+4T+d X-Received: by 2002:a50:cb8c:0:b0:566:aa2:843f with SMTP id k12-20020a50cb8c000000b005660aa2843fmr1228509edi.10.1709300197959; Fri, 01 Mar 2024 05:36:37 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:5260:58bc:42cc:9d46]) by smtp.gmail.com with ESMTPSA id q28-20020a056402033c00b005659ea1caf0sm1566608edw.6.2024.03.01.05.36.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:36:37 -0800 (PST) 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 Subject: [PATCH v8 11/23] boot/ti-k3-r5-loader: set binman environment Date: Fri, 1 Mar 2024 14:36:08 +0100 Message-ID: <20240301133620.3547430-12-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301133620.3547430-1-dario.binacchi@amarulasolutions.com> References: <20240301133620.3547430-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=LDPeboSz; 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