Commit 43cb65b7 authored by Andreas Fenkart's avatar Andreas Fenkart Committed by Tom Rini

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: 's avatarStefano Babic <sbabic@denx.de>
Signed-off-by: 's avatarAndreas Fenkart <andreas.fenkart@digitalstrom.com>
parent 37217f0e
......@@ -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) ({ \
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment