From patchwork Mon Feb 9 15:17:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 437962 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 BAE7B140142 for ; Tue, 10 Feb 2015 02:17:44 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 040E94A036; Mon, 9 Feb 2015 16:17:41 +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 nAuTNM7BTEHP; Mon, 9 Feb 2015 16:17:40 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C422A4A02A; Mon, 9 Feb 2015 16:17:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 301F54A02A for ; Mon, 9 Feb 2015 16:17:23 +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 xN_0-1A0on6k for ; Mon, 9 Feb 2015 16:17:22 +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-yk0-f177.google.com (mail-yk0-f177.google.com [209.85.160.177]) by theia.denx.de (Postfix) with ESMTPS id 62B304A029 for ; Mon, 9 Feb 2015 16:17:18 +0100 (CET) Received: by mail-yk0-f177.google.com with SMTP id 19so11552536ykq.8 for ; Mon, 09 Feb 2015 07:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id; bh=vJpnmCFVzfIw75SS/qvsgPi1Jnlf+JVjWKQOZu/KSpY=; b=izdg5S+AkP5riaZvsLWiQSRZ/RmbIrXNwDFqRY8oNfDEQKNxLJ3qzRsH6GN4TBQyI7 qkYn3/L/HJoKueqOCB3kY3ht4IdxulxK+bGTuJ+JSWX2NqFQbqP4uXif061HUzuXYNK9 nfu4KN1VdQbdKLYpCMAXWuTo0+nBBgqCJEHNALDISY9ICmHVPjvj+prj5slBvpujlbaf QEIVTgPHSlGjw7Ds3kJJXPNp5k4yilUBeKjXqLN7tyUIIWqROwecJzzPt3jDckuZUReV vY/RzL9gP9YeRtfsuEMrbuJB3oeqqzyjExx55dilROzoqHreOBhBDSC59OLnFxqzZCFI QKog== X-Received: by 10.170.119.19 with SMTP id l19mr6948048ykb.27.1423495036368; Mon, 09 Feb 2015 07:17:16 -0800 (PST) Received: from localhost.localdomain (cpe-174-106-048-186.ec.res.rr.com. [174.106.48.186]) by mx.google.com with ESMTPSA id a61sm7714154yha.13.2015.02.09.07.17.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Feb 2015 07:17:15 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Mon, 9 Feb 2015 10:17:14 -0500 Message-Id: <1423495034-23302-1-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 Subject: [U-Boot] [PATCH] kwbimage: Make the Makefile pass in CONFIG_SYS_SPI_U_BOOT_OFFS 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" We can't use config.h directly as some platforms include headers that aren't safe to use in normal Linux userland. Signed-off-by: Tom Rini --- tools/Makefile | 4 ++++ tools/kwbimage.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 6e1ce79..e4b23eb 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -115,6 +115,10 @@ ifdef CONFIG_FIT_SIGNATURE HOST_EXTRACFLAGS += -DCONFIG_FIT_SIGNATURE endif +ifdef CONFIG_SYS_SPI_U_BOOT_OFFS +HOSTCFLAGS_kwbimage.o += -DCONFIG_SYS_SPI_U_BOOT_OFFS=$(CONFIG_SYS_SPI_U_BOOT_OFFS) +endif + # MXSImage needs LibSSL ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),) HOSTLOADLIBES_mkimage += -lssl -lcrypto diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 28ce1e4..de5c808 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -16,7 +16,6 @@ #include #include #include "kwbimage.h" -#include #define ALIGN_SUP(x, a) (((x) + (a - 1)) & ~(a - 1))