From 557c0bc3aef502af17c5926b2c33ede7683e6643 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 31 Mar 2005 05:29:21 +0000 Subject: Adding patch file and docs. --- urunlevel/my_linux/Changelog | 6 ++++ urunlevel/my_linux/README | 3 ++ urunlevel/my_linux/TODO | 9 ++++++ urunlevel/my_linux/bootconfig | 1 + urunlevel/my_linux/my_linux.patch | 61 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 80 insertions(+) create mode 100644 urunlevel/my_linux/Changelog create mode 100644 urunlevel/my_linux/README create mode 100644 urunlevel/my_linux/TODO create mode 100644 urunlevel/my_linux/bootconfig create mode 100644 urunlevel/my_linux/my_linux.patch diff --git a/urunlevel/my_linux/Changelog b/urunlevel/my_linux/Changelog new file mode 100644 index 0000000..fcf27d6 --- /dev/null +++ b/urunlevel/my_linux/Changelog @@ -0,0 +1,6 @@ +--------------------- +Date: 2005/03/19 03:40:00 +Author: onefang +Log: +Updated various Config.in's to reflect some of the dependencies. + diff --git a/urunlevel/my_linux/README b/urunlevel/my_linux/README new file mode 100644 index 0000000..6822109 --- /dev/null +++ b/urunlevel/my_linux/README @@ -0,0 +1,3 @@ +I am writing this as part of a Linux distro that I am building, called +"My Linux". One of the design criterea for this distro is to boot as +fast as possible. diff --git a/urunlevel/my_linux/TODO b/urunlevel/my_linux/TODO new file mode 100644 index 0000000..4a84943 --- /dev/null +++ b/urunlevel/my_linux/TODO @@ -0,0 +1,9 @@ + hit it with the ugly_stick + + on boot - hard link /linuxrc to /bin/busybox + move cron out of rcS + do something with the mkrootfs command line args + #ifdef CONFIG_FEATURE_CLEAN_UP + + replace some doit's with C code + force enable of remaining doit's diff --git a/urunlevel/my_linux/bootconfig b/urunlevel/my_linux/bootconfig new file mode 100644 index 0000000..31db2b3 --- /dev/null +++ b/urunlevel/my_linux/bootconfig @@ -0,0 +1 @@ +# This is an empty bootconfig file for My Linux. diff --git a/urunlevel/my_linux/my_linux.patch b/urunlevel/my_linux/my_linux.patch new file mode 100644 index 0000000..a923ddf --- /dev/null +++ b/urunlevel/my_linux/my_linux.patch @@ -0,0 +1,61 @@ +diff -urNX busybox-1.00/runlevel/diff_excludes busybox-1.00-original/archival/gzip.c busybox-1.00/archival/gzip.c +--- busybox-1.00-original/archival/gzip.c 2004-04-15 03:51:08.000000000 +1000 ++++ busybox-1.00/archival/gzip.c 2005-02-08 19:05:02.000000000 +1000 +@@ -13,6 +13,9 @@ + * files as well as stdin/stdout, and to generally behave itself wrt + * command line handling. + * ++ * Adjusted further by David Seikel to support ++ * just storing the file. ++ * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or +@@ -72,6 +75,8 @@ + /* methods 4 to 7 reserved */ + #define DEFLATED 8 + ++int just_store = 0; ++ + /* To save memory for 16 bit systems, some arrays are overlaid between + * the various modules: + * deflate: prev+head window d_buf l_buf outbuf +@@ -1202,7 +1207,7 @@ + int force = 0; + int opt; + +- while ((opt = getopt(argc, argv, "cf123456789dq")) != -1) { ++ while ((opt = getopt(argc, argv, "cf0123456789dq")) != -1) { + switch (opt) { + case 'c': + tostdout = 1; +@@ -1210,6 +1215,11 @@ + case 'f': + force = 1; + break; ++ ++ case '0': ++ just_store = 1; ++ break; ++ + /* Ignore 1-9 (compression level) options */ + case '1': + case '2': +@@ -2267,7 +2277,7 @@ + * and if the zip file can be seeked (to rewrite the local header), + * the whole file is transformed into a stored file: + */ +- if (stored_len <= opt_lenb && eof && compressed_len == 0L && seekable()) { ++ if ((just_store || (stored_len <= opt_lenb)) && eof && compressed_len == 0L && seekable()) { + /* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */ + if (buf == (char *) 0) + bb_error_msg("block vanished"); +@@ -2276,7 +2286,7 @@ + compressed_len = stored_len << 3; + *file_method = STORED; + +- } else if (stored_len + 4 <= opt_lenb && buf != (char *) 0) { ++ } else if ((just_store || (stored_len + 4 <= opt_lenb)) && buf != (char *) 0) { + /* 4: two words for the lengths */ + /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE. + * Otherwise we can't have processed more than WSIZE input bytes since -- cgit v1.1