From patchwork Mon Apr 2 16:34:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Sheriker X-Patchwork-Id: 894313 X-Patchwork-Delegate: blogic@openwrt.org 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.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="TIJmg+9s"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40FHpW4KqTz9ryr for ; Tue, 3 Apr 2018 02:33:23 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-ID:Date:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=awBKhAcg7M4a/FTqhzJyIgDmYV+gi7qvNfrqqZbpMks=; b=TIJmg+9sn6pNrayIlUGJZmgI7I EnePW/D2A5s9kNExG/uHvAyoiZqJTUgaaOzksJkNhoPHmc2i6U8btCTh/yOMRlICPeBWboapJg8gv I8rWIO7cInvKJNMYaU3y35GDtN8mDsa8glbQlr16UHHZ+GvpMoReVck/GWuhJdElAkzqbNv3tdGhs awNRfxj9XAbl1ai607dOUr7e968U0FLkDqBgtIkJBPidzkC8JBtaaWhHxjC7f5vV5LhH+OZMCH+lQ 661j41pxBaC1Dw3DwQqGu9EGQMLnld+K8KN6K82zw7C/G1wW3kJbFyYc4NFM7Hz6gK5nScrZMxfBB NvH/bEmA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f32OK-0002w6-1a; Mon, 02 Apr 2018 16:33:08 +0000 Received: from esa2.microchip.iphmx.com ([68.232.149.84]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f32OG-0002sI-1m for lede-dev@lists.infradead.org; Mon, 02 Apr 2018 16:33:05 +0000 X-IronPort-AV: E=Sophos;i="5.48,396,1517900400"; d="scan'208";a="12811825" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Apr 2018 09:32:52 -0700 Received: from sandeep-office.microchip.com (10.10.76.4) by chn-sv-exch04.mchp-main.com (10.10.76.105) with Microsoft SMTP Server id 14.3.352.0; Mon, 2 Apr 2018 09:32:51 -0700 From: Sandeep Sheriker Mallikarjun To: Date: Mon, 2 Apr 2018 09:34:04 -0700 Message-ID: <30355061d7c0e793241f3eae0f502ab7ae3d3aee.1522686801.git.sandeepsheriker.mallikarjun@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <53c9aeb4835571ac0fed72f2f43c76fcf75fccfc.1522686801.git.sandeepsheriker.mallikarjun@microchip.com> References: <53c9aeb4835571ac0fed72f2f43c76fcf75fccfc.1522686801.git.sandeepsheriker.mallikarjun@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180402_093304_144736_395D901C X-CRM114-Status: UNSURE ( 6.37 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [68.232.149.84 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record Subject: [LEDE-DEV] [PATCH 02/12] at91: fix sdcard create image X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org copying at91bootstrap and uboot binaries to sdcard image is done based on device name instead of dts name and this avoids creating multiple u-boot and at91bootstrap binaries. Signed-off-by: Sandeep Sheriker Mallikarjun --- target/linux/at91/image/sama5.mk | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index e51a0bc..dfc1601 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -11,13 +11,15 @@ define Build/at91-sdcard $(foreach dts,$(DEVICE_DTS), \ mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ - ::$(dts).dtb; \ - mcopy -i $@.boot \ - $(BIN_DIR)/u-boot-$(dts:at91-%=%)_mmc/u-boot.bin \ - ::u-boot.bin; \ - $(CP) $(BIN_DIR)/at91bootstrap-$(dts:at91-%=%)sd_uboot*/*.bin \ - $@.BOOT.bin; \ - mcopy -i $@.boot $@.BOOT.bin ::BOOT.bin;) + ::$(dts).dtb;) + + mcopy -i $@.boot \ + $(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \ + ::u-boot.bin + + $(CP) $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ + $@.BOOT.bin; \ + mcopy -i $@.boot $@.BOOT.bin ::BOOT.bin ./gen_at91_sdcard_img.sh \ $@.img \