From patchwork Sun Feb 17 04:58:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Derald D. Woods" X-Patchwork-Id: 1043598 X-Patchwork-Delegate: eugen.hristev@microchip.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dgawfNE6"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 442FCd3PwGz9s3l for ; Sun, 17 Feb 2019 15:59:20 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 6E0B3C21E79; Sun, 17 Feb 2019 04:59:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 44EB7C21C29; Sun, 17 Feb 2019 04:59:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 58443C21C29; Sun, 17 Feb 2019 04:59:10 +0000 (UTC) Received: from mail-it1-f196.google.com (mail-it1-f196.google.com [209.85.166.196]) by lists.denx.de (Postfix) with ESMTPS id 1B9B2C21C27 for ; Sun, 17 Feb 2019 04:59:08 +0000 (UTC) Received: by mail-it1-f196.google.com with SMTP id y184so33845030itc.1 for ; Sat, 16 Feb 2019 20:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4SVF98c3ybxBMDlmENerS1BdjzQ1dR9fOcRAk5dARJg=; b=dgawfNE6k33bzViQNzrywk0luXWe0xIGSfJJhNFaLbx7rpsjvEJWXgquXbtQuSpC3/ +6r03kIoLbnHMTatxA8UgFT9UcKnFPsQga1r0h0Bv64SUHxzPoenu4Ccp/5Orufudlwq vipHusX2kTHzW7niDBJrFQFe+L+zzXk2zfcLo1OQJN3YKZfwTUk6fK31cW9cW17JPeXh nVDQst7s/5v2H5P8CFmXZhEf05DGA0Ssss9lUrVpV/i8CWmhuKTyo7xc2tnUeIZeTSlK wnuGekU2N6oEWJBIR6xX+2glTLZrhgzm1DldUdnHU3oWXVdsBiIQfnwndIvEMrOaGJ3E mK5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4SVF98c3ybxBMDlmENerS1BdjzQ1dR9fOcRAk5dARJg=; b=bRGlglbf8TS4IZFP63/47iFOEjyUzJQeMn0rVYxRUXvxZu6qaZxftMT9RlaxUUvBOt zJpTPd+VZuoEa6WFFVJSLiyxUZwi41gr5EKQZ0s9XkzxRyddrdHyNJH0z+C0xJvZllNc UAmoBKL5NA3Q9vbRwlOE+iL9kUlilyf1V3FHZiP8SlaHZC+j95OaZMJcsGHApqa/VEwf 6MKS4ZWLCKfGWAutt42JZB4XLPxgiOzIZrJmFQiLAMfv6pnp9zrAbHNrMBf2s6gI1dRj hF5JWxV5QoMaciAM6WkIS+pbaJ8GBMTj6vf1Sv4/4c5kMSQe23ibVnmdZPo3qUDOS8dn 1f5Q== X-Gm-Message-State: AHQUAuY6ALs+jOmAxgzUD9yaS4k7Y/8ML6JDDmC5z0yxW27yJc87ZnMm K4fqo0sWdEOQ3UCzrHastB+ucGmg X-Google-Smtp-Source: AHgI3IYIKBgNm2g/U9p52f4/kpeT4v/jD0kwn6bjz/eaoQb1ZdmI0T6ZZ23j6+QVaxtedzs+PiAIuA== X-Received: by 2002:a6b:7418:: with SMTP id s24mr10136717iog.61.1550379546351; Sat, 16 Feb 2019 20:59:06 -0800 (PST) Received: from ethiopia.woodsts.org (c-73-176-50-185.hsd1.il.comcast.net. [73.176.50.185]) by smtp.gmail.com with ESMTPSA id b192sm4897510itb.12.2019.02.16.20.59.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Feb 2019 20:59:05 -0800 (PST) From: "Derald D. Woods" To: u-boot@lists.denx.de Date: Sat, 16 Feb 2019 22:58:41 -0600 Message-Id: <20190217045841.15931-1-woods.technical@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: trini@konsulko.com Subject: [U-Boot] [PATCH] ARM: at91: Apply PMECC header for NAND_BOOT only X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This commit guards against applying the PMECC header in a non-NAND_BOOT scenario. This a modified version of a previous patch found here: https://patchwork.ozlabs.org/patch/1009885/ Now that SPL_GENERATE_ATMEL_PMECC_HEADER has been converted to Kconfig, this provides an additional guard for building and using the 'atmel_pmecc_params' tool. Signed-off-by: Derald D. Woods --- scripts/Makefile.spl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 9d5921606e..8732479f39 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -177,10 +177,12 @@ ifeq ($(CONFIG_SYS_SOC),"at91") MKIMAGEFLAGS_boot.bin = -T atmelimage ifeq ($(CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER),y) +ifeq ($(CONFIG_NAND_BOOT),y) MKIMAGEFLAGS_boot.bin += -n $(shell $(obj)/../tools/atmel_pmecc_params) boot.bin: $(obj)/../tools/atmel_pmecc_params endif +endif boot.bin: $(obj)/u-boot-spl.bin FORCE $(call if_changed,mkimage)