From 5b5e8b0bdf002e58d6e711fbdcba0891f4b21c43 Mon Sep 17 00:00:00 2001 From: Rob Purchase Date: Mon, 3 Mar 2008 23:43:19 +0000 Subject: Add D2 option to scramble git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16505 a1c6a512-1295-4272-9138-f99709370657 --- tools/configure | 2 +- tools/scramble.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/configure b/tools/configure index d2b0bfc626..917e963e97 100755 --- a/tools/configure +++ b/tools/configure @@ -1481,7 +1481,7 @@ EOF target="-DCOWON_D2" memory=32 arm926ejscc - tool="cp " + tool="$rootdir/tools/scramble -add=d2" boottool="$rootdir/tools/scramble -tcc=crc" bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" bmp2rb_native="$rootdir/tools/bmp2rb -f 4" diff --git a/tools/scramble.c b/tools/scramble.c index 6d69f9175e..ee731cfd0d 100644 --- a/tools/scramble.c +++ b/tools/scramble.c @@ -108,7 +108,7 @@ void usage(void) "\t-add=X Rockbox generic \"add-up\" checksum format\n" "\t (X values: h100, h120, h140, h300, ipco, nano, ipvd, mn2g\n" "\t ip3g, ip4g, mini, iax5, h10, h10_5gb, tpj2,\n" - "\t c200, e200, giga, gigs, m100, m500)\n" + "\t c200, e200, giga, gigs, m100, m500, d2)\n" "\nNo option results in Archos standard player/recorder format.\n"); exit(1); @@ -256,6 +256,8 @@ int main (int argc, char** argv) modelnum = 22; else if(!strcmp(&argv[1][5], "m100")) modelnum = 23; + else if(!strcmp(&argv[1][5], "d2")) + modelnum = 24; else { fprintf(stderr, "unsupported model: %s\n", &argv[1][5]); return 2; -- cgit v1.2.3