From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZFFlz-0001FX-Cg for barebox@lists.infradead.org; Wed, 15 Jul 2015 06:02:27 +0000 From: Sascha Hauer Date: Wed, 15 Jul 2015 08:02:02 +0200 Message-Id: <1436940123-25118-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/2] scripts: imx-image: Do not pad image To: Barebox List We have to pad the load size to the next 4k boundary, but we don't need to pad the image itself since we do not care what data the ROM actually loads. Signed-off-by: Sascha Hauer --- scripts/imx/imx-image.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index e765c1d..a588882 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx-image.c @@ -823,18 +823,6 @@ int main(int argc, char *argv[]) image_size -= now; } - /* pad until next 4k boundary */ - now = 4096 - now; - if (now) { - memset(buf, 0x5a, now); - - ret = xwrite(outfd, buf, now); - if (ret) { - perror("write"); - exit(1); - } - } - ret = close(outfd); if (ret) { perror("close"); -- 2.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox