diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2014-12-17 11:58:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-02-12 10:58:08 +0100 |
commit | b2e8ce4b7607b3c69d716b6b0a03fc7f22368c8b (patch) | |
tree | 48cfa40d0c3a25b58b0ef2ab05cdf594ed7bab7a /common | |
parent | d7dc46d5d6f2c80d1719ef877df728457790ac45 (diff) | |
download | barebox-b2e8ce4b7607b3c69d716b6b0a03fc7f22368c8b.tar.gz barebox-b2e8ce4b7607b3c69d716b6b0a03fc7f22368c8b.tar.xz |
imd: provide dummy imd_command_setenv
If CONFIG_CMD_IMD is not set there is no imd_command_setenv in the
barebox binary that can be linked to. Although the whole imd infrastructure
will be removed by the linker later in the build process as soon as it
figures out that nothing inside barebox is using it, we still have to
provide a dummy function to keep the build going.
Fixes:
In function `imd_command': undefined reference to `imd_command_setenv'
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/imd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/imd.c b/common/imd.c index 2c837d6f25..f84e34473e 100644 --- a/common/imd.c +++ b/common/imd.c @@ -22,6 +22,13 @@ #include <getopt.h> #include <malloc.h> #include <fs.h> + +#ifndef CONFIG_CMD_IMD +int imd_command_setenv(const char *variable_name, const char *value) +{ + return -ENOSYS; +} +#endif #endif /* |