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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54D8EEB64DC for ; Tue, 18 Jul 2023 20:34:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DAA478670E; Tue, 18 Jul 2023 22:34:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="ZpLMI5BO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5A3BA8670E; Tue, 18 Jul 2023 22:34:36 +0200 (CEST) Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9114A86702 for ; Tue, 18 Jul 2023 22:34:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:mime-version:to:cc:content-transfer-encoding: content-type:cc:content-type:from:subject:to; s=s1; bh=d1RWLTLkD4/i+RoXr7ZYRSTWjSD5Qub/sgQyKqe+ox8=; b=ZpLMI5BOf9oo/+E03RUNyWqZA2DiQ96FZ7txV7SCSbtB/judVSgunzGaMcimd41uf2v5 fLIoFoFGi5tbqZLJhMPLY84wQv1s/YPzi8eHiE5Dk9m7GzN3qNrb9c2jplvUdkwjXBwdn8 0k1crAJ50UdWbNiGEYyYvRQp37KkqO/EHU0tbSeicj6+ribBN6q+64sI+4fiSo7biVNR6t YH6xZx/gHAmyeAjiWWm8e6FnaN/4Hv1/e1OrVYtGa61uNhd5+DcBgMIf2/WJW8cikjFKuR 7bW0UUKR0lWmODOD/7SPjb50r+FXEKK6UwAxmwcxdyx9nDlHBnaDyCDpLOItTwfQ== Received: by filterdrecv-65f68489c8-74bx5 with SMTP id filterdrecv-65f68489c8-74bx5-1-64B6F757-34 2023-07-18 20:34:31.7163129 +0000 UTC m=+5950704.584021411 Received: from bionic.localdomain (unknown) by geopod-ismtpd-9 (SG) with ESMTP id TA7j-g1WT1GC6zTrPW6Spw Tue, 18 Jul 2023 20:34:31.467 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v2 0/7] binman: Show missing blob message when building U-Boot Date: Tue, 18 Jul 2023 20:34:31 +0000 (UTC) Message-ID: <20230718203423.264341-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h1JlZEt80HeHfKOeg?= =?us-ascii?Q?zUBM9iVh3rsfQhtslIy=2FgdSYOp6NNgfu6c+GZOY?= =?us-ascii?Q?Y8KyMXl7Z1KuL25WFaZR5ssJZri0Tn4savimkFw?= =?us-ascii?Q?qlakAfIqFw7nFqwxBxGspNqN+lk1s0lRztPf1wK?= =?us-ascii?Q?R8b1iHBiUt1xyIS7qWlY2pZD7A=2FWpYWZnByy1s?= To: Simon Glass , Alper Nebi Yasak Cc: u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean binman currently support showing a helpful missing blob message, however only when the badly named --allow-missing flag is used. This changes so that binman is invoked with the --allow-missing flag and the helpful message can be shown by default when building U-Boot. Using the following: make rockpro64-rk3399_defconfig make CROSS_COMPILE="aarch64-linux-gnu-" Before this series a build fails with: binman: Filename 'atf-bl31' not found in input path (...) After this series a build fails with: Image 'simple-bin' is missing external blobs and is non-functional: atf-bl31 /binman/simple-bin/fit/images/@atf-SEQ/atf-bl31 (atf-bl31): See the documentation for your board. You may need to build ARM Trusted Firmware and build with BL31=/path/to/bl31.bin Image 'simple-bin' is missing optional external blobs but is still functional: tee-os /binman/simple-bin/fit/images/@tee-SEQ/tee-os (tee-os): See the documentation for your board. You may need to build Open Portable Trusted Execution Environment (OP-TEE) and build with TEE=/path/to/tee.bin Some images are invalid Builds will continue to fail when there is missing blobs, and the use of BINMAN_ALLOW_MISSING=1 now only enables the --ignore-missing flag. Changes in v2: - Drop merged patches. - Add patches to improve help text. - Add tests. - Collect r-b tags. In v1 there was discussion regarding the name of binman --ignore-missing flag, see [1]. The flag is kept as-is in v2 and a rename or change of default behavior is something that someone can do in a follow up series. The series is based on top of Simon's "binman: Simple templating feature and mkimage conversion" v5 series. This series can also be found at [2]. [1] https://patchwork.ozlabs.org/project/uboot/patch/20230219220158.4160763-10-jonas@kwiboo.se/ [2] https://github.com/Kwiboo/u-boot-rockchip/commits/binman-missing-v2 Jonas Karlman (7): binman: Update tee-os missing blob help text binman: Update missing optional external blob warning text binman: Report missing external blobs using error level binman: Override CheckOptional in fit entry binman: Fix blank line usage for invalid images warning text binman: Show filename in missing blob help message Makefile: Show binman missing blob message Makefile | 2 +- tools/binman/control.py | 34 +++++++++++++++--------- tools/binman/etype/fit.py | 7 +++++ tools/binman/ftest.py | 11 +++++++- tools/binman/missing-blob-help | 2 +- tools/binman/test/264_tee_os_opt_fit.dts | 1 + 6 files changed, 41 insertions(+), 16 deletions(-) -- 2.41.0