Skip to content
Snippets Groups Projects
Commit 43cb65b7 authored by Andreas Fenkart's avatar Andreas Fenkart Committed by Tom Rini
Browse files

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: default avatarStefano Babic <sbabic@denx.de>
Signed-off-by: default avatarAndreas Fenkart <andreas.fenkart@digitalstrom.com>
parent 37217f0e
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
#include "fw_env.h" #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 DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
#define min(x, y) ({ \ #define min(x, y) ({ \
......
...@@ -49,10 +49,6 @@ static struct option long_options[] = { ...@@ -49,10 +49,6 @@ static struct option long_options[] = {
{NULL, 0, NULL, 0} {NULL, 0, NULL, 0}
}; };
struct common_args common_args;
struct printenv_args printenv_args;
struct setenv_args setenv_args;
void usage_printenv(void) void usage_printenv(void)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment