From patchwork Sat Aug 18 17:25:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 178475 X-Patchwork-Delegate: sbabic@denx.de 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 181542C008E for ; Sun, 19 Aug 2012 03:23:11 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A4B5028434; Sat, 18 Aug 2012 19:23:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 3ud2daArsE+y; Sat, 18 Aug 2012 19:23:08 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7D6A628436; Sat, 18 Aug 2012 19:23:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CC92B28408 for ; Sat, 18 Aug 2012 19:23:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 qA3ZWlT1-8Br for ; Sat, 18 Aug 2012 19:23:03 +0200 (CEST) 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-gh0-f172.google.com (mail-gh0-f172.google.com [209.85.160.172]) by theia.denx.de (Postfix) with ESMTPS id 203CE283F1 for ; Sat, 18 Aug 2012 19:23:01 +0200 (CEST) Received: by ghbg16 with SMTP id g16so5117367ghb.3 for ; Sat, 18 Aug 2012 10:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=ROJfQjdfJuAlHcwdSt6PbuLL3MioCnpCr7y8iS+7rPU=; b=NpUs+2ycFswHWTSmZESXb7bCYzxYixj/DTaaIAGtsgdtrsn7Rm920+iIHd1T1vhBwa 8MLD88xcjHY4zvcNl7/EL9DS5UDa1suqUHnw+KjTU3bbbRaksFAAH92JDe6Zgva3l8g4 Z/VPIJECg9dadU9aQnrTgvxRImK80Mf9+aU8VonxFVpIyQ15biyKm5u8mmueHQfFLXSd KSKYdrl9O5+zALku/lMsjLoKZbBab8eHG/W691h7OIfFacP3lv7yQC1Q6Ng2JBsO4+HB Hkzg3uQL4uvnzIUWti/kd+MqTnkITEXB/YpHCe6JIG0lNwbamMLI0JhlBpfwnqDL8EVR vQmA== Received: by 10.236.144.165 with SMTP id n25mr14317421yhj.61.1345310580216; Sat, 18 Aug 2012 10:23:00 -0700 (PDT) Received: from micro.lab.ossystems.com.br ([177.100.163.15]) by mx.google.com with ESMTPS id c18sm551565anm.20.2012.08.18.10.22.56 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 18 Aug 2012 10:22:58 -0700 (PDT) From: Otavio Salvador To: U-Boot Mailing List Date: Sat, 18 Aug 2012 14:25:25 -0300 Message-Id: <1345310726-21567-1-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.7.10.4 Cc: Fabio Estevam , Marek Vasut Subject: [U-Boot] [PATCH v2 1/2] MX28: config: Allow different target generation in elftosb call X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The elftosb call needs to use a target param specific for i.MX28. This patch allow for later addition of i.MX233. Signed-off-by: Otavio Salvador Acked-by: Marek Vasut --- Changes in v2: - fix Makefile according - move u-boot.bd to u-boot-imx28.bd Makefile | 5 ++++- arch/arm/cpu/arm926ejs/mxs/{u-boot.bd => u-boot-imx28.bd} | 0 2 files changed, 4 insertions(+), 1 deletion(-) rename arch/arm/cpu/arm926ejs/mxs/{u-boot.bd => u-boot-imx28.bd} (100%) diff --git a/arch/arm/cpu/arm926ejs/mxs/u-boot.bd b/arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd similarity index 100% rename from arch/arm/cpu/arm926ejs/mxs/u-boot.bd rename to arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd diff --git a/Makefile b/Makefile index f6471e2..1df4c1d 100644 --- a/Makefile +++ b/Makefile @@ -452,8 +452,11 @@ $(obj)u-boot.ais: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin cat $(obj)spl/u-boot-spl-pad.ais $(obj)u-boot.bin > \ $(obj)u-boot.ais +# Specify the target for use in elftosb call +ELFTOSB_TARGET-$(CONFIG_MX28) = imx28 + $(obj)u-boot.sb: $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin - elftosb -zdf imx28 -c $(TOPDIR)/$(CPUDIR)/$(SOC)/u-boot.bd \ + elftosb -zdf $(ELFTOSB_TARGET-y) -c $(TOPDIR)/$(CPUDIR)/$(SOC)/u-boot-$(ELFTOSB_TARGET-y).bd \ -o $(obj)u-boot.sb # On x600 (SPEAr600) U-Boot is appended to U-Boot SPL.