From patchwork Fri May 4 17:27:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Sheriker X-Patchwork-Id: 908906 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="Lo/QyLI7"; 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 40czXp0Nhxz9s35 for ; Sat, 5 May 2018 03:29:46 +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=5bXiPYtzO86NiV3q3oKKVAGwSTgALoAsopwp6H3gsj0=; b=Lo/QyLI7cmf0gtRm28aTYPPS4O 32FkSzTSeWVxwZrTng5ce+Pe4EtakYAHp2rt7iuUgY70USbxKAUkQ1xgKsuJLzGD2S0sUW3Dxmj51 4eBTsZJ7vf4zo9vGKwKP+xOU+tB/HIwuO4YbDVlNDCq6tpr/+HyIHEAGr2kHxV/UhNQDQf54QX3yv D1BsJzxOlwYryBTjAbv7kquuGzHTErTmkpVlnc300KmnQz97AhKRBJ9qyDxSfgvwpeB0kS2Lgwuwy ZDWkvdEMRLPZltSc7q/1cF2SQErRrU65cl3oEkD+/VIxn2xqcCE3xO9GGdE30MA4Xqy3Fwo9YObnR KCjou+ow==; 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 1fEeWc-0005W5-BX; Fri, 04 May 2018 17:29:42 +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 1fEeVa-00052E-U1 for lede-dev@lists.infradead.org; Fri, 04 May 2018 17:28:41 +0000 X-IronPort-AV: E=Sophos;i="5.49,363,1520924400"; d="scan'208";a="13809128" 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; 04 May 2018 10:28:25 -0700 Received: from sandeep-office.microchip.com (10.10.76.4) by chn-sv-exch02.mchp-main.com (10.10.76.38) with Microsoft SMTP Server id 14.3.352.0; Fri, 4 May 2018 10:28:25 -0700 From: Sandeep Sheriker Mallikarjun To: Date: Fri, 4 May 2018 10:27:44 -0700 Message-ID: <67a4a1d8efbd7b3a4e7150fffca35450d61a2efc.1525453826.git.sandeepsheriker.mallikarjun@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180504_102839_023729_E4B33FE3 X-CRM114-Status: UNSURE ( 5.64 ) 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 v2 02/10] 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 5b518c9..b875888 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 \