summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-07-06 15:11:56 +0000
committerThomas Martitz <kugel@rockbox.org>2010-07-06 15:11:56 +0000
commit31b5c471aeec6040ca69e3bea59c0825e2a6fc9d (patch)
tree628d7638a50ab226d5164f495d14d56ed2b51a1f /tools
parent9da707955dcdefa1b7a55348937eb706a08039b5 (diff)
downloadrockbox-31b5c471aeec6040ca69e3bea59c0825e2a6fc9d.tar.gz
rockbox-31b5c471aeec6040ca69e3bea59c0825e2a6fc9d.tar.bz2
rockbox-31b5c471aeec6040ca69e3bea59c0825e2a6fc9d.zip
Rockbox as an application: Add an 320x240 SDL application target.
It still works mostly like the simulator. There's also some minor left overs from the sim, but it does not define SIMULATOR. It installs into the current (build) dir, and you need to run it with '--root .' (because it looks for ./.rockbox and not ./simdisk/rockbox) as options. That's one of the few kludges left that should be resolved soon'ish. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27310 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl9
-rwxr-xr-xtools/configure27
2 files changed, 32 insertions, 4 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index aa25e26b13..f0a2c6a030 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -474,6 +474,7 @@ $year+=1900;
# made once for all targets
sub runone {
my ($target, $fonts)=@_;
+ my $samedir = abs_path($install) == abs_path($rbdir);
# build a full install .rockbox ($rbdir) directory
buildzip($target, $fonts);
@@ -498,14 +499,18 @@ sub runone {
if ($install =~ /\/dev\/null/) {
die "ERROR: No PREFIX given\n"
}
- system("cp -r $rbdir \"$install\" >/dev/null");
+ if (!$samedir) {
+ system("cp -r $rbdir \"$install\" >/dev/null");
+ }
}
else {
system("$ziptool $output $rbdir $target >/dev/null");
}
# remove the $rbdir afterwards
- rmtree($rbdir);
+ if (!$samedir) {
+ rmtree($rbdir);
+ }
};
if(!$exe) {
diff --git a/tools/configure b/tools/configure
index 79032c006e..1b88c30a6f 100755
--- a/tools/configure
+++ b/tools/configure
@@ -971,8 +971,9 @@ cat <<EOF
142) YH-925 ==Packard Bell== 130) Lyre proto 1
143) YP-S3 160) Vibe 500 131) Mini2440
- ==MPIO==
- 170) HD200
+ ==MPIO== == Application ==
+ 170) HD200 200) SDL 320x240
+
EOF
buildfor=`input`;
@@ -2600,6 +2601,28 @@ fi
t_model="hd200"
;;
+ 200|app*)
+ target_id=100
+ modelname="application"
+ target="-DAPPLICATION"
+ memory=32
+ uname=`uname`
+ simcc "sdl"
+ tool="cp "
+ boottool="cp "
+ bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
+ bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
+ output="rockbox"
+ bootoutput="bootloader-cowond2.bin"
+ appextra="recorder:gui:radio"
+ plugins=""
+ swcodec="yes"
+ # architecture, manufacturer and model for the target-tree build
+ t_cpu="hosted"
+ t_manufacturer="sdl"
+ t_model="app"
+ ;;
+
*)
echo "Please select a supported target platform!"
exit 7