tools: env: bug: config structs must be defined in tools library
authorAndreas Fenkart <andreas.fenkart@digitalstrom.com>
Fri, 25 Mar 2016 13:52:19 +0000 (14:52 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:13:03 +0000 (09:13 -0400)
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>
tools/env/fw_env.c
tools/env/fw_env_main.c

index 5c7505c0fdcc7f20ac2d1b30e6c257a663797758..1420ac58a35fe8ebfbd726b6bc22e26675ba9a7c 100644 (file)
 
 #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) ({                           \
index 3bec5b970e7826eae232023488b2c62dec9af15f..3706d8f1a619cfba20b1c83e5ecb8f1d40d8265c 100644 (file)
@@ -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)
 {