From patchwork Thu Oct 10 10:05:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 282189 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id B53832C019B for ; Thu, 10 Oct 2013 21:05:54 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7784D8B0B0; Thu, 10 Oct 2013 10:05:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ApYZ1HhvM0z0; Thu, 10 Oct 2013 10:05:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 08B498B196; Thu, 10 Oct 2013 10:05:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6C2691C1117 for ; Thu, 10 Oct 2013 10:05:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 682C48BECB for ; Thu, 10 Oct 2013 10:05:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OY9qvhuv4J5x for ; Thu, 10 Oct 2013 10:05:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by whitealder.osuosl.org (Postfix) with ESMTPS id B16D48BBFD for ; Thu, 10 Oct 2013 10:05:50 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id hq15so2290160wib.4 for ; Thu, 10 Oct 2013 03:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=zqI949JyK8b21WD78NfIKeIW02D6BIyOWLrCVDmgeGQ=; b=aGn9wyH92/JdHmvssn6sk0zG3kdwrehE5304TM35hjwMYyNCkwr23MpEZib9ZQxG72 aLuk2D5IEHiEbQ6sFBbgTYr+3r4XMBvYYKT21c4sf4LzJQz/OBTZc5KC25zgO6TPHjQj JUz+1OcMhVh9Wg14hvIetS2yqTqjKKC4O6WWmJhnXMyg3Xv63oXWV8wEGpMhG6Vvslly I03hMOxF84+9xDbTqnSUFwQ9MYGyx4ZuygsRrNkrB8M+nq/QeU3V5nA9JNQHEpTKuJVr ynHVsQ1T/RBHTKTvv11PiEqAl3yy0AXm7hlWAlVWrPFvmpponpEZ+vwkt+K1cb/2+9MV Q7JA== X-Received: by 10.180.188.202 with SMTP id gc10mr7020161wic.3.1381399549094; Thu, 10 Oct 2013 03:05:49 -0700 (PDT) Received: from localhost.localdomain (host109-150-81-167.range109-150.btcentralplus.com. [109.150.81.167]) by mx.google.com with ESMTPSA id dq11sm23855123wid.3.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Oct 2013 03:05:47 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Thu, 10 Oct 2013 11:05:45 +0100 Message-Id: <1381399545-30713-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.8.1.2 Subject: [Buildroot] [PATCH] uboot: support -p option for mkenvimage X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Simon Dawson Signed-off-by: Simon Dawson --- boot/uboot/Config.in | 6 ++++++ boot/uboot/uboot.mk | 1 + 2 files changed, 7 insertions(+) diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in index 998cda2..c341670 100644 --- a/boot/uboot/Config.in +++ b/boot/uboot/Config.in @@ -242,6 +242,12 @@ config BR2_TARGET_UBOOT_ENVIMAGE_SIZE Size of envronment, can be prefixed with 0x for hexadecimal values. +config BR2_TARGET_UBOOT_ENVIMAGE_PADDING_BYTE + string "Padding byte" + default "0xff" + help + Pad the image with the specified byte. + endif # BR2_TARGET_UBOOT_ENVIMAGE endif # BR2_TARGET_UBOOT diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index dc8e26f..77cad6a 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -117,6 +117,7 @@ define UBOOT_INSTALL_IMAGES_CMDS cp -dpf $(@D)/$(BR2_TARGET_UBOOT_SPL_NAME) $(BINARIES_DIR)/) $(if $(BR2_TARGET_UBOOT_ENVIMAGE), $(HOST_DIR)/usr/bin/mkenvimage -s $(BR2_TARGET_UBOOT_ENVIMAGE_SIZE) \ + -p $(call qstrip,$(BR2_TARGET_UBOOT_ENVIMAGE_PADDING_BYTE)) \ -o $(BINARIES_DIR)/uboot-env.bin $(BR2_TARGET_UBOOT_ENVIMAGE_SOURCE)) endef