3 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 # global CC options for all platforms
12 CCOPTS
="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes"
14 use_logf
="#undef ROCKBOX_HAS_LOGF"
16 scriptver
=`echo '$Revision$' | sed -e 's:\\$::g' -e 's/Revision: //'`
19 # Begin Function Definitions
29 WINDRES
=${prefix}windres
30 DLLTOOL
=${prefix}dlltool
31 DLLWRAP
=${prefix}dllwrap
32 RANLIB
=${prefix}ranlib
40 # naive approach to selecting a mingw cross-compiler on linux/*nix
41 echo "Enabling win32 crosscompiling"
43 prefixtools i586-mingw32msvc-
45 LDOPTS
="-lgdi32 -luser32 -mwindows"
46 # add cross-compiler option(s)
47 GCCOPTS
="$GCCOPTS -mno-cygwin"
49 output
="rockboxui.exe" # use this as output binary name
51 endian
="little" # windows is little endian
54 # scan the $PATH for the given command
61 # echo "checks for $file in $path" >&2
62 if test -f "$path/$file"; then
72 # default tool setup for native building
76 GCCOPTS
='-W -Wall -g -fno-builtin'
78 output
="rockboxui" # use this as default output binary name
80 # generic sdl-config checker
81 sdl
=`findtool sdl-config`
83 if [ -z "$sdl" ]; then
84 echo "configure didn't find sdl-config, which indicates that you"
85 echo "don't have SDL (properly) installed. Please correct and"
86 echo "re-run configure!"
90 # default share option, override below if needed
95 echo "Cygwin host detected"
98 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
99 LDOPTS
="`sdl-config --libs` -mconsole"
101 output
="rockboxui.exe" # use this as output binary name
105 echo "Linux host detected"
107 if [ "0" != `sdl-config --libs |grep -c mwindows` ]; then
108 # Enable crosscompiling if sdl-config is from Windows SDL
111 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
112 LDOPTS
="`sdl-config --libs`"
116 echo "FreeBSD host detected"
118 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
119 LDOPTS
="`sdl-config --libs`"
123 echo "Darwin host detected"
125 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
126 LDOPTS
="`sdl-config --libs`"
127 SHARED_FLAG
="-dynamiclib -Wl\,-single_module"
131 echo "Unsupported system: $uname, fix configure and retry"
136 if [ "`uname -m`" = "x86_64" ]; then
137 GCCOPTS
="$GCCOPTS -fPIC" # needed to make shared objects link
140 GCCOPTS
="$GCCOPTS -I\$(SIMDIR)"
142 if test "X$crosscompile" != "Xyes"; then
144 cat >/tmp
/conftest-
$id.c
<<EOF
146 int main(int argc, char **argv)
149 char *varp = (char *)&var;
157 $CC -o /tmp
/conftest-
$id /tmp
/conftest-
$id.c
2>/dev
/null
159 if test `/tmp/conftest-$id 2>/dev/null` -gt "1"; then
166 echo "Simulator environment deemed $endian endian"
168 # use wildcard here to make it work even if it was named *.exe like
170 rm -f /tmp
/conftest-
$id*
176 GCCOPTS
="$CCOPTS -m1"
177 GCCOPTIMIZE
="-fomit-frame-pointer -fschedule-insns"
182 prefixtools calmrisc16-unknown-elf-
183 GCCOPTS
="-Wl\,--no-check-sections $CCOPTS"
184 GCCOPTIMIZE
="-fomit-frame-pointer"
189 prefixtools m68k-elf-
190 GCCOPTS
="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
191 GCCOPTIMIZE
="-fomit-frame-pointer"
197 GCCOPTS
="$CCOPTS -mcpu=arm7tdmi"
198 if test "X$1" != "Xshort"; then
199 GCCOPTS
="$GCCOPTS -mlong-calls"
201 GCCOPTIMIZE
="-fomit-frame-pointer"
207 GCCOPTS
="$CCOPTS -mcpu=arm9tdmi -mlong-calls"
208 GCCOPTIMIZE
="-fomit-frame-pointer"
213 ##################################################################
214 # Prompt for specific developer options
217 echo "Enter your developer options (press enter when done)"
218 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice"
219 if [ "$memory" = "2" ]; then
220 echo -n ", (8)MB MOD"
222 if [ "$archos" = "h120" ]; then
223 echo -n ", (R)TC MOD"
229 while [ $cont = "1" ]; do
235 if [ "yes" = "$profile" ]; then
236 echo "Debug is incompatible with profiling"
243 echo "logf() support enabled"
247 echo "Simulator build enabled"
251 if [ "yes" = "$use_debug" ]; then
252 echo "Profiling is incompatible with debug"
254 echo "Profiling support is enabled"
259 echo "Voice build selected"
263 if [ "$memory" = "2" ]; then
265 echo "Memory size selected: 8MB"
271 if [ "$archos" = "h120" ]; then
272 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
273 have_rtc_alarm
="#define HAVE_RTC_ALARM"
274 echo "RTC functions enabled (DS1339/DS3231)"
286 if [ "yes" = "$voice" ]; then
287 toolset
="${toolset} voicefont wavtrim"
289 # Ask about languages to build
290 echo "Select a number for the language to use (default is english)"
291 echo "You may enter a comma-separated list of languages to build"
294 voicelanguage
=`whichlang`
296 if [ -z "$voicelanguage" ]; then
298 voicelanguage
="english"
300 echo "Voice language set to $voicelanguage"
302 # Configure encoder and TTS engine for each language
303 for thislang
in `echo $voicelanguage | sed 's/,/ /g'`; do
304 voiceconfig
"$thislang"
307 if [ "yes" = "$use_debug" ]; then
309 GCCOPTS
="$GCCOPTS -g -DDEBUG"
311 if [ "yes" = "$logf" ]; then
312 use_logf
="#define ROCKBOX_HAS_LOGF 1"
314 if [ "yes" = "$simulator" ]; then
316 extradefines
="$extradefines -DSIMULATOR"
318 if [ "yes" = "$profile" ]; then
319 extradefines
="$extradefines -DRB_PROFILE"
320 PROFILE_OPTS
="-finstrument-functions"
324 # Configure voice settings
327 echo "Building $thislang voice for $archos. Select options"
330 if [ -f "`which flite`" ]; then
332 FLITE_OPTS
="FLITE_OPTS=\"\""
334 DEFAULT_TTS_OPTS
=$FLITE_OPTS
335 DEFAULT_NOISEFLOOR
="500"
338 if [ -f "`which espeak`" ]; then
340 ESPEAK_OPTS
="ESPEAK_OPTS=\"\""
342 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
343 DEFAULT_NOISEFLOOR
="500"
346 if [ -f "`which festival`" ]; then
347 FESTIVAL
="(F)estival "
348 FESTIVAL_OPTS
="FESTIVAL_OPTS=\"\""
349 DEFAULT_TTS
="festival"
350 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
351 DEFAULT_NOISEFLOOR
="500"
354 # Allow SAPI if Windows is in use
355 if [ -f "`which winver`" ]; then
357 SAPI5_OPTS
="SAPI5_OPTS=\"\""
359 DEFAULT_TTS_OPTS
=$SAPI5_OPTS
360 DEFAULT_NOISEFLOOR
="500"
364 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI5" ]; then
365 echo "You need Festival, eSpeak or Flite in your path, or SAPI5 available to build voice files"
369 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI5}(${DEFAULT_CHOICE})?"
374 NOISEFLOOR
="500" # TODO: check this value
380 TTS_OPTS
=$ESPEAK_OPTS
383 TTS_ENGINE
="festival"
385 TTS_OPTS
=$FESTIVAL_OPTS
393 TTS_ENGINE
=$DEFAULT_TTS
394 TTS_OPTS
=$DEFAULT_TTS_OPTS
395 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
397 echo "Using $TTS_ENGINE for TTS"
399 # Allow the user to input manual commandline options
400 printf "Enter $TTS_ENGINE options (enter for defaults `echo $TTS_OPTS |sed 's/.*=//'`): "
401 USER_TTS_OPTS
=`input`
402 if [ -n "$USER_TTS_OPTS" ]; then
403 TTS_OPTS
="`echo $TTS_OPTS | sed 's/=.*//'`=\"$USER_TTS_OPTS\""
408 if [ -f "`which oggenc`" ]; then
411 VORBIS_OPTS
="VORBIS_OPTS=\"-q0 --downmix\""
412 DEFAULT_ENC_OPTS
=$VORBIS_OPTS
415 if [ -f "`which speexenc`" ]; then
416 SPEEXENC
="(S)peexenc "
417 DEFAULT_ENC
="speexenc"
418 SPEEX_OPTS
="" # TODO: find appropriate options for speex
419 DEFAULT_ENC_OPTS
=$SPEEX_OPTS
422 if [ -f "`which lame`" ]; then
425 LAME_OPTS
="LAME_OPTS=\"--resample 12 -t -m m -h -V 9 -S\""
426 DEFAULT_ENC_OPTS
=$LAME_OPTS
430 if [ "$LAME" = "" ]; then
431 echo "You currently need to have Lame installed to build voice files"
434 # echo "Encoder to use: ${LAME}${OGGENC}${SPEEXENC}(${DEFAULT_CHOICE})?"
436 # echo "Note: Use Lame - the other options won't work"
442 ENC_OPTS
=$VORBIS_OPTS
454 ENC_OPTS
=$DEFAULT_ENC_OPTS
456 echo "Using $ENCODER for encoding voice clips"
458 # Allow the user to input manual commandline options
459 printf "Enter $ENCODER options (enter for defaults `echo $ENC_OPTS |sed 's/.*=//'`): "
460 USER_ENC_OPTS
=`input`
461 if [ -n "$USER_ENC_OPTS" ]; then
462 ENC_OPTS
="`echo $ENC_OPTS | sed 's/=.*//'`=\"$USER_ENC_OPTS\""
466 if [ -f "`which cygpath`" ]; then
467 TEMPDIR
=`cygpath . -a -w`
470 cat > voicesettings-
$thislang.sh
<<EOF
471 TTS_ENGINE="${TTS_ENGINE}"
474 NOISEFLOOR="${NOISEFLOOR}"
481 # figure out which languages that are around
482 for file in $rootdir/apps
/lang
/*.lang
; do
483 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
484 langs
="$langs $clean"
488 for one
in $langs; do
498 # Allow the user to pass a comma-separated list of langauges
499 for thispick
in `echo $pick | sed 's/,/ /g'`; do
501 for one
in $langs; do
502 # Accept both the language number and name
503 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
504 if [ "$output" = "" ]; then
518 if test "$opt" = "--help"; then
519 echo "Rockbox configure script."
520 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
521 echo "Do *NOT* run this within the tools directory!"
523 echo "Usage: configure [--ccache][--no-ccache]"
527 if test -r "configure"; then
528 # this is a check for a configure script in the current directory, it there
529 # is one, try to figure out if it is this one!
531 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
532 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
533 echo "It will only cause you pain and grief. Instead do this:"
536 echo " mkdir build-dir"
538 echo " ../tools/configure"
540 echo "Much happiness will arise from this. Enjoy"
545 # get our current directory
548 if { echo $pwd |
grep " "; } then
549 echo "You're running this script in a path that contains space. The build"
550 echo "system is unfortunately not clever enough to deal with this. Please"
551 echo "run the script from a different path, rename the path or fix the build"
556 if [ -z "$rootdir" ]; then
557 ##################################################################
558 # Figure out where the source code root is!
560 rootdir
=`dirname $0`/..
/
562 #####################################################################
563 # Convert the possibly relative directory name to an absolute version
569 # cd back to the build dir
574 appsdir
='\$(ROOTDIR)/apps'
575 firmdir
='\$(ROOTDIR)/firmware'
576 toolsdir
='\$(ROOTDIR)/tools'
579 ##################################################################
580 # Figure out target platform
583 echo "Enter target platform:"
585 ==Archos== ==iriver== ==Apple iPod==
586 0) Player/Studio 10) H120/H140 20) Color/Photo
587 1) Recorder 11) H320/H340 21) Nano
588 2) FM Recorder 12) iHP-100/110/115 22) Video
589 3) Recorder v2 13) iFP-790 23) 3G
590 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
591 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
595 ==iAudio== ==Toshiba== ==SanDisk==
596 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
597 31) M5/M5L 51) Sansa e200R
605 # Set of tools built for all target platforms:
606 toolset
="rdf2binary convbdf codepages"
608 # Toolsets for some target families:
609 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
610 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
611 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
612 ipodbitmaptools
="$toolset scramble ipod_fw bmp2rb codepages"
613 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
614 # generic is used by IFP, H10, Sansa-e200
615 genericbitmaptools
="$toolset bmp2rb"
618 # ---- For each target ----
621 # target_id: a unique number identifying this target, DOES NOT necessarily
622 # have to be the menu number. Just use the currently highest
623 # number+1 when you add a new target.
624 # archos: short model name used all over to identify this target
625 # memory: number of megabytes of RAM this target has. If the amount can
626 # be selected by the size prompt, let memory be unset here
627 # target: -Ddefine passed to the build commands to make the correct
628 # config-*.h file get included etc
629 # tool: the tool that takes a plain binary and converts that into a
630 # working "firmware" file for your target
631 # output: the final output file name
632 # boottool: the tool that takes a plain binary and generates a bootloader
633 # file for your target (or blank to use $tool)
634 # bootoutput:the final output file name for the bootloader (or blank to use
636 # appextra: passed to the APPEXTRA variable in the Makefiles.
637 # TODO: add proper explanation
638 # archosrom: used only for Archos targets that build a special flashable .ucl
639 # image. Set to blank for other builds.
640 # flash: the same as archosrom. These two should be merged
641 # plugins: set to 'yes' to build the plugins. Early development builds can
642 # set this to no in the early stages to have an easier life for a
644 # swcodec: set 'yes' on swcodec targets
645 # toolset: lists what particular tools in the tools/ directory that this
646 # target needs to have built prior to building Rockbox
649 # *cc: sets up gcc and compiler options for your target builds. Note
650 # that if you select a simulator build, the compiler selection is
651 # overridden later in the script.
658 target
="-DARCHOS_PLAYER"
660 tool
="$rootdir/tools/scramble"
662 appextra
="player:gui"
663 archosrom
="$pwd/rombox.ucl"
664 flash
="$pwd/rockbox.ucl"
668 # toolset is the tools within the tools directory that we build for
669 # this particular target.
670 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
672 # Note: the convbdf is present in the toolset just because: 1) the
673 # firmware/Makefile assumes it is present always, and 2) we will need it when we
674 # build the player simulator
677 t_manufacturer
="archos"
684 target
="-DARCHOS_RECORDER"
686 tool
="$rootdir/tools/scramble"
687 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
688 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
690 appextra
="recorder:gui"
691 archosrom
="" #"$pwd/rombox.ucl"
692 flash
="$pwd/rockbox.ucl"
695 # toolset is the tools within the tools directory that we build for
696 # this particular target.
697 toolset
=$archosbitmaptools
699 t_manufacturer
="archos"
706 target
="-DARCHOS_FMRECORDER"
708 tool
="$rootdir/tools/scramble -fm"
709 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
710 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
712 appextra
="recorder:gui"
713 archosrom
="" #"$pwd/rombox.ucl"
714 flash
="$pwd/rockbox.ucl"
717 # toolset is the tools within the tools directory that we build for
718 # this particular target.
719 toolset
=$archosbitmaptools
721 t_manufacturer
="archos"
728 target
="-DARCHOS_RECORDERV2"
730 tool
="$rootdir/tools/scramble -v2"
731 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
732 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
734 appextra
="recorder:gui"
735 archosrom
="" #"$pwd/rombox.ucl"
736 flash
="$pwd/rockbox.ucl"
739 # toolset is the tools within the tools directory that we build for
740 # this particular target.
741 toolset
=$archosbitmaptools
743 t_manufacturer
="archos"
750 target
="-DARCHOS_ONDIOSP"
752 tool
="$rootdir/tools/scramble -osp"
753 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
754 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
756 appextra
="recorder:gui"
757 archosrom
="$pwd/rombox.ucl"
758 flash
="$pwd/rockbox.ucl"
761 # toolset is the tools within the tools directory that we build for
762 # this particular target.
763 toolset
=$archosbitmaptools
765 t_manufacturer
="archos"
772 target
="-DARCHOS_ONDIOFM"
774 tool
="$rootdir/tools/scramble -ofm"
775 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
776 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
778 appextra
="recorder:gui"
779 archosrom
="" #"$pwd/rombox.ucl"
780 flash
="$pwd/rockbox.ucl"
783 toolset
=$archosbitmaptools
785 t_manufacturer
="archos"
792 target
="-DARCHOS_AV300"
795 tool
="$rootdir/tools/scramble -mm=C"
796 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
797 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
799 appextra
="recorder:gui"
804 # toolset is the tools within the tools directory that we build for
805 # this particular target.
806 toolset
="$toolset scramble descramble bmp2rb codepages"
807 # architecture, manufacturer and model for the target-tree build
809 t_manufacturer
="archos"
816 target
="-DIRIVER_H120"
819 tool
="$rootdir/tools/scramble -add=h120"
820 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
821 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
822 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
823 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
824 output
="rockbox.iriver"
825 appextra
="recorder:gui"
827 flash
="$pwd/rombox.iriver"
830 # toolset is the tools within the tools directory that we build for
831 # this particular target.
832 toolset
=$iriverbitmaptools
834 t_manufacturer
="iriver"
841 target
="-DIRIVER_H300"
844 tool
="$rootdir/tools/scramble -add=h300"
845 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
846 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
847 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
848 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
849 output
="rockbox.iriver"
850 appextra
="recorder:gui"
855 # toolset is the tools within the tools directory that we build for
856 # this particular target.
857 toolset
=$iriverbitmaptools
859 t_manufacturer
="iriver"
866 target
="-DIRIVER_H100"
869 tool
="$rootdir/tools/scramble -add=h100"
870 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
871 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
872 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
873 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
874 output
="rockbox.iriver"
875 appextra
="recorder:gui"
880 # toolset is the tools within the tools directory that we build for
881 # this particular target.
882 toolset
=$iriverbitmaptools
884 t_manufacturer
="iriver"
891 target
="-DIRIVER_IFP7XX"
895 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
896 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
898 appextra
="recorder:gui"
903 # toolset is the tools within the tools directory that we build for
904 # this particular target.
905 toolset
=$genericbitmaptools
907 t_manufacturer
="pnx0101"
908 t_model
="iriver-ifp7xx"
914 target
="-DIRIVER_H10"
917 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
918 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
919 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
921 appextra
="recorder:gui"
926 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
927 bootoutput
="H10_20GC.mi4"
928 # toolset is the tools within the tools directory that we build for
929 # this particular target.
930 toolset
="$genericbitmaptools scramble"
931 # architecture, manufacturer and model for the target-tree build
933 t_manufacturer
="iriver"
940 target
="-DIRIVER_H10_5GB"
943 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
944 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
945 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
947 appextra
="recorder:gui"
952 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
954 # toolset is the tools within the tools directory that we build for
955 # this particular target.
956 toolset
="$genericbitmaptools scramble"
957 # architecture, manufacturer and model for the target-tree build
959 t_manufacturer
="iriver"
966 target
="-DIPOD_COLOR"
969 tool
="$rootdir/tools/scramble -add=ipco"
970 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
971 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
972 output
="rockbox.ipod"
973 appextra
="recorder:gui"
978 bootoutput
="bootloader-$archos.ipod"
979 # toolset is the tools within the tools directory that we build for
980 # this particular target.
981 toolset
=$ipodbitmaptools
982 # architecture, manufacturer and model for the target-tree build
984 t_manufacturer
="ipod"
994 tool
="$rootdir/tools/scramble -add=nano"
995 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
996 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
997 output
="rockbox.ipod"
998 appextra
="recorder:gui"
1003 bootoutput
="bootloader-$archos.ipod"
1004 # toolset is the tools within the tools directory that we build for
1005 # this particular target.
1006 toolset
=$ipodbitmaptools
1007 # architecture, manufacturer and model for the target-tree build
1009 t_manufacturer
="ipod"
1016 target
="-DIPOD_VIDEO"
1018 tool
="$rootdir/tools/scramble -add=ipvd"
1019 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1020 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1021 output
="rockbox.ipod"
1022 appextra
="recorder:gui"
1027 bootoutput
="bootloader-$archos.ipod"
1028 # toolset is the tools within the tools directory that we build for
1029 # this particular target.
1030 toolset
=$ipodbitmaptools
1031 # architecture, manufacturer and model for the target-tree build
1033 t_manufacturer
="ipod"
1043 tool
="$rootdir/tools/scramble -add=ip3g"
1044 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1045 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1046 output
="rockbox.ipod"
1047 appextra
="recorder:gui"
1052 bootoutput
="bootloader-$archos.ipod"
1053 # toolset is the tools within the tools directory that we build for
1054 # this particular target.
1055 toolset
=$ipodbitmaptools
1056 # architecture, manufacturer and model for the target-tree build
1058 t_manufacturer
="ipod"
1068 tool
="$rootdir/tools/scramble -add=ip4g"
1069 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1070 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1071 output
="rockbox.ipod"
1072 appextra
="recorder:gui"
1077 bootoutput
="bootloader-$archos.ipod"
1078 # toolset is the tools within the tools directory that we build for
1079 # this particular target.
1080 toolset
=$ipodbitmaptools
1081 # architecture, manufacturer and model for the target-tree build
1083 t_manufacturer
="ipod"
1090 target
="-DIPOD_MINI"
1093 tool
="$rootdir/tools/scramble -add=mini"
1094 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1095 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1096 output
="rockbox.ipod"
1097 appextra
="recorder:gui"
1102 bootoutput
="bootloader-$archos.ipod"
1103 # toolset is the tools within the tools directory that we build for
1104 # this particular target.
1105 toolset
=$ipodbitmaptools
1106 # architecture, manufacturer and model for the target-tree build
1108 t_manufacturer
="ipod"
1115 target
="-DIPOD_MINI2G"
1118 tool
="$rootdir/tools/scramble -add=mn2g"
1119 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1120 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1121 output
="rockbox.ipod"
1122 appextra
="recorder:gui"
1127 bootoutput
="bootloader-$archos.ipod"
1128 # toolset is the tools within the tools directory that we build for
1129 # this particular target.
1130 toolset
=$ipodbitmaptools
1131 # architecture, manufacturer and model for the target-tree build
1133 t_manufacturer
="ipod"
1140 target
="-DIPOD_1G2G"
1143 tool
="$rootdir/tools/scramble -add=1g2g"
1144 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1145 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1146 output
="rockbox.ipod"
1147 appextra
="recorder:gui"
1152 bootoutput
="bootloader-$archos.ipod"
1153 # toolset is the tools within the tools directory that we build for
1154 # this particular target.
1155 toolset
=$ipodbitmaptools
1156 # architecture, manufacturer and model for the target-tree build
1158 t_manufacturer
="ipod"
1165 target
="-DIAUDIO_X5"
1168 tool
="$rootdir/tools/scramble -add=iax5"
1169 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1170 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1171 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1172 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1173 output
="rockbox.iaudio"
1174 appextra
="recorder:gui"
1179 # toolset is the tools within the tools directory that we build for
1180 # this particular target.
1181 toolset
="$iaudiobitmaptools"
1182 # architecture, manufacturer and model for the target-tree build
1184 t_manufacturer
="iaudio"
1191 target
="-DIAUDIO_M5"
1194 tool
="$rootdir/tools/scramble -add=iam5"
1195 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1196 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1197 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1198 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1199 output
="rockbox.iaudio"
1200 appextra
="recorder:gui"
1205 # toolset is the tools within the tools directory that we build for
1206 # this particular target.
1207 toolset
="$iaudiobitmaptools"
1208 # architecture, manufacturer and model for the target-tree build
1210 t_manufacturer
="iaudio"
1217 target
="-DGIGABEAT_F"
1220 tool
="$rootdir/tools/scramble -add=giga"
1221 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1222 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1223 output
="rockbox.gigabeat"
1224 appextra
="recorder:gui"
1229 toolset
=$gigabeatbitmaptools
1230 boottool
="$rootdir/tools/scramble -gigabeat"
1231 bootoutput
="FWIMG01.DAT"
1232 # architecture, manufacturer and model for the target-tree build
1234 t_manufacturer
="s3c2440"
1235 t_model
="gigabeat-fx"
1241 target
="-DSANSA_E200"
1242 memory
=32 # supposedly
1244 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1245 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1246 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1247 output
="rockbox.mi4"
1248 appextra
="recorder:gui"
1253 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1254 bootoutput
="PP5022.mi4"
1255 # toolset is the tools within the tools directory that we build for
1256 # this particular target.
1257 toolset
="$genericbitmaptools scramble"
1258 # architecture, manufacturer and model for the target-tree build
1260 t_manufacturer
="sandisk"
1261 t_model
="sansa-e200"
1265 # the e200R model is pretty much identical to the e200, it only has a
1266 # different option to the scramble tool when building a bootloader and
1267 # makes the bootloader output file name in all lower case.
1270 target
="-DSANSA_E200"
1271 memory
=32 # supposedly
1273 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1274 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1275 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1276 output
="rockbox.mi4"
1277 appextra
="recorder:gui"
1282 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1283 bootoutput
="pp5022.mi4"
1284 # toolset is the tools within the tools directory that we build for
1285 # this particular target.
1286 toolset
="$genericbitmaptools scramble"
1287 # architecture, manufacturer and model for the target-tree build
1289 t_manufacturer
="sandisk"
1290 t_model
="sansa-e200"
1296 target
="-DELIO_TPJ1022"
1299 tool
="$rootdir/tools/scramble -add tpj2"
1300 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1301 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1302 output
="rockbox.elio"
1303 appextra
="recorder:gui"
1308 boottool
="$rootdir/tools/scramble -mi4v2"
1309 bootoutput
="pp5020.mi4"
1310 # toolset is the tools within the tools directory that we build for
1311 # this particular target.
1312 toolset
="$genericbitmaptools scramble"
1313 # architecture, manufacturer and model for the target-tree build
1315 t_manufacturer
="tatung"
1320 echo "Please select a supported target platform!"
1326 echo "Platform set to $archos"
1330 ############################################################################
1331 # Amount of memory, for those that can differ. They have $memory unset at
1335 if [ -z "$memory" ]; then
1339 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1352 echo "Enter size of your RAM (in MB): (defaults to 2)"
1365 echo "Memory size selected: $memory MB"
1369 ##################################################################
1370 # Figure out build "type"
1373 # the ifp7x0 is the only platform that supports building a gdb stub like
1377 gdbstub
="(G)DB stub, "
1384 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual (N)"
1390 if test $t_manufacturer = "archos"; then
1391 # Archos SH-based players do this somewhat differently for
1393 appsdir
='\$(ROOTDIR)/flash/bootbox'
1396 appsdir
='\$(ROOTDIR)/bootloader'
1399 if test -n "$boottool"; then
1402 if test -n "$bootoutput"; then
1406 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
1408 echo "Bootloader build selected"
1413 extradefines
="-DSIMULATOR"
1414 echo "Simulator build selected"
1417 echo "Advanced build selected"
1421 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1422 appsdir
='\$(ROOTDIR)/gdb'
1431 echo "GDB stub build selected"
1434 appsdir
='\$(ROOTDIR)/manual'
1435 firmdir
='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ignores target
1439 echo "Manual build selected"
1443 echo "Normal build selected"
1447 # to be able running "make manual" from non-manual configuration
1450 manualdev
="recorderv2fm"
1453 manualdev
="recorderv2fm"
1459 manualdev
="ipodmini"
1466 if [ -z "$debug" ]; then
1467 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
1470 echo "Using source code root directory: $rootdir"
1472 # this was once possible to change at build-time, but no more:
1477 if [ "yes" = "$simulator" ]; then
1478 # setup compiler and things for simulator
1481 if [ -d "archos" ]; then
1482 echo "sub directory archos already present"
1485 echo "created an archos subdirectory for simulating the hard disk"
1489 # Now, figure out version number of the (gcc) compiler we are about to use
1490 gccver
=`$CC -dumpversion`;
1492 if [ -z "$gccver" ]; then
1493 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1494 echo "WARNING: this may cause your build to fail since we cannot do the"
1495 echo "WARNING: checks we want now."
1498 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1501 num1
=`echo $gccver | cut -d . -f1`
1502 num2
=`echo $gccver | cut -d . -f2`
1503 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1510 echo "Using $CC $gccver ($gccnum)"
1512 if test "$gccnum" -ge "400"; then
1513 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1514 # so we ignore that warnings for now
1516 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
1519 if test "$gccnum" -ge "401"; then
1520 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1521 # will break strict-aliasing rules"
1523 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
1528 # check the compiler for SH platforms
1529 if test "$CC" = "sh-elf-gcc"; then
1530 if test "$gccnum" -lt "400"; then
1531 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1532 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1534 # figure out patch status
1535 gccpatch
=`$CC --version`;
1537 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
1538 echo "gcc $gccver is rockbox patched"
1539 # then convert -O to -Os to get smaller binaries!
1540 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1542 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1543 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1548 if test "$CC" = "m68k-elf-gcc"; then
1549 # convert -O to -Os to get smaller binaries!
1550 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1553 if test "$1" = "--ccache"; then
1554 echo "Enable ccache for building"
1557 if test "$1" != "--no-ccache"; then
1558 ccache
=`findtool ccache`
1559 if test -n "$ccache"; then
1560 echo "Found and uses ccache ($ccache)"
1565 if test -n "$ccache"; then
1569 if test "X$endian" = "Xbig"; then
1570 defendian
="ROCKBOX_BIG_ENDIAN"
1572 defendian
="ROCKBOX_LITTLE_ENDIAN"
1576 -e "s,@ENDIAN@,${defendian},g" \
1577 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1578 -e "s,@config_rtc@,$config_rtc,g" \
1579 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
1581 /* This header was made by configure */
1582 #ifndef __BUILD_AUTOCONF_H
1583 #define __BUILD_AUTOCONF_H
1585 /* Define endianess for the target or simulator platform */
1588 /* Define this if you build rockbox to support the logf logging and display */
1589 #undef ROCKBOX_HAS_LOGF
1591 /* optional defines for RTC mod for h1x0 */
1595 #endif /* __BUILD_AUTOCONF_H */
1598 if test -n "$t_cpu"; then
1599 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1600 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1601 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1605 if test "$simulator" = "yes"; then
1606 # add simul make stuff on the #SIMUL# line
1607 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1608 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1610 # delete the lines that match
1611 simmagic1
='/@SIMUL1@/D'
1612 simmagic2
='/@SIMUL2@/D'
1616 -e "s,@ROOTDIR@,${rootdir},g" \
1617 -e "s,@DEBUG@,${debug},g" \
1618 -e "s,@MEMORY@,${memory},g" \
1619 -e "s,@TARGET_ID@,${target_id},g" \
1620 -e "s,@TARGET@,${target},g" \
1621 -e "s,@CPU@,${t_cpu},g" \
1622 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
1623 -e "s,@ARCHOS@,${archos},g" \
1624 -e "s,@LANGUAGE@,${language},g" \
1625 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
1626 -e "s,@PWD@,${pwd},g" \
1627 -e "s,@CC@,${CC},g" \
1628 -e "s,@LD@,${LD},g" \
1629 -e "s,@AR@,${AR},g" \
1630 -e "s,@AS@,${AS},g" \
1631 -e "s,@OC@,${OC},g" \
1632 -e "s,@WINDRES@,${WINDRES},g" \
1633 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1634 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1635 -e "s,@RANLIB@,${RANLIB},g" \
1636 -e "s,@TOOL@,${tool},g" \
1637 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1638 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1639 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1640 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1641 -e "s,@OUTPUT@,${output},g" \
1642 -e "s,@APPEXTRA@,${appextra},g" \
1643 -e "s,@ARCHOSROM@,${archosrom},g" \
1644 -e "s,@FLASHFILE@,${flash},g" \
1645 -e "s,@PLUGINS@,${plugins},g" \
1646 -e "s,@CODECS@,${swcodec},g" \
1647 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1648 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1649 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1650 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1651 -e "s!@LDOPTS@!${LDOPTS}!g" \
1652 -e "s,@LOADADDRESS@,${loadaddress},g" \
1653 -e "s,@EXTRADEF@,${extradefines},g" \
1654 -e "s,@APPSDIR@,${appsdir},g" \
1655 -e "s,@FIRMDIR@,${firmdir},g" \
1656 -e "s,@TOOLSDIR@,${toolsdir},g" \
1657 -e "s,@APPS@,${apps},g" \
1658 -e "s,@SIMVER@,${simver},g" \
1659 -e "s,@GCCVER@,${gccver},g" \
1660 -e "s,@GCCNUM@,${gccnum},g" \
1661 -e "s,@UNAME@,${uname},g" \
1662 -e "s,@ENDIAN@,${defendian},g" \
1663 -e "s,@TOOLSET@,${toolset},g" \
1666 -e "s,@MANUALDEV@,${manualdev},g" \
1668 ## Automaticly generated. http://www.rockbox.org/
1676 # old 'make' versions don't have the built-in 'info' function
1677 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1678 ifeq (\$(call info),old)
1679 export info=echo "\$\$(1)";
1682 export ROOTDIR=@ROOTDIR@
1683 export FIRMDIR=@FIRMDIR@
1684 export APPSDIR=@APPSDIR@
1685 export TOOLSDIR=@TOOLSDIR@
1686 export DOCSDIR=\$(ROOTDIR)/docs
1687 export MANUALDIR=\${ROOTDIR}/manual
1688 export DEBUG=@DEBUG@
1689 export ARCHOS=@ARCHOS@
1690 export ARCHOSROM=@ARCHOSROM@
1691 export FLASHFILE=@FLASHFILE@
1692 export TARGET_ID=@TARGET_ID@
1693 export TARGET=@TARGET@
1695 export MANUFACTURER=@MANUFACTURER@
1697 export BUILDDIR=@PWD@
1698 export LANGUAGE=@LANGUAGE@
1699 export VOICELANGUAGE=@VOICELANGUAGE@
1700 export MEMORYSIZE=@MEMORY@
1701 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
1702 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1703 export MKFIRMWARE=@TOOL@
1704 export BMP2RB_MONO=@BMP2RB_MONO@
1705 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1706 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1707 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1708 export BINARY=@OUTPUT@
1709 export APPEXTRA=@APPEXTRA@
1710 export ENABLEDPLUGINS=@PLUGINS@
1711 export SOFTWARECODECS=@CODECS@
1712 export EXTRA_DEFINES=@EXTRADEF@
1719 export WINDRES=@WINDRES@
1720 export DLLTOOL=@DLLTOOL@
1721 export DLLWRAP=@DLLWRAP@
1722 export RANLIB=@RANLIB@
1723 export PROFILE_OPTS=@PROFILE_OPTS@
1724 export SIMVER=@SIMVER@
1725 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
1726 export GCCOPTS=@GCCOPTS@
1727 export TARGET_INC=@TARGET_INC@
1728 export LOADADDRESS=@LOADADDRESS@
1729 export SHARED_FLAG=@SHARED_FLAG@
1730 export LDOPTS=@LDOPTS@
1731 export GCCVER=@GCCVER@
1732 export GCCNUM=@GCCNUM@
1733 export UNAME=@UNAME@
1734 export MANUALDEV=@MANUALDEV@
1736 # Do not print "Entering directory ..."
1737 MAKEFLAGS += --no-print-directory
1739 .PHONY: all clean tags zip tools manual bin build info
1744 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
1749 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1750 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
1755 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1756 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
1759 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
1761 veryclean: clean toolsclean
1764 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
1767 \$(SILENT)echo Cleaning build directory
1768 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
1769 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
1770 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
1771 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt \
1772 voicefontids *.wav *.mp3 *.voice
1775 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
1778 \$(SILENT)rm -f TAGS
1779 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
1780 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
1781 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
1782 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
1785 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
1788 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
1789 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1792 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
1795 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1796 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
1799 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1800 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1803 \$(SILENT)rm -f rockbox.tar
1804 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1805 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1808 \$(SILENT)bzip2 -f9 rockbox.tar
1811 \$(SILENT)gzip -f9 rockbox.tar
1815 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
1817 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
1818 manual-zhtml: manual-zip
1820 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
1822 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
1824 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
1827 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ features
1830 @echo "A few helpful make targets"
1832 @echo "all - builds a full Rockbox (default), including tools"
1833 @echo "bin - builds only the Rockbox.<target name> file"
1834 @echo "clean - cleans a build directory (not tools)"
1835 @echo "veryclean - cleans the build and tools directories"
1836 @echo "manual - builds a manual"
1837 @echo "manual-html - HTML manual"
1838 @echo "manual-zip - HTML manual (zipped)"
1839 @echo "manual-txt - txt manual"
1840 @echo "fullzip - creates a rockbox.zip of your build with fonts"
1841 @echo "zip - creates a rockbox.zip of your build (no fonts)"
1842 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
1843 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
1844 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
1845 @echo "fontzip - creates rockbox-fonts.zip"
1846 @echo "mapzip - creates rockbox-maps.zip with all .map files"
1847 @echo "tools - builds the tools only"
1848 @echo "install - installs your build (for simulator builds only)"
1852 if [ "yes" = "$simulator" ]; then
1854 cat >> Makefile
<<EOF
1857 @echo "installing a full setup in your archos dir"
1858 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
1863 if [ "yes" = "$voice" ]; then
1865 cat >> Makefile
<<EOF
1867 voice: tools features
1868 \$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
1869 for lang in \`echo \$(VOICELANGUAGE) |sed "s/,/ /g"\`; do \$(TOOLSDIR)/genvoice.sh \$(ROOTDIR) \$\$lang \$(ARCHOS)\$\$feat \$(TARGET_ID) voicesettings-\$\$lang.sh ; done \\
1874 echo "Created Makefile"