summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-10-04 12:37:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-10-04 12:37:06 +0200
commit17c3e64578a43d73123a590ea9610c0d66119506 (patch)
tree79358b387eb36ea277fe0a9781384b4ed1ae3655 /common
parent5017152f135b9115e02e5d01e8c6ae4ab3ea4a44 (diff)
downloadbarebox-17c3e64578a43d73123a590ea9610c0d66119506.tar.gz
export functions
Diffstat (limited to 'common')
-rw-r--r--common/command.c7
-rw-r--r--common/dlmalloc.c5
-rw-r--r--common/misc.c2
3 files changed, 11 insertions, 3 deletions
diff --git a/common/command.c b/common/command.c
index 5d8577f..f3b3d36 100644
--- a/common/command.c
+++ b/common/command.c
@@ -137,6 +137,7 @@ void u_boot_cmd_usage(cmd_tbl_t *cmdtp)
}
#endif /* CONFIG_LONGHELP */
}
+EXPORT_SYMBOL(u_boot_cmd_usage);
/*
* Use puts() instead of printf() to avoid printf buffer overflow
@@ -198,7 +199,7 @@ U_BOOT_CMD_START(help)
U_BOOT_CMD_HELP(cmd_help_help)
U_BOOT_CMD_END
-#ifdef CONFIG_MODULE
+#ifdef CONFIG_MODULES
struct cmd_list {
cmd_tbl_t *cmd;
struct cmd_list *next;
@@ -237,12 +238,12 @@ cmd_tbl_t *find_cmd (const char *cmd)
cmd_tbl_t *cmdtp_temp = &__u_boot_cmd_start; /*Init value */
int len;
int n_found = 0;
-#ifdef CONFIG_MODULE
+#ifdef CONFIG_MODULES
struct cmd_list *list = cmd_list;
#endif
len = strlen (cmd);
-#ifdef CONFIG_MODULE
+#ifdef CONFIG_MODULES
while(list) {
cmdtp = list->cmd;
if (strncmp (cmd, cmdtp->name, len) == 0) {
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index a22fee5..c4df2f0 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -2149,3 +2149,8 @@ History:
structure of old version, but most details differ.)
*/
+
+EXPORT_SYMBOL(malloc);
+EXPORT_SYMBOL(free);
+EXPORT_SYMBOL(realloc);
+
diff --git a/common/misc.c b/common/misc.c
index 35fd8eb..ee11ead 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -70,6 +70,7 @@ void *sbrk (ptrdiff_t increment)
}
int errno;
+EXPORT_SYMBOL(errno);
#ifndef CONFIG_ERRNO_MESSAGES
static char errno_string[5];
@@ -151,6 +152,7 @@ const char *errno_str(void)
return errno_string;
#endif
}
+EXPORT_SYMBOL(errno_str);
void perror(const char *s)
{