Ported sed
Michael Kurz
michi.kurz at googlemail.com
Wed Dec 20 02:23:04 CET 2006
Hi,
I ported sed to dslinux.
I know that sed is in busybox available too, but i read about some problems
with that implementation, and IIRC using the busybox sed would cost some of
the internal ram.
The original source is available here:
ftp://ftp.gnu.org/gnu/sed/sed-4.1.5.tar.gz
The attached files:
sed.diff - Patch for SED
user-Makefile.diff - Adding sed in user/Makefile
config.diff - Adding sed in config/
vendor.diff - Adding sed in vendor/
I only set the config-option for sed in the RAM build, because thats the
only one i can test.
--
michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.dslinux.in-berlin.de/pipermail/dslinux-devel-dslinux.in-berlin.de/attachments/20061220/ff7cd486/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sed.diff.gz
Type: application/x-gzip
Size: 63120 bytes
Desc: not available
Url : http://mailman.dslinux.in-berlin.de/pipermail/dslinux-devel-dslinux.in-berlin.de/attachments/20061220/ff7cd486/attachment.bin
-------------- next part --------------
Index: config/Configure.help
===================================================================
RCS file: /cvsroot/dslinux/dslinux/config/Configure.help,v
retrieving revision 1.21
diff -u -r1.21 Configure.help
--- config/Configure.help 5 Dec 2006 16:17:36 -0000 1.21
+++ config/Configure.help 19 Dec 2006 23:36:27 -0000
@@ -329,6 +329,9 @@
Command to shutdown the system.
Approx. binary size: 5k
+CONFIG_USER_SED_SED
+ GNU sed - The UNIX stream editor
+
CONFIG_USER_SETSERIAL_SETSERIAL
User level serial port configuration tool.
Approx binary size: 18k
Index: config/config.in
===================================================================
RCS file: /cvsroot/dslinux/dslinux/config/config.in,v
retrieving revision 1.31
diff -u -r1.31 config.in
--- config/config.in 12 Nov 2006 16:36:54 -0000 1.31
+++ config/config.in 19 Dec 2006 23:36:28 -0000
@@ -795,6 +813,7 @@
bool 'readprofile' CONFIG_USER_READPROFILE_READPROFILE
bool 'rootloader' CONFIG_USER_ROOTLOADER_ROOTLOADER
bool 'rl' CONFIG_USER_RL_RL
+bool 'sed' CONFIG_USER_SED_SED
bool 'setserial' CONFIG_USER_SETSERIAL_SETSERIAL
bool 'siggen' CONFIG_USER_TRIPWIRE_SIGGEN
bool 'sl' CONFIG_USER_SL_SL
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /cvsroot/dslinux/dslinux/user/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile 29 Oct 2006 15:15:43 -0000 1.22
+++ Makefile 19 Dec 2006 23:14:51 -0000
@@ -303,6 +303,7 @@
dir_$(CONFIG_USER_SASH_SH) += sash
dir_$(CONFIG_USER_SASH_SHUTDOWN) += sash
dir_$(CONFIG_USER_SASH_REBOOT_SNAPGEAR) += sash
+dir_$(CONFIG_USER_SED_SED) += sed
dir_$(CONFIG_USER_SER_SER) += ser
dir_$(CONFIG_USER_SER_RTPPROXY) += ser
dir_$(CONFIG_USER_SETHDLC_SETHDLC) += sethdlc
-------------- next part --------------
Index: DATEL/config.vendor
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/DATEL/config.vendor,v
retrieving revision 1.8
diff -u -r1.8 config.vendor
--- DATEL/config.vendor 6 Dec 2006 04:48:52 -0000 1.8
+++ DATEL/config.vendor 19 Dec 2006 23:48:51 -0000
@@ -384,6 +384,7 @@
# CONFIG_USER_READPROFILE_READPROFILE is not set
# CONFIG_USER_ROOTLOADER_ROOTLOADER is not set
# CONFIG_USER_RL_RL is not set
+# CONFIG_USER_SED_SED is not set
# CONFIG_USER_SETSERIAL_SETSERIAL is not set
# CONFIG_USER_TRIPWIRE_SIGGEN is not set
CONFIG_USER_SL_SL=y
Index: DSGBA/config.vendor
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/DSGBA/config.vendor,v
retrieving revision 1.31
diff -u -r1.31 config.vendor
--- DSGBA/config.vendor 12 Nov 2006 18:53:09 -0000 1.31
+++ DSGBA/config.vendor 19 Dec 2006 23:48:51 -0000
@@ -385,6 +385,7 @@
# CONFIG_USER_READPROFILE_READPROFILE is not set
# CONFIG_USER_ROOTLOADER_ROOTLOADER is not set
# CONFIG_USER_RL_RL is not set
+# CONFIG_USER_SED_SED is not set
# CONFIG_USER_SETSERIAL_SETSERIAL is not set
# CONFIG_USER_TRIPWIRE_SIGGEN is not set
CONFIG_USER_SL_SL=y
Index: DSMEM/config.vendor
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/DSMEM/config.vendor,v
retrieving revision 1.24
diff -u -r1.24 config.vendor
--- DSMEM/config.vendor 6 Dec 2006 04:48:52 -0000 1.24
+++ DSMEM/config.vendor 19 Dec 2006 23:48:52 -0000
@@ -384,6 +384,7 @@
# CONFIG_USER_READPROFILE_READPROFILE is not set
# CONFIG_USER_ROOTLOADER_ROOTLOADER is not set
# CONFIG_USER_RL_RL is not set
+# CONFIG_USER_SED_SED is not set
# CONFIG_USER_SETSERIAL_SETSERIAL is not set
# CONFIG_USER_TRIPWIRE_SIGGEN is not set
CONFIG_USER_SL_SL=y
Index: GBAMP/config.vendor
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/GBAMP/config.vendor,v
retrieving revision 1.34
diff -u -r1.34 config.vendor
--- GBAMP/config.vendor 6 Dec 2006 04:48:53 -0000 1.34
+++ GBAMP/config.vendor 19 Dec 2006 23:48:52 -0000
@@ -384,6 +384,7 @@
# CONFIG_USER_READPROFILE_READPROFILE is not set
# CONFIG_USER_ROOTLOADER_ROOTLOADER is not set
# CONFIG_USER_RL_RL is not set
+# CONFIG_USER_SED_SED is not set
# CONFIG_USER_SETSERIAL_SETSERIAL is not set
# CONFIG_USER_TRIPWIRE_SIGGEN is not set
CONFIG_USER_SL_SL=y
Index: GBAMP-EXT2/config.vendor
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/GBAMP-EXT2/config.vendor,v
retrieving revision 1.25
diff -u -r1.25 config.vendor
--- GBAMP-EXT2/config.vendor 6 Dec 2006 04:48:52 -0000 1.25
+++ GBAMP-EXT2/config.vendor 19 Dec 2006 23:48:52 -0000
@@ -384,6 +384,7 @@
# CONFIG_USER_READPROFILE_READPROFILE is not set
# CONFIG_USER_ROOTLOADER_ROOTLOADER is not set
# CONFIG_USER_RL_RL is not set
+# CONFIG_USER_SED_SED is not set
# CONFIG_USER_SETSERIAL_SETSERIAL is not set
# CONFIG_USER_TRIPWIRE_SIGGEN is not set
CONFIG_USER_SL_SL=y
Index: NDS/config.vendor
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/NDS/config.vendor,v
retrieving revision 1.31
diff -u -r1.31 config.vendor
--- NDS/config.vendor 12 Nov 2006 18:53:09 -0000 1.31
+++ NDS/config.vendor 19 Dec 2006 23:48:53 -0000
@@ -382,6 +382,7 @@
# CONFIG_USER_READPROFILE_READPROFILE is not set
# CONFIG_USER_ROOTLOADER_ROOTLOADER is not set
# CONFIG_USER_RL_RL is not set
+# CONFIG_USER_SED_SED is not set
# CONFIG_USER_SETSERIAL_SETSERIAL is not set
# CONFIG_USER_TRIPWIRE_SIGGEN is not set
# CONFIG_USER_SL_SL is not set
Index: RAM/config.vendor
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/RAM/config.vendor,v
retrieving revision 1.16
diff -u -r1.16 config.vendor
--- RAM/config.vendor 6 Dec 2006 04:48:53 -0000 1.16
+++ RAM/config.vendor 19 Dec 2006 23:48:53 -0000
@@ -387,6 +387,7 @@
# CONFIG_USER_READPROFILE_READPROFILE is not set
# CONFIG_USER_ROOTLOADER_ROOTLOADER is not set
# CONFIG_USER_RL_RL is not set
+CONFIG_USER_SED_SED=y
# CONFIG_USER_SETSERIAL_SETSERIAL is not set
# CONFIG_USER_TRIPWIRE_SIGGEN is not set
CONFIG_USER_SL_SL=y
Index: RAM-DEVEL/config.vendor
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/RAM-DEVEL/config.vendor,v
retrieving revision 1.7
diff -u -r1.7 config.vendor
--- RAM-DEVEL/config.vendor 12 Nov 2006 19:07:32 -0000 1.7
+++ RAM-DEVEL/config.vendor 19 Dec 2006 23:48:54 -0000
@@ -382,6 +382,7 @@
# CONFIG_USER_READPROFILE_READPROFILE is not set
# CONFIG_USER_ROOTLOADER_ROOTLOADER is not set
# CONFIG_USER_RL_RL is not set
+# CONFIG_USER_SED_SED is not set
# CONFIG_USER_SETSERIAL_SETSERIAL is not set
# CONFIG_USER_TRIPWIRE_SIGGEN is not set
# CONFIG_USER_SL_SL is not set
Index: common/config.vendor
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/common/config.vendor,v
retrieving revision 1.16
diff -u -r1.16 config.vendor
--- common/config.vendor 2 Nov 2006 12:20:28 -0000 1.16
+++ common/config.vendor 19 Dec 2006 23:48:54 -0000
@@ -384,6 +384,7 @@
# CONFIG_USER_READPROFILE_READPROFILE is not set
# CONFIG_USER_ROOTLOADER_ROOTLOADER is not set
# CONFIG_USER_RL_RL is not set
+# CONFIG_USER_SED_SED is not set
# CONFIG_USER_SETSERIAL_SETSERIAL is not set
# CONFIG_USER_TRIPWIRE_SIGGEN is not set
CONFIG_USER_SL_SL=y
More information about the dslinux-devel
mailing list