]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
config_cmd_default.h: Add 'env exists' command
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 25 Feb 2015 22:23:51 +0000 (23:23 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 25 Mar 2015 16:15:18 +0000 (12:15 -0400)
env exists allows scripts to query whether an environment variable
exists. Enable by default as it adds only a trivial amount of code and
can be useful in scripts.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
include/config_cmd_default.h

index 73c9544ea0d72e275fe7eb56a50f727f7fed69fe..e79a13be8bafcd68983435504d07a3d9d0fe261a 100644 (file)
@@ -21,6 +21,7 @@
 #define CONFIG_CMD_CONSOLE     /* coninfo                      */
 #define CONFIG_CMD_ECHO                /* echo arguments               */
 #define CONFIG_CMD_EDITENV     /* editenv                      */
+#define CONFIG_CMD_ENV_EXISTS  /* query whether env variables exists */
 #define CONFIG_CMD_FPGA                /* FPGA configuration Support   */
 #define CONFIG_CMD_IMI         /* iminfo                       */
 #define CONFIG_CMD_ITEST       /* Integer (and string) test    */