This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
libc_strings when memalloc active
- From: Andrew Lunn <andrew at lunn dot ch>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Sun, 13 Apr 2008 20:07:42 +0200
- Subject: libc_strings when memalloc active
Hi folks
This patch changes some templates such that when memalloc is enabled
libc_string is also included. The dlmalloc code was changed to use
memmove not memcpy, and so needs an implementation of memmove.
Andrew
? packages/templates/net
Index: packages/templates/kernel/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/templates/kernel/ChangeLog,v
retrieving revision 1.5
diff -u -r1.5 ChangeLog
--- packages/templates/kernel/ChangeLog 23 May 2002 23:08:48 -0000 1.5
+++ packages/templates/kernel/ChangeLog 8 Apr 2008 11:09:16 -0000
@@ -1,3 +1,7 @@
+2008-04-08 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * current.ect: Add libc_string which memalloc needs.
+
2000-07-24 Jonathan Larmour <jlarmour@redhat.co.uk>
* current.ect: Fix up after isoinfra and memalloc additions
Index: packages/templates/kernel/current.ect
===================================================================
RCS file: /cvs/ecos/ecos/packages/templates/kernel/current.ect,v
retrieving revision 1.3
diff -u -r1.3 current.ect
--- packages/templates/kernel/current.ect 25 Aug 2000 17:33:50 -0000 1.3
+++ packages/templates/kernel/current.ect 8 Apr 2008 11:09:16 -0000
@@ -16,6 +16,7 @@
package CYGPKG_KERNEL current ;
package CYGPKG_ERROR current ;
package CYGPKG_MEMALLOC current ;
+ package CYGPKG_LIBC_STRING current ;
package CYGPKG_ISOINFRA current ;
};
@@ -30,3 +31,27 @@
cdl_option CYGBLD_ISO_STRERROR_HEADER {
inferred_value 1 <cyg/error/strerror.h>
};
+
+cdl_option CYGBLD_ISO_STRING_BSD_FUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/bsdstring.h>
+};
+
+cdl_option CYGFUN_LIBC_STRING_BSD_FUNCS {
+ inferred_value 0
+};
+
+cdl_option CYGBLD_ISO_STRING_MEMFUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+
+cdl_option CYGBLD_ISO_STRING_STRFUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+
+cdl_option CYGBLD_ISO_STRTOK_R_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+
+cdl_option CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
Index: packages/templates/lwip_eth/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/templates/lwip_eth/ChangeLog,v
retrieving revision 1.1
diff -u -r1.1 ChangeLog
--- packages/templates/lwip_eth/ChangeLog 4 May 2004 12:52:48 -0000 1.1
+++ packages/templates/lwip_eth/ChangeLog 8 Apr 2008 11:09:16 -0000
@@ -1,3 +1,7 @@
+2008-04-08 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * current.cdl: Add LIBC_STRING which MEMALLOC now needs.
+
2004-05-04 Jani Monoses <jani@iv.ro>
* current.ect: Create new configuration for lwIP/ethernet
Index: packages/templates/lwip_eth/current.ect
===================================================================
RCS file: /cvs/ecos/ecos/packages/templates/lwip_eth/current.ect,v
retrieving revision 1.1
diff -u -r1.1 current.ect
--- packages/templates/lwip_eth/current.ect 4 May 2004 12:52:48 -0000 1.1
+++ packages/templates/lwip_eth/current.ect 8 Apr 2008 11:09:17 -0000
@@ -14,6 +14,7 @@
package CYGPKG_INFRA current ;
package CYGPKG_KERNEL current ;
package CYGPKG_MEMALLOC current ;
+ package CYGPKG_LIBC_STRING current ;
package CYGPKG_ERROR current ;
package CYGPKG_ISOINFRA current ;
package CYGPKG_NET_LWIP current ;
@@ -36,3 +37,26 @@
inferred_value 1 <cyg/error/strerror.h>
};
+cdl_option CYGBLD_ISO_STRING_BSD_FUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/bsdstring.h>
+};
+
+cdl_option CYGFUN_LIBC_STRING_BSD_FUNCS {
+ inferred_value 0
+};
+
+cdl_option CYGBLD_ISO_STRING_MEMFUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+
+cdl_option CYGBLD_ISO_STRING_STRFUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+
+cdl_option CYGBLD_ISO_STRTOK_R_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+
+cdl_option CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
Index: packages/templates/lwip_ppp/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/templates/lwip_ppp/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- packages/templates/lwip_ppp/ChangeLog 29 Mar 2006 10:30:56 -0000 1.2
+++ packages/templates/lwip_ppp/ChangeLog 8 Apr 2008 11:09:17 -0000
@@ -1,3 +1,7 @@
+2008-04-08 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * current.cdl: Add LIBC_STRING which MEMALLOC now needs.
+
2006-03-22 Uwe Kindler <uwe_kindler@web.de>
* current.ect: Fixed configuration options to match new names of
Index: packages/templates/lwip_ppp/current.ect
===================================================================
RCS file: /cvs/ecos/ecos/packages/templates/lwip_ppp/current.ect,v
retrieving revision 1.2
diff -u -r1.2 current.ect
--- packages/templates/lwip_ppp/current.ect 29 Mar 2006 10:30:56 -0000 1.2
+++ packages/templates/lwip_ppp/current.ect 8 Apr 2008 11:09:17 -0000
@@ -52,3 +52,28 @@
cdl_option CYGDAT_LWIP_PPP_DEV {
user_value "\"/dev/ser1\""
};
+
+cdl_option CYGBLD_ISO_STRING_BSD_FUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/bsdstring.h>
+};
+
+cdl_option CYGFUN_LIBC_STRING_BSD_FUNCS {
+ inferred_value 0
+};
+
+cdl_option CYGBLD_ISO_STRING_MEMFUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+
+cdl_option CYGBLD_ISO_STRING_STRFUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+
+cdl_option CYGBLD_ISO_STRTOK_R_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+
+cdl_option CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER {
+ inferred_value 1 <cyg/libc/string/string.h>
+};
+