From patchwork Thu Feb 25 13:58:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 588116 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id AFB341401E7 for ; Fri, 26 Feb 2016 00:58:41 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b=iT8LQMIg; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5C77EA75CE; Thu, 25 Feb 2016 14:58:39 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YvNwACLWHn5t; Thu, 25 Feb 2016 14:58:39 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B472AA751E; Thu, 25 Feb 2016 14:58:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3E2E4A751E for ; Thu, 25 Feb 2016 14:58:35 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kIjrfRJ0ddWP for ; Thu, 25 Feb 2016 14:58:35 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by theia.denx.de (Postfix) with ESMTPS id 1129DA74C5 for ; Thu, 25 Feb 2016 14:58:31 +0100 (CET) Received: by mail-wm0-f52.google.com with SMTP id a4so28717160wme.1 for ; Thu, 25 Feb 2016 05:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=gLCNaqqgKvyk4647xqUdUzXK2jMHBFxeug50p6PzuNI=; b=iT8LQMIgO6bBM/quTOCEfZxQud/khCk/UNVpxy4GsCaHWm8Cm/MjkHPzMxV1Odqz4x r8A50m0C8Nbma+XvYREiwlLVnzAcFn3V9OyirPRzzc5M+RAu19YhVAbZEVlfYd5ctvso EPWyIhkB3/wWXsC3K/0I0eQDFFdLlh7XWNDihjdagcg8kmRydkF4Ll53Gy0xBUTR5kjA 5LLSK2jL238Dvh4SjbqAsdkS+zgMh2mZzCtXeULxrO/bjVSJ/6s8Bj8LgO7v0IaV7Bsl mrzYkzKFs8v+w5OIlSped2pzi1sR+olcEPELkJAyAhmn7+kjY7/W8EUUxYbCgipgoI9R k/lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=gLCNaqqgKvyk4647xqUdUzXK2jMHBFxeug50p6PzuNI=; b=IIOBOAFYvIQin52ar7lOWmmBqP9ArNGVJ5pXnrIJxZ2JBMAPwrpyEUl7fr/iIO0pmp Xd1n5fMguLgpglFLQY6PrOQSHlYYnK2bChf63IJ1mqWKYatVMOiFIZyq2f5WO1TMj3XK 7w53YXdSAcf2wG4+2cZIqjPi1EK7+OllKbeLZNbC7FRJsp6uVoc55uJCmyke6A76wpHt CSVOn5XsPLoymkC7SyzRmszjAuh5afxCwNPnQs4G6vITulJV0OcGpiUl+lR+vOE1Yh/B HOQnXicEEeSxgHiFESHWI6B9EvP6bNQAyYjnMhe0XJGNEhWGbpJL/pM6Lo8C1XiatOgj 0F1w== X-Gm-Message-State: AG10YOQtxtnxpgSH20FZ9pg69ShTCejgM5+bdXDc2ENAsWuPsq7ev9biFVnlosW+5yBnqA== X-Received: by 10.194.203.5 with SMTP id km5mr50778101wjc.172.1456408706249; Thu, 25 Feb 2016 05:58:26 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id 8sm3359079wmk.13.2016.02.25.05.58.25 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 25 Feb 2016 05:58:25 -0800 (PST) From: Michal Simek To: Heiko Schocher , Stephen Warren , Tom Rini Date: Thu, 25 Feb 2016 14:58:24 +0100 Message-Id: <7115439180f17f4ded691898c10a348682b96d87.1456408702.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v3] test/py: Add option to skip SPL signature checking X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Provide user option to skip SPL signature verification for cases where u-boot is build with SPL support but full U-Boot is also verified without SPL. If you want to support this feature please add env__spl_skipped = True to your boardenv configuration file. For example Xilinx Zynq is using this feature where the same U-Boot binary is checked with SPL and without SPL(with FSBL). Signed-off-by: Michal Simek Acked-by: Stephen Warren --- Changes in v3: - Remove Stephen's lines - Fix my misundersting what Stephen was asking for. Use diferent variable name but use origin env__spl_skipped board variable name which was renamed in v2. Changes in v2: - nits in commit message - Rename to env_spl_skipped from env__spl_skipped test/py/u_boot_console_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index d6502c6e64cb..318e28824cc2 100644 --- a/test/py/u_boot_console_base.py +++ b/test/py/u_boot_console_base.py @@ -307,7 +307,9 @@ class ConsoleBase(object): config_spl = bcfg.get('config_spl', 'n') == 'y' config_spl_serial_support = bcfg.get('config_spl_serial_support', 'n') == 'y' - if config_spl and config_spl_serial_support: + env_spl_skipped = self.config.env.get('env__spl_skipped', + False) + if config_spl and config_spl_serial_support and not env_spl_skipped: m = self.p.expect([pattern_u_boot_spl_signon] + self.bad_patterns) if m != 0: