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 66E2CC433FE for ; Thu, 10 Nov 2022 02:15:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0C2D84F46; Thu, 10 Nov 2022 03:15:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="FxpWGTUd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C24418508B; Thu, 10 Nov 2022 03:15:08 +0100 (CET) Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 F406F84FB2 for ; Thu, 10 Nov 2022 03:15:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x130.google.com with SMTP id x7so416100ilg.0 for ; Wed, 09 Nov 2022 18:15:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UNgdheT+9e4t5K/8973EXrqFkEaX3hYn1I93JazHbYM=; b=FxpWGTUdi2U1hPKioZvGvnmtjg+kb/mU206ywph3LOtlMe8ufsthYIZugfx6kQ56qf 1og551L7gVqw1NEnYj4etLsN/VuYkEsCvghbrRmidhfAiJD6DWCnRH0PJ0E2voRieS1D Nv+OepPHwD5BN+IkiqI4EVrgIW/SotfHJmr6A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UNgdheT+9e4t5K/8973EXrqFkEaX3hYn1I93JazHbYM=; b=yZbx9a1DVcNC4BjiDruRpLAkc+Xv3k3S/Y9oECfgRBiFqxAnnxRTGga4nFtQ2fAuFU ViK9lxyyunCNIIGvNorp1LleDDeUD7Q7dVhQY/LiEA2mHp+mbI/b07BHimdYrCuFEGe+ 9S5tQo5GhVIX5OIEsxLs41Dr4/hNHfhNw1kr1kZQEnfkyOfSmQZGEnoVcAiJYhlTUNh/ HRkNm32rtZinQ+9ZFxg+wuZ5wJ2cp6XAtci6vVqelOykHMk2HYDQNgsnPUT570LwAicw mKq7zLJTlMR4uS1K5t9ZaAEWLpnx3jsK6dtxZHTqQFI1K3mnYfPA+5tTRiOlQZS1o6ft qLqg== X-Gm-Message-State: ACrzQf3rlPUsPhbCgUiN9tGS57Cokj2mXXAOZVbeewct1cxWhN8JUWS1 0X1mTuzx/kcdltufpUyniAq4Ma+KNlcCpQ== X-Google-Smtp-Source: AMsMyM7mtLORK4rofHeJhPrHlSP7B6tdT7p3WwELHB6nH6rNjX+u7fSY1uXWIO/6dYZ6xfzcTSl91g== X-Received: by 2002:a92:c0d0:0:b0:300:a256:389a with SMTP id t16-20020a92c0d0000000b00300a256389amr30363083ilf.153.1668046502161; Wed, 09 Nov 2022 18:15:02 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id z23-20020a056638215700b003636b73cf29sm5352785jaj.8.2022.11.09.18.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 18:15:01 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Rasmus Villemoes , Simon Glass , AKASHI Takahiro , Alper Nebi Yasak , Andre Przywara , Chia-Wei Wang , Heinrich Schuchardt , Jan Kiszka , Joe Hershberger , Joel Stanley , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Marek Vasut , Masahiro Yamada , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Philippe Reynes , Quentin Schulz , Quentin Schulz , Rick Chen , Sean Anderson , Steven Lawrance Subject: [PATCH v5 00/16] buildman: Correct various issues with missing blobs Date: Wed, 9 Nov 2022 19:14:38 -0700 Message-Id: <20221110021455.1004335-1-sjg@chromium.org> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean This series attempts to tidy up the problem of missing blobs, making U-Boot default to failing the build, but providing ways to configure this so that buildman can still be used for build testing by people who don't have the blobs or don't care about them. This is based on discussion in [1] as well as some experimentation. It also moves the buildman docs to rST and tidies up some toolchain settings and documentation. [1] https://patchwork.ozlabs.org/project/uboot/patch/20221010151831.3376759-2-trini@konsulko.com/ Changes in v5: - Add a note that -W requires -M - Update ftest use of -W to avoid confusion - Update exit-status docs to mention -W also - Rename flag to --ignore-missing - Update commit message - Correct help for -M flag - Correct --- Warning --- section - Convert the buildman args to a list - Add new patch with a separate section about environment variables - Add new patch to ensure config_fname is inited - Add new patch to reinstate removal of temp output dir in tests - Split out config_fname change into a separate patch - Rename GetGlobalValue to GetGlobalItemValue - Fix 'items' typo - Simplify implementation of GetGlobalItemValue() - Use '[global]' for the doc heading - Use double tick for arguments - Drop redundant allow_missing code - Split out the tests more - Add new patch with documentation for the command line args Changes in v4: - Add a patch to update the arc toolchain - Add new patch to update the default settings file - Leave the arc toolchain in there - Various changes that were unfortunately not recorded Changes in v3: - Add new patch to convert documentation to rST - Add new patch to drop mention of MAKEALL - Add new patch to drop mention of old architectures - Add tests docs and a settings-file option Changes in v2: - Use a separate rule for running binman Simon Glass (14): image: Correct strncpy() warning with image_set_name() Makefile: Correct the binman rule doc: Correct the path to the Makefile documentation binman: Use an exit code when blobs are missing buildman: Convert documentation to rST buildman: Drop mention of MAKEALL buildman: Update the arc toolchain buildman: Update the default settings file buildman: Drop mention of old architectures buildman: Detect binman reporting missing blobs binman: Add a separate section about environment variables buildman: Ensure config_fname is inited buildman: Reinstate removal of temp output dir in tests binman: Add documentation for the command line args Tom Rini (2): global: Do not default to faking missing binaries for buildman buildman: Add --allow-missing flag to allow missing blobs .azure-pipelines.yml | 2 +- .gitlab-ci.yml | 6 +- Makefile | 15 +- doc/build/buildman.rst | 1 + doc/build/index.rst | 1 + include/image.h | 8 +- scripts/Kbuild.include | 2 +- tools/binman/binman.rst | 352 +++++++- tools/binman/cmdline.py | 5 +- tools/binman/control.py | 9 +- tools/binman/ftest.py | 19 +- tools/buildman/README | 1349 ------------------------------- tools/buildman/README.rst | 1 + tools/buildman/bsettings.py | 17 +- tools/buildman/builder.py | 5 +- tools/buildman/builderthread.py | 8 +- tools/buildman/buildman.rst | 1328 ++++++++++++++++++++++++++++++ tools/buildman/cmdline.py | 6 + tools/buildman/control.py | 28 +- tools/buildman/func_test.py | 112 ++- 20 files changed, 1893 insertions(+), 1381 deletions(-) create mode 120000 doc/build/buildman.rst delete mode 100644 tools/buildman/README create mode 120000 tools/buildman/README.rst create mode 100644 tools/buildman/buildman.rst -- 2.38.1.431.g37b22c650d-goog