summaryrefslogtreecommitdiff
path: root/tools/env
diff options
context:
space:
mode:
authorAndreas Fenkart <andreas.fenkart@digitalstrom.com>2016-03-25 14:52:19 +0100
committerTom Rini <trini@konsulko.com>2016-03-27 09:13:03 -0400
commit43cb65b7a00e4759427a6e4b8a02039e43dab5a5 (patch)
tree2abd06c9bec869b327f6b46c8020f6a4161badd0 /tools/env
parent37217f0e0ae92be4a9bba4291d669868d4a26544 (diff)
downloadu-boot-imx-43cb65b7a00e4759427a6e4b8a02039e43dab5a5.zip
u-boot-imx-43cb65b7a00e4759427a6e4b8a02039e43dab5a5.tar.gz
u-boot-imx-43cb65b7a00e4759427a6e4b8a02039e43dab5a5.tar.bz2
tools: env: bug: config structs must be defined in tools library
fw_senten/fw_printenv can be compiled as a tools library, excluding the fw_env_main object. Reported-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
Diffstat (limited to 'tools/env')
-rw-r--r--tools/env/fw_env.c4
-rw-r--r--tools/env/fw_env_main.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 5c7505c..1420ac5 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -35,6 +35,10 @@
#include "fw_env.h"
+struct common_args common_args;
+struct printenv_args printenv_args;
+struct setenv_args setenv_args;
+
#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
#define min(x, y) ({ \
diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c
index 3bec5b9..3706d8f 100644
--- a/tools/env/fw_env_main.c
+++ b/tools/env/fw_env_main.c
@@ -49,10 +49,6 @@ static struct option long_options[] = {
{NULL, 0, NULL, 0}
};
-struct common_args common_args;
-struct printenv_args printenv_args;
-struct setenv_args setenv_args;
-
void usage_printenv(void)
{