From patchwork Mon Mar 23 14:03:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1260049 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48mGMy0SJbz9sNg for ; Tue, 24 Mar 2020 01:04:29 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 23FA681942; Mon, 23 Mar 2020 15:04:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D284F818A0; Mon, 23 Mar 2020 15:04:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from smtp-out.xnet.cz (smtp-out.xnet.cz [178.217.244.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 28131818A0 for ; Mon, 23 Mar 2020 15:04:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=ynezz@true.cz Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 4E4F641AB; Mon, 23 Mar 2020 15:04:00 +0100 (CET) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 6f51476b; Mon, 23 Mar 2020 15:03:45 +0100 (CET) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: u-boot@lists.denx.de Cc: =?utf-8?q?Petr_=C5=A0tetiar?= , Harald Seiler , Tom Rini , Michal Simek Subject: [PATCH 0/3] sunxi: produce working binaries by default Date: Mon, 23 Mar 2020 15:03:44 +0100 Message-Id: <20200323140348.26717-1-ynezz@true.cz> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean Hi, currently its not possible to distinguish between normal builds and builds performed by the build bots/CI, thus leading to a workarounds like for example in commit 4c78028737c3 ("mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing"), where producing unusable binaries is preferred in favor of a green automatic builds. So lets try to fix this properly, add BUILDBOT config options which could be set on the build bots/CI and the codebase can use this new config option to workaround the issues in more clear manner. While at it, replace .its generator script with more generic Dust template based approach, which should allow for more code sharing between boards and thus reduce code duplication. Cheers, Petr Ref: https://lists.denx.de/pipermail/u-boot/2020-March/403105.html Ref: https://lists.denx.de/pipermail/u-boot/2020-March/403650.html Ref: https://lists.denx.de/pipermail/u-boot/2019-December/393556.html Cc: Harald Seiler Cc: Tom Rini Cc: Michal Simek Petr Štetiar (3): Kconfig: add config options for automatic builds tools: add Dust based .its file templating sunxi: replace .its file generator with Dust template Kconfig | 17 +- Makefile | 8 + board/sunxi/mksunxi_fit_atf.sh | 87 - board/sunxi/u-boot-its.mk | 19 + board/sunxi/u-boot.its.dust | 45 + include/u-boot-its.mk | 37 + tools/ashes/ashes.py | 2723 ++++++++++++++++++++++++++++++++ 7 files changed, 2848 insertions(+), 88 deletions(-) delete mode 100755 board/sunxi/mksunxi_fit_atf.sh create mode 100644 board/sunxi/u-boot-its.mk create mode 100644 board/sunxi/u-boot.its.dust create mode 100644 include/u-boot-its.mk create mode 100755 tools/ashes/ashes.py