From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/cetools/cetools-native_0.3.bb | 7 +++ recipes/cetools/cetools_0.3.bb | 13 +++++ recipes/cetools/files/sean-hsieh.patch | 97 ++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 recipes/cetools/cetools-native_0.3.bb create mode 100644 recipes/cetools/cetools_0.3.bb create mode 100644 recipes/cetools/files/sean-hsieh.patch (limited to 'recipes/cetools') diff --git a/recipes/cetools/cetools-native_0.3.bb b/recipes/cetools/cetools-native_0.3.bb new file mode 100644 index 0000000000..ca4ff302ca --- /dev/null +++ b/recipes/cetools/cetools-native_0.3.bb @@ -0,0 +1,7 @@ +SECTION = "console/network" +require cetools_${PV}.bb +inherit native + +do_stage() { + install -m 0755 rom2files rom2bin bin2rom dump2bin ${STAGING_BINDIR} +} diff --git a/recipes/cetools/cetools_0.3.bb b/recipes/cetools/cetools_0.3.bb new file mode 100644 index 0000000000..aa97ec5527 --- /dev/null +++ b/recipes/cetools/cetools_0.3.bb @@ -0,0 +1,13 @@ +DESCRIPTION = "Ethload for Linux is a tool to send ROM images over ethernet using tftp." +SECTION = "console/network" +LICENSE = "GPL" +SRC_URI = "http://linuxsh.free.fr/tools/cetools-${PV}.tar.gz \ + file://sean-hsieh.patch;patch=1" +S = "${WORKDIR}/cetools-${PV}" +PR = "r1" + +inherit autotools + +do_configure() { + oe_runconf +} diff --git a/recipes/cetools/files/sean-hsieh.patch b/recipes/cetools/files/sean-hsieh.patch new file mode 100644 index 0000000000..ce1b4965af --- /dev/null +++ b/recipes/cetools/files/sean-hsieh.patch @@ -0,0 +1,97 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- cetools-0.3/bin2rom.c~sean-hsieh ++++ cetools-0.3/bin2rom.c +@@ -14,6 +14,12 @@ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ++ ++ History: ++ 07/14/2000 Sean Hsieh ++ Clear padding bytes of the input buffer when ++ "blockSize < BLOCKSIZE" to avoid the checksum ++ error + */ + #include + #include +@@ -28,7 +34,7 @@ + + #define min(a, b) (a 0 ) + { + blockSize = min( BLOCKSIZE, reste ); +- ++ /**********************************************************************/ ++ /* Modified by Sean Hsieh */ ++ /* Clear the padding bytes to zero, this can avoid the checksum error */ ++ /**********************************************************************/ ++ if ( blockSize != BLOCKSIZE ) { ++ memset( inStart, 0, BLOCKSIZE ); ++ //printf( "adding padding bytes\n" ); ++ } + read( input, inStart, blockSize ); + + #ifdef MAP_OUTPUT +@@ -285,7 +298,8 @@ + + write( output, &boot, 4); + +- write( output, &nullData, 4); ++ //write( output, &nullData, 4); ++ write( output, &record, 4); + + #endif + +@@ -339,17 +353,26 @@ + { + long start; + long boot; ++ long record; + +- if( argc < 5 ) ++ if ( argc < 5 ) + { +- printf("bin2rom: \n"); +- exit( -1 ); ++ printf("bin2rom: [] [-s] [-c]\n"); ++ exit( -1 ); + } + + sscanf( argv[3], "%lx", &start ); + sscanf( argv[4], "%lx", &boot ); +- +- bin2rom( argv[1], argv[2], start, boot ); ++ if ( argc >= 6 ) ++ { ++ sscanf( argv[5], "%lx", &record ); ++ } ++ else ++ { ++ record = 0xffffffff; ++ } ++ ++ bin2rom( argv[1], argv[2], start, boot, record ); + + return 0; + } +\ No newline at end of file -- cgit 1.2.3-korg