From: Vagrant Cascadian Date: Fri, 3 Oct 2014 15:08:38 -0700 Subject: [U-Boot] [RFC PATCH 2/7] Allow overriding boot_partitions default value by setting BOOTENV_BOOT_PARTITIONS before including config_distro_bootcmd. In-Reply-To: <1412374123-6787-1-git-send-email-vagrant@debian.org> References: <1412374123-6787-1-git-send-email-vagrant@debian.org> Message-ID: <1412374123-6787-3-git-send-email-vagrant@debian.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@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 " \ -- 2.1.0