summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Krause <Martin.Krause@tqs.de>2006-12-12 14:26:01 +0100
committerWolfgang Denk <wd@denx.de>2007-08-06 00:45:40 +0200
commit8092fef4c29b395958bb649647da7e3775731517 (patch)
treeb9034385a5f98da51f62d556ff0b0696be32cfe8
parent63cec5814fab5d2b1c86982327433807a5ac0249 (diff)
Add functions to list of exported functions
Additionally export the following fuctions (to make trab_config build again): - simple_strtol() - strcmp() Also bump the ABI version to reflect this change Signed-off-by: Martin Krause <martin.krause@tqs.de>
-rw-r--r--board/trab/Makefile1
-rw-r--r--common/exports.c2
-rw-r--r--include/_exports.h2
-rw-r--r--include/exports.h4
4 files changed, 7 insertions, 2 deletions
diff --git a/board/trab/Makefile b/board/trab/Makefile
index 868ca4281f1..fbe1c3640fc 100644
--- a/board/trab/Makefile
+++ b/board/trab/Makefile
@@ -50,7 +50,6 @@ $(LIB): $(obj).depend $(OBJS) $(SOBJS)
$(obj)trab_fkt.srec: $(OBJS_FKT) $(LIB)
$(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e trab_fkt $^ $(LIB) \
-L$(obj)../../examples -lstubs \
- -L$(obj)../../lib_generic -lgeneric \
-L$(gcclibdir) -lgcc
$(OBJCOPY) -O srec $(<:.o=) $@
diff --git a/common/exports.c b/common/exports.c
index a579554ab52..ec4656bfbd1 100644
--- a/common/exports.c
+++ b/common/exports.c
@@ -28,6 +28,8 @@ void jumptable_init (void)
gd->jt[XF_get_timer] = (void *) get_timer;
gd->jt[XF_simple_strtoul] = (void *) simple_strtoul;
gd->jt[XF_udelay] = (void *) udelay;
+ gd->jt[XF_simple_strtol] = (void *) simple_strtol;
+ gd->jt[XF_strcmp] = (void *) strcmp;
#if defined(CONFIG_I386) || defined(CONFIG_PPC)
gd->jt[XF_install_hdlr] = (void *) irq_install_handler;
gd->jt[XF_free_hdlr] = (void *) irq_free_handler;
diff --git a/include/_exports.h b/include/_exports.h
index a0fbf2aba36..da6e088163e 100644
--- a/include/_exports.h
+++ b/include/_exports.h
@@ -15,6 +15,8 @@ EXPORT_FUNC(do_reset)
EXPORT_FUNC(getenv)
EXPORT_FUNC(setenv)
EXPORT_FUNC(simple_strtoul)
+EXPORT_FUNC(simple_strtol)
+EXPORT_FUNC(strcmp)
#if defined(CONFIG_CMD_I2C)
EXPORT_FUNC(i2c_write)
EXPORT_FUNC(i2c_read)
diff --git a/include/exports.h b/include/exports.h
index 704b1330b89..0516da93749 100644
--- a/include/exports.h
+++ b/include/exports.h
@@ -23,6 +23,8 @@ void do_reset (void);
unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
char *getenv (char *name);
void setenv (char *varname, char *varvalue);
+long simple_strtol(const char *cp,char **endp,unsigned int base);
+int strcmp(const char * cs,const char * ct);
#if defined(CONFIG_CMD_I2C)
int i2c_write (uchar, uint, int , uchar* , int);
int i2c_read (uchar, uint, int , uchar* , int);
@@ -40,7 +42,7 @@ enum {
XF_MAX
};
-#define XF_VERSION 3
+#define XF_VERSION 4
#if defined(CONFIG_I386)
extern gd_t *global_data;