1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Thomas Martitz 2010-07-06 15:11:56 +00:00
parent 9da707955d
commit 31b5c471ae
21 changed files with 361 additions and 16 deletions

View file

@ -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) {

27
tools/configure vendored
View file

@ -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