From patchwork Fri Oct 3 22:08:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 396498 X-Patchwork-Delegate: trini@ti.com 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 94A2D140174 for ; Sat, 4 Oct 2014 17:09:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 183D3A7428; Sat, 4 Oct 2014 09:08:19 +0200 (CEST) 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 boOifybY4e-B; Sat, 4 Oct 2014 09:08:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5C76FA742A; Sat, 4 Oct 2014 09:08:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2843E4B5F5 for ; Sat, 4 Oct 2014 00:15:46 +0200 (CEST) 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 2P0cRvGcpFPl for ; Sat, 4 Oct 2014 00:15:46 +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 cascadia.debian.net (cascadia.debian.net [173.255.214.101]) by theia.denx.de (Postfix) with ESMTP id 145334B5FD for ; Sat, 4 Oct 2014 00:15:44 +0200 (CEST) Received: from localhost (71-34-72-103.ptld.qwest.net [71.34.72.103]) (Authenticated sender: vagrant@aikidev.net) by cascadia.debian.net (Postfix) with ESMTPSA id 811EC3F36A; Fri, 3 Oct 2014 15:09:12 -0700 (PDT) From: Vagrant Cascadian To: u-boot@lists.denx.de Date: Fri, 3 Oct 2014 15:08:38 -0700 Message-Id: <1412374123-6787-3-git-send-email-vagrant@debian.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1412374123-6787-1-git-send-email-vagrant@debian.org> References: <1412374123-6787-1-git-send-email-vagrant@debian.org> X-Mailman-Approved-At: Sat, 04 Oct 2014 09:07:48 +0200 Cc: Marek Vasut , Stephen Warren , Vagrant Cascadian , Dennis Gilmore Subject: [U-Boot] [RFC PATCH 2/7] Allow overriding boot_partitions default value by setting BOOTENV_BOOT_PARTITIONS before including config_distro_bootcmd. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 Signed-off-by: Vagrant Cascadian --- include/config_distro_bootcmd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index 5e5e5e3..a93354a 100644 --- a/include/config_distro_bootcmd.h +++ b/include/config_distro_bootcmd.h @@ -152,6 +152,10 @@ #define BOOTENV_BOOT_TARGETS \ "boot_targets=" BOOT_TARGET_DEVICES(BOOTENV_DEV_NAME) "\0" +#ifndef BOOTENV_BOOT_PARTITIONS +#define BOOTENV_BOOT_PARTITIONS "1" +#endif + #define BOOTENV_DEV(devtypeu, devtypel, instance) \ BOOTENV_DEV_##devtypeu(devtypeu, devtypel, instance) #define BOOTENV \ @@ -163,7 +167,7 @@ "boot_prefixes=/ /boot/\0" \ "boot_scripts=boot.scr.uimg boot.scr\0" \ BOOTENV_BOOT_TARGETS \ - "boot_partitions=1\0" \ + "boot_partitions="BOOTENV_BOOT_PARTITIONS"\0" \ \ "boot_extlinux=" \ "sysboot ${devtype} ${devnum}:${bootpart} any " \