summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2011-05-30 21:10:37 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2011-05-30 21:10:37 +0000
commit976a1699da373f01dabc9353b34aef261ebf740f (patch)
tree5f1649ceb51d603471e6b1cf5dcb5192626897d6 /tools
parent8a5a2b82fd2d35e3eb7afa8f0dc875e3874988bb (diff)
downloadrockbox-976a1699da373f01dabc9353b34aef261ebf740f.tar.gz
rockbox-976a1699da373f01dabc9353b34aef261ebf740f.zip
Rockchip rk27xx port initial commit. This is still work in progress.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29935 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure34
-rw-r--r--tools/scramble.c4
2 files changed, 35 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure
index 96953c8b50..d988e75d63 100755
--- a/tools/configure
+++ b/tools/configure
@@ -500,6 +500,13 @@ arm1176jzscc () {
500 endian="little" 500 endian="little"
501} 501}
502 502
503arm7ejscc () {
504 findarmgcc
505 GCCOPTS="$CCOPTS -march=armv5te"
506 GCCOPTIMIZE="-fomit-frame-pointer"
507 endian="little"
508}
509
503mipselcc () { 510mipselcc () {
504 prefixtools mipsel-elf- 511 prefixtools mipsel-elf-
505 # mips is predefined, but we want it for paths. use __mips instead 512 # mips is predefined, but we want it for paths. use __mips instead
@@ -1271,8 +1278,8 @@ cat <<EOF
1271 200) SDL 170) HD200 131) Mini2440 1278 200) SDL 170) HD200 131) Mini2440
1272 201) Android 171) HD300 1279 201) Android 171) HD300
1273 202) Nokia N8xx 1280 202) Nokia N8xx
1274 203) Nokia N900 1281 203) Nokia N900 ==ROCKCHIP==
1275 204) Pandora 1282 204) Pandora 180) rk27xx generic
1276 1283
1277EOF 1284EOF
1278 1285
@@ -2969,6 +2976,29 @@ fi
2969 t_model="hd300" 2976 t_model="hd300"
2970 ;; 2977 ;;
2971 2978
2979 180|rk27generic)
2980 target_id=78
2981 modelname="rk27generic"
2982 target="-DRK27_GENERIC"
2983 memory=16 # always
2984 arm7ejscc
2985 tool="$rootdir/tools/scramble -add=rk27"
2986 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
2987 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
2988 output="rockbox.rk27"
2989 bootoutput="bootloader.rk27"
2990 appextra="recorder:gui:radio"
2991 plugins="yes"
2992 swcodec="yes"
2993 # toolset is the tools within the tools directory that we build for
2994 # this particular target.
2995 toolset="$genericbitmaptools"
2996 # architecture, manufacturer and model for the target-tree build
2997 t_cpu="arm"
2998 t_manufacturer="rk27xx"
2999 t_model="rk27generic"
3000 ;;
3001
2972 200|sdlapp) 3002 200|sdlapp)
2973 application="yes" 3003 application="yes"
2974 target_id=73 3004 target_id=73
diff --git a/tools/scramble.c b/tools/scramble.c
index dbf41fde44..683973321c 100644
--- a/tools/scramble.c
+++ b/tools/scramble.c
@@ -126,7 +126,7 @@ void usage(void)
126 printf("\t 9200, 1630, 6330, ldax, m200, c100, clip, e2v2,\n" 126 printf("\t 9200, 1630, 6330, ldax, m200, c100, clip, e2v2,\n"
127 "\t m2v4, fuze, c2v2, clv2, y820, y920, y925, x747,\n" 127 "\t m2v4, fuze, c2v2, clv2, y820, y920, y925, x747,\n"
128 "\t 747p, x777, nn2g, m244, cli+, fuz2, hd20, hd30,\n" 128 "\t 747p, x777, nn2g, m244, cli+, fuz2, hd20, hd30,\n"
129 "\t ip6g)\n"); 129 "\t ip6g, rk27)\n");
130 printf("\nNo option results in Archos standard player/recorder format.\n"); 130 printf("\nNo option results in Archos standard player/recorder format.\n");
131 131
132 exit(1); 132 exit(1);
@@ -337,6 +337,8 @@ int main (int argc, char** argv)
337 modelnum = 71; 337 modelnum = 71;
338 else if (!strcmp(&argv[1][5], "fuz+")) /* Sansa Fuze+ */ 338 else if (!strcmp(&argv[1][5], "fuz+")) /* Sansa Fuze+ */
339 modelnum = 72; 339 modelnum = 72;
340 else if (!strcmp(&argv[1][5], "rk27")) /* rockchip 27xx generic */
341 modelnum = 73;
340 else { 342 else {
341 fprintf(stderr, "unsupported model: %s\n", &argv[1][5]); 343 fprintf(stderr, "unsupported model: %s\n", &argv[1][5]);
342 return 2; 344 return 2;