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"
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 if [ "$memory" = "2" ]; then
261 echo "Memory size selected: 8MB"
267 if [ "$archos" = "h120" ]; then
268 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
269 have_rtc_alarm
="#define HAVE_RTC_ALARM"
270 echo "RTC functions enabled (DS1339/DS3231)"
282 if [ "yes" = "$use_debug" ]; then
284 GCCOPTS
="$GCCOPTS -g -DDEBUG"
286 if [ "yes" = "$logf" ]; then
287 use_logf
="#define ROCKBOX_HAS_LOGF 1"
289 if [ "yes" = "$simulator" ]; then
291 extradefines
="$extradefines -DSIMULATOR"
293 if [ "yes" = "$profile" ]; then
294 extradefines
="$extradefines -DRB_PROFILE"
295 PROFILE_OPTS
="-finstrument-functions"
300 echo "Building voice for $archos"
303 if [ `which flite` ]; then
305 FLITE_OPTS
="FLITE_OPTS=\"\""
307 DEFAULT_TTS_OPTS
=$FLITE_OPTS
308 DEFAULT_NOISEFLOOR
="500"
311 if [ `which speak` ]; then
313 ESPEAK_OPTS
="ESPEAK_OPTS=\"\""
315 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
316 DEFAULT_NOISEFLOOR
="500"
319 if [ `which festival` ]; then
320 FESTIVAL
="(F)estival "
321 FESTIVAL_OPTS
="FLITE_OPTS=\"\""
322 DEFAULT_TTS
="festival"
323 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
324 DEFAULT_NOISEFLOOR
="500"
328 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ]; then
329 echo "You need Festival, eSpeak or Flite in your path to build voice files"
333 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}(${DEFAULT_CHOICE})?"
338 NOISEFLOOR
="500" # TODO: check this value
344 TTS_OPTS
=$ESPEAK_OPTS
347 TTS_ENGINE
="festival"
349 TTS_OPTS
=$FESTIVAL_OPTS
352 TTS_ENGINE
=$DEFAULT_TTS
353 TTS_OPTS
=$DEFAULT_TTS_OPTS
354 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
356 echo "Using $TTS_ENGINE for TTS"
360 if [ `which oggenc` ]; then
363 VORBIS_OPTS
="VORBIS_OPTS=\"-q0 --downmix\""
364 DEFAULT_ENC_OPTS
=$VORBIS_OPTS
367 if [ `which speexenc` ]; then
368 SPEEXENC
="(S)peexenc "
369 DEFAULT_ENC
="speexenc"
370 SPEEX_OPTS
="" # TODO: find appropriate options for speex
371 DEFAULT_ENC_OPTS
=$SPEEX_OPTS
374 if [ `which lame` ]; then
377 LAME_OPTS
="LAME_OPTS=\"--resample 12 -t -m m -h -V 9 -S\""
378 DEFAULT_ENC_OPTS
=$LAME_OPTS
382 if [ "$LAME" = "" ]; then
383 echo "You need to have Lame installed to build voice files"
386 echo "Encoder to use: ${LAME}${OGGENC}${SPEEXENC}(${DEFAULT_CHOICE})?"
388 echo "Note: Use Lame - the other options won't work"
393 ENC_OPTS
=$VORBIS_OPTS
405 ENC_OPTS
=$DEFAULT_ENC_OPTS
407 echo "Using $ENCODER for encoding voice clips"
409 cat > voicesettings.sh
<<EOF
410 TTS_ENGINE="${TTS_ENGINE}"
413 NOISEFLOOR="${NOISEFLOOR}"
420 # figure out which languages that are around
421 for file in $rootdir/apps
/lang
/*.lang
; do
422 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
423 langs
="$langs $clean"
427 for one
in $langs; do
438 for one
in $langs; do
439 if [ "$num" = "$pick" ]; then
449 if test "$opt" = "--help"; then
450 echo "Rockbox configure script."
451 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
452 echo "Do *NOT* run this within the tools directory!"
454 echo "Usage: configure [--ccache][--no-ccache]"
458 if test -r "configure"; then
459 # this is a check for a configure script in the current directory, it there
460 # is one, try to figure out if it is this one!
462 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
463 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
464 echo "It will only cause you pain and grief. Instead do this:"
467 echo " mkdir build-dir"
469 echo " ../tools/configure"
471 echo "Much happiness will arise from this. Enjoy"
476 # get our current directory
479 if { echo $pwd |
grep " "; } then
480 echo "You're running this script in a path that contains space. The build"
481 echo "system is unfortunately not clever enough to deal with this. Please"
482 echo "run the script from a different path, rename the path or fix the build"
487 if [ -z "$rootdir" ]; then
488 ##################################################################
489 # Figure out where the source code root is!
491 rootdir
=`dirname $0`/..
/
493 #####################################################################
494 # Convert the possibly relative directory name to an absolute version
500 # cd back to the build dir
505 appsdir
='\$(ROOTDIR)/apps'
506 firmdir
='\$(ROOTDIR)/firmware'
507 toolsdir
='\$(ROOTDIR)/tools'
510 ##################################################################
511 # Figure out target platform
514 echo "Enter target platform:"
516 ==Archos== ==iriver== ==Apple iPod==
517 0) Player/Studio 10) H120/H140 20) Color/Photo
518 1) Recorder 11) H320/H340 21) Nano
519 2) FM Recorder 12) iHP-100/110/115 22) Video
520 3) Recorder v2 13) iFP-790 23) 3G
521 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
522 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
526 ==iAudio== ==Toshiba== ==SanDisk==
527 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
528 31) M5/M5L 51) Sansa e200R
536 # Set of tools built for all target platforms:
537 toolset
="rdf2binary convbdf codepages"
539 # Toolsets for some target families:
540 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
541 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
542 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
543 ipodbitmaptools
="$toolset scramble ipod_fw bmp2rb codepages"
544 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
545 # generic is used by IFP, H10, Sansa-e200
546 genericbitmaptools
="$toolset bmp2rb"
549 # ---- For each target ----
552 # target_id: a unique number identifying this target, DOES NOT necessarily
553 # have to be the menu number. Just use the currently highest
554 # number+1 when you add a new target.
555 # archos: short model name used all over to identify this target
556 # memory: number of megabytes of RAM this target has. If the amount can
557 # be selected by the size prompt, let memory be unset here
558 # target: -Ddefine passed to the build commands to make the correct
559 # config-*.h file get included etc
560 # tool: the tool that takes a plain binary and converts that into a
561 # working "firmware" file for your target
562 # output: the final output file name
563 # boottool: the tool that takes a plain binary and generates a bootloader
564 # file for your target (or blank to use $tool)
565 # bootoutput:the final output file name for the bootloader (or blank to use
567 # appextra: passed to the APPEXTRA variable in the Makefiles.
568 # TODO: add proper explanation
569 # archosrom: used only for Archos targets that build a special flashable .ucl
570 # image. Set to blank for other builds.
571 # flash: the same as archosrom. These two should be merged
572 # plugins: set to 'yes' to build the plugins. Early development builds can
573 # set this to no in the early stages to have an easier life for a
575 # swcodec: set 'yes' on swcodec targets
576 # toolset: lists what particular tools in the tools/ directory that this
577 # target needs to have built prior to building Rockbox
580 # *cc: sets up gcc and compiler options for your target builds. Note
581 # that if you select a simulator build, the compiler selection is
582 # overridden later in the script.
589 target
="-DARCHOS_PLAYER"
591 tool
="$rootdir/tools/scramble"
593 appextra
="player:gui"
594 archosrom
="$pwd/rombox.ucl"
595 flash
="$pwd/rockbox.ucl"
599 # toolset is the tools within the tools directory that we build for
600 # this particular target.
601 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
603 # Note: the convbdf is present in the toolset just because: 1) the
604 # firmware/Makefile assumes it is present always, and 2) we will need it when we
605 # build the player simulator
608 t_manufacturer
="archos"
615 target
="-DARCHOS_RECORDER"
617 tool
="$rootdir/tools/scramble"
618 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
619 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
621 appextra
="recorder:gui"
622 archosrom
=""#"$pwd/rombox.ucl"
623 flash
="$pwd/rockbox.ucl"
626 # toolset is the tools within the tools directory that we build for
627 # this particular target.
628 toolset
=$archosbitmaptools
630 t_manufacturer
="archos"
637 target
="-DARCHOS_FMRECORDER"
639 tool
="$rootdir/tools/scramble -fm"
640 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
641 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
643 appextra
="recorder:gui"
644 archosrom
=""#"$pwd/rombox.ucl"
645 flash
="$pwd/rockbox.ucl"
648 # toolset is the tools within the tools directory that we build for
649 # this particular target.
650 toolset
=$archosbitmaptools
652 t_manufacturer
="archos"
659 target
="-DARCHOS_RECORDERV2"
661 tool
="$rootdir/tools/scramble -v2"
662 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
663 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
665 appextra
="recorder:gui"
666 archosrom
=""#"$pwd/rombox.ucl"
667 flash
="$pwd/rockbox.ucl"
670 # toolset is the tools within the tools directory that we build for
671 # this particular target.
672 toolset
=$archosbitmaptools
674 t_manufacturer
="archos"
681 target
="-DARCHOS_ONDIOSP"
683 tool
="$rootdir/tools/scramble -osp"
684 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
685 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
687 appextra
="recorder:gui"
688 archosrom
="$pwd/rombox.ucl"
689 flash
="$pwd/rockbox.ucl"
692 # toolset is the tools within the tools directory that we build for
693 # this particular target.
694 toolset
=$archosbitmaptools
696 t_manufacturer
="archos"
703 target
="-DARCHOS_ONDIOFM"
705 tool
="$rootdir/tools/scramble -ofm"
706 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
707 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
709 appextra
="recorder:gui"
710 archosrom
=""#"$pwd/rombox.ucl"
711 flash
="$pwd/rockbox.ucl"
714 toolset
=$archosbitmaptools
716 t_manufacturer
="archos"
723 target
="-DARCHOS_AV300"
726 tool
="$rootdir/tools/scramble -mm=C"
727 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
728 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
730 appextra
="recorder:gui"
735 # toolset is the tools within the tools directory that we build for
736 # this particular target.
737 toolset
="$toolset scramble descramble bmp2rb codepages"
738 # architecture, manufacturer and model for the target-tree build
740 t_manufacturer
="archos"
747 target
="-DIRIVER_H120"
750 tool
="$rootdir/tools/scramble -add=h120"
751 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
752 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
753 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
754 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
755 output
="rockbox.iriver"
756 appextra
="recorder:gui"
758 flash
="$pwd/rombox.iriver"
761 # toolset is the tools within the tools directory that we build for
762 # this particular target.
763 toolset
=$iriverbitmaptools
765 t_manufacturer
="iriver"
772 target
="-DIRIVER_H300"
775 tool
="$rootdir/tools/scramble -add=h300"
776 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
777 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
778 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
779 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
780 output
="rockbox.iriver"
781 appextra
="recorder:gui"
786 # toolset is the tools within the tools directory that we build for
787 # this particular target.
788 toolset
=$iriverbitmaptools
790 t_manufacturer
="iriver"
797 target
="-DIRIVER_H100"
800 tool
="$rootdir/tools/scramble -add=h100"
801 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
802 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
803 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
804 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
805 output
="rockbox.iriver"
806 appextra
="recorder:gui"
811 # toolset is the tools within the tools directory that we build for
812 # this particular target.
813 toolset
=$iriverbitmaptools
815 t_manufacturer
="iriver"
822 target
="-DIRIVER_IFP7XX"
826 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
827 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
829 appextra
="recorder:gui"
834 # toolset is the tools within the tools directory that we build for
835 # this particular target.
836 toolset
=$genericbitmaptools
838 t_manufacturer
="pnx0101"
839 t_model
="iriver-ifp7xx"
845 target
="-DIRIVER_H10"
848 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
849 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
850 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
852 appextra
="recorder:gui"
857 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
858 bootoutput
="H10_20GC.mi4"
859 # toolset is the tools within the tools directory that we build for
860 # this particular target.
861 toolset
="$genericbitmaptools scramble"
862 # architecture, manufacturer and model for the target-tree build
864 t_manufacturer
="iriver"
871 target
="-DIRIVER_H10_5GB"
874 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
875 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
876 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
878 appextra
="recorder:gui"
883 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
885 # toolset is the tools within the tools directory that we build for
886 # this particular target.
887 toolset
="$genericbitmaptools scramble"
888 # architecture, manufacturer and model for the target-tree build
890 t_manufacturer
="iriver"
897 target
="-DIPOD_COLOR"
900 tool
="$rootdir/tools/scramble -add=ipco"
901 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
902 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
903 output
="rockbox.ipod"
904 appextra
="recorder:gui"
909 bootoutput
="bootloader-$archos.ipod"
910 # toolset is the tools within the tools directory that we build for
911 # this particular target.
912 toolset
=$ipodbitmaptools
913 # architecture, manufacturer and model for the target-tree build
915 t_manufacturer
="ipod"
925 tool
="$rootdir/tools/scramble -add=nano"
926 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
927 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
928 output
="rockbox.ipod"
929 appextra
="recorder:gui"
934 bootoutput
="bootloader-$archos.ipod"
935 # toolset is the tools within the tools directory that we build for
936 # this particular target.
937 toolset
=$ipodbitmaptools
938 # architecture, manufacturer and model for the target-tree build
940 t_manufacturer
="ipod"
947 target
="-DIPOD_VIDEO"
949 tool
="$rootdir/tools/scramble -add=ipvd"
950 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
951 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
952 output
="rockbox.ipod"
953 appextra
="recorder:gui"
958 bootoutput
="bootloader-$archos.ipod"
959 # toolset is the tools within the tools directory that we build for
960 # this particular target.
961 toolset
=$ipodbitmaptools
962 # architecture, manufacturer and model for the target-tree build
964 t_manufacturer
="ipod"
974 tool
="$rootdir/tools/scramble -add=ip3g"
975 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
976 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
977 output
="rockbox.ipod"
978 appextra
="recorder:gui"
983 bootoutput
="bootloader-$archos.ipod"
984 # toolset is the tools within the tools directory that we build for
985 # this particular target.
986 toolset
=$ipodbitmaptools
987 # architecture, manufacturer and model for the target-tree build
989 t_manufacturer
="ipod"
999 tool
="$rootdir/tools/scramble -add=ip4g"
1000 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1001 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1002 output
="rockbox.ipod"
1003 appextra
="recorder:gui"
1008 bootoutput
="bootloader-$archos.ipod"
1009 # toolset is the tools within the tools directory that we build for
1010 # this particular target.
1011 toolset
=$ipodbitmaptools
1012 # architecture, manufacturer and model for the target-tree build
1014 t_manufacturer
="ipod"
1021 target
="-DIPOD_MINI"
1024 tool
="$rootdir/tools/scramble -add=mini"
1025 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1026 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1027 output
="rockbox.ipod"
1028 appextra
="recorder:gui"
1033 bootoutput
="bootloader-$archos.ipod"
1034 # toolset is the tools within the tools directory that we build for
1035 # this particular target.
1036 toolset
=$ipodbitmaptools
1037 # architecture, manufacturer and model for the target-tree build
1039 t_manufacturer
="ipod"
1046 target
="-DIPOD_MINI2G"
1049 tool
="$rootdir/tools/scramble -add=mn2g"
1050 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1051 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1052 output
="rockbox.ipod"
1053 appextra
="recorder:gui"
1058 bootoutput
="bootloader-$archos.ipod"
1059 # toolset is the tools within the tools directory that we build for
1060 # this particular target.
1061 toolset
=$ipodbitmaptools
1062 # architecture, manufacturer and model for the target-tree build
1064 t_manufacturer
="ipod"
1071 target
="-DIPOD_1G2G"
1074 tool
="$rootdir/tools/scramble -add=1g2g"
1075 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1076 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1077 output
="rockbox.ipod"
1078 appextra
="recorder:gui"
1083 bootoutput
="bootloader-$archos.ipod"
1084 # toolset is the tools within the tools directory that we build for
1085 # this particular target.
1086 toolset
=$ipodbitmaptools
1087 # architecture, manufacturer and model for the target-tree build
1089 t_manufacturer
="ipod"
1096 target
="-DIAUDIO_X5"
1099 tool
="$rootdir/tools/scramble -add=iax5"
1100 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1101 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1102 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1103 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1104 output
="rockbox.iaudio"
1105 appextra
="recorder:gui"
1110 # toolset is the tools within the tools directory that we build for
1111 # this particular target.
1112 toolset
="$iaudiobitmaptools"
1113 # architecture, manufacturer and model for the target-tree build
1115 t_manufacturer
="iaudio"
1122 target
="-DIAUDIO_M5"
1125 tool
="$rootdir/tools/scramble -add=iam5"
1126 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1127 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1128 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1129 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1130 output
="rockbox.iaudio"
1131 appextra
="recorder:gui"
1136 # toolset is the tools within the tools directory that we build for
1137 # this particular target.
1138 toolset
="$iaudiobitmaptools"
1139 # architecture, manufacturer and model for the target-tree build
1141 t_manufacturer
="iaudio"
1148 target
="-DGIGABEAT_F"
1151 tool
="$rootdir/tools/scramble -add=giga"
1152 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1153 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1154 output
="rockbox.gigabeat"
1155 appextra
="recorder:gui"
1160 toolset
=$gigabeatbitmaptools
1161 boottool
="$rootdir/tools/scramble -gigabeat"
1162 bootoutput
="FWIMG01.DAT"
1163 # architecture, manufacturer and model for the target-tree build
1165 t_manufacturer
="s3c2440"
1166 t_model
="gigabeat-fx"
1172 target
="-DSANSA_E200"
1173 memory
=32 # supposedly
1175 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1176 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1177 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1178 output
="rockbox.mi4"
1179 appextra
="recorder:gui"
1184 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1185 bootoutput
="PP5022.mi4"
1186 # toolset is the tools within the tools directory that we build for
1187 # this particular target.
1188 toolset
="$genericbitmaptools scramble"
1189 # architecture, manufacturer and model for the target-tree build
1191 t_manufacturer
="sandisk"
1192 t_model
="sansa-e200"
1196 # the e200R model is pretty much identical to the e200, it only has a
1197 # different option to the scramble tool when building a bootloader and
1198 # makes the bootloader output file name in all lower case.
1201 target
="-DSANSA_E200"
1202 memory
=32 # supposedly
1204 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1205 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1206 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1207 output
="rockbox.mi4"
1208 appextra
="recorder:gui"
1213 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1214 bootoutput
="pp5022.mi4"
1215 # toolset is the tools within the tools directory that we build for
1216 # this particular target.
1217 toolset
="$genericbitmaptools scramble"
1218 # architecture, manufacturer and model for the target-tree build
1220 t_manufacturer
="sandisk"
1221 t_model
="sansa-e200"
1227 target
="-DELIO_TPJ1022"
1230 tool
="$rootdir/tools/scramble -add tpj2"
1231 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1232 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1233 output
="rockbox.elio"
1234 appextra
="recorder:gui"
1239 boottool
="$rootdir/tools/scramble -mi4v2"
1240 bootoutput
="pp5020.mi4"
1241 # toolset is the tools within the tools directory that we build for
1242 # this particular target.
1243 toolset
="$genericbitmaptools scramble"
1244 # architecture, manufacturer and model for the target-tree build
1246 t_manufacturer
="tatung"
1251 echo "Please select a supported target platform!"
1257 echo "Platform set to $archos"
1261 ############################################################################
1262 # Amount of memory, for those that can differ. They have $memory unset at
1266 if [ -z "$memory" ]; then
1270 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1283 echo "Enter size of your RAM (in MB): (defaults to 2)"
1296 echo "Memory size selected: $memory MB"
1300 ##################################################################
1301 # Figure out build "type"
1304 # the ifp7x0 is the only platform that supports building a gdb stub like
1308 gdbstub
="(G)DB stub, "
1315 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual, (V)oice? (N)"
1321 if test -n "$archosrom"; then
1322 # Archos SH-based players do this somewhat differently for
1324 appsdir
='\$(ROOTDIR)/flash/bootbox'
1327 appsdir
='\$(ROOTDIR)/bootloader'
1330 if test -n "$boottool"; then
1333 if test -n "$bootoutput"; then
1337 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
1339 echo "Bootloader build selected"
1344 extradefines
="-DSIMULATOR"
1345 echo "Simulator build selected"
1348 echo "Advanced build selected"
1352 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1353 appsdir
='\$(ROOTDIR)/gdb'
1362 echo "GDB stub build selected"
1365 appsdir
='\$(ROOTDIR)/manual'
1366 firmdir
='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ignores target
1370 echo "Manual build selected"
1373 echo "Voice build selected"
1375 toolset
="${toolset} voicefont wavtrim"
1380 echo "Normal build selected"
1384 # to be able running "make manual" from non-manual configuration
1387 manualdev
="recorderv2fm"
1390 manualdev
="recorderv2fm"
1396 manualdev
="ipodmini"
1403 if [ -z "$debug" ]; then
1404 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
1407 echo "Using source code root directory: $rootdir"
1409 # this was once possible to change at build-time, but no more:
1412 # Ask about language if building voice
1413 if [ "yes" = "$voice" ]; then
1414 echo "Select a number for the language to use (default is english)"
1417 language
=`whichlang`
1419 if [ -z "$language" ]; then
1423 echo "Language set to $language"
1428 if [ "yes" = "$simulator" ]; then
1429 # setup compiler and things for simulator
1432 if [ -d "archos" ]; then
1433 echo "sub directory archos already present"
1436 echo "created an archos subdirectory for simulating the hard disk"
1440 # Now, figure out version number of the (gcc) compiler we are about to use
1441 gccver
=`$CC -dumpversion`;
1443 if [ -z "$gccver" ]; then
1444 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1445 echo "WARNING: this may cause your build to fail since we cannot do the"
1446 echo "WARNING: checks we want now."
1449 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1452 num1
=`echo $gccver | cut -d . -f1`
1453 num2
=`echo $gccver | cut -d . -f2`
1454 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1461 echo "Using $CC $gccver ($gccnum)"
1463 if test "$gccnum" -ge "400"; then
1464 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1465 # so we ignore that warnings for now
1467 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
1470 if test "$gccnum" -ge "401"; then
1471 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1472 # will break strict-aliasing rules"
1474 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
1479 # check the compiler for SH platforms
1480 if test "$CC" = "sh-elf-gcc"; then
1481 if test "$gccnum" -lt "400"; then
1482 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1483 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1485 # figure out patch status
1486 gccpatch
=`$CC --version`;
1488 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
1489 echo "gcc $gccver is rockbox patched"
1490 # then convert -O to -Os to get smaller binaries!
1491 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1493 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1494 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1499 if test "$CC" = "m68k-elf-gcc"; then
1500 # convert -O to -Os to get smaller binaries!
1501 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1504 if test "$1" = "--ccache"; then
1505 echo "Enable ccache for building"
1508 if test "$1" != "--no-ccache"; then
1509 ccache
=`findtool ccache`
1510 if test -n "$ccache"; then
1511 echo "Found and uses ccache ($ccache)"
1516 if test -n "$ccache"; then
1520 if test "X$endian" = "Xbig"; then
1521 defendian
="ROCKBOX_BIG_ENDIAN"
1523 defendian
="ROCKBOX_LITTLE_ENDIAN"
1527 -e "s,@ENDIAN@,${defendian},g" \
1528 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1529 -e "s,@config_rtc@,$config_rtc,g" \
1530 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
1532 /* This header was made by configure */
1533 #ifndef __BUILD_AUTOCONF_H
1534 #define __BUILD_AUTOCONF_H
1536 /* Define endianess for the target or simulator platform */
1539 /* Define this if you build rockbox to support the logf logging and display */
1540 #undef ROCKBOX_HAS_LOGF
1542 /* optional defines for RTC mod for h1x0 */
1546 #endif /* __BUILD_AUTOCONF_H */
1549 if test -n "$t_cpu"; then
1550 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1551 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1552 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1556 if test "$simulator" = "yes"; then
1557 # add simul make stuff on the #SIMUL# line
1558 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1559 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1561 # delete the lines that match
1562 simmagic1
='/@SIMUL1@/D'
1563 simmagic2
='/@SIMUL2@/D'
1567 -e "s,@ROOTDIR@,${rootdir},g" \
1568 -e "s,@DEBUG@,${debug},g" \
1569 -e "s,@MEMORY@,${memory},g" \
1570 -e "s,@TARGET_ID@,${target_id},g" \
1571 -e "s,@TARGET@,${target},g" \
1572 -e "s,@CPU@,${t_cpu},g" \
1573 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
1574 -e "s,@ARCHOS@,${archos},g" \
1575 -e "s,@LANGUAGE@,${language},g" \
1576 -e "s,@PWD@,${pwd},g" \
1577 -e "s,@CC@,${CC},g" \
1578 -e "s,@LD@,${LD},g" \
1579 -e "s,@AR@,${AR},g" \
1580 -e "s,@AS@,${AS},g" \
1581 -e "s,@OC@,${OC},g" \
1582 -e "s,@WINDRES@,${WINDRES},g" \
1583 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1584 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1585 -e "s,@RANLIB@,${RANLIB},g" \
1586 -e "s,@TOOL@,${tool},g" \
1587 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1588 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1589 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1590 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1591 -e "s,@OUTPUT@,${output},g" \
1592 -e "s,@APPEXTRA@,${appextra},g" \
1593 -e "s,@ARCHOSROM@,${archosrom},g" \
1594 -e "s,@FLASHFILE@,${flash},g" \
1595 -e "s,@PLUGINS@,${plugins},g" \
1596 -e "s,@CODECS@,${swcodec},g" \
1597 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1598 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1599 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1600 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1601 -e "s!@LDOPTS@!${LDOPTS}!g" \
1602 -e "s,@LOADADDRESS@,${loadaddress},g" \
1603 -e "s,@EXTRADEF@,${extradefines},g" \
1604 -e "s,@APPSDIR@,${appsdir},g" \
1605 -e "s,@FIRMDIR@,${firmdir},g" \
1606 -e "s,@TOOLSDIR@,${toolsdir},g" \
1607 -e "s,@APPS@,${apps},g" \
1608 -e "s,@SIMVER@,${simver},g" \
1609 -e "s,@GCCVER@,${gccver},g" \
1610 -e "s,@GCCNUM@,${gccnum},g" \
1611 -e "s,@UNAME@,${uname},g" \
1612 -e "s,@ENDIAN@,${defendian},g" \
1613 -e "s,@TOOLSET@,${toolset},g" \
1616 -e "s,@MANUALDEV@,${manualdev},g" \
1618 ## Automaticly generated. http://www.rockbox.org/
1626 # old 'make' versions don't have the built-in 'info' function
1627 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1628 ifeq (\$(call info),old)
1629 export info=echo "\$\$(1)";
1632 export ROOTDIR=@ROOTDIR@
1633 export FIRMDIR=@FIRMDIR@
1634 export APPSDIR=@APPSDIR@
1635 export TOOLSDIR=@TOOLSDIR@
1636 export DOCSDIR=\$(ROOTDIR)/docs
1637 export MANUALDIR=\${ROOTDIR}/manual
1638 export DEBUG=@DEBUG@
1639 export ARCHOS=@ARCHOS@
1640 export ARCHOSROM=@ARCHOSROM@
1641 export FLASHFILE=@FLASHFILE@
1642 export TARGET_ID=@TARGET_ID@
1643 export TARGET=@TARGET@
1645 export MANUFACTURER=@MANUFACTURER@
1647 export BUILDDIR=@PWD@
1648 export LANGUAGE=@LANGUAGE@
1649 export MEMORYSIZE=@MEMORY@
1650 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
1651 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1652 export MKFIRMWARE=@TOOL@
1653 export BMP2RB_MONO=@BMP2RB_MONO@
1654 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1655 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1656 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1657 export BINARY=@OUTPUT@
1658 export APPEXTRA=@APPEXTRA@
1659 export ENABLEDPLUGINS=@PLUGINS@
1660 export SOFTWARECODECS=@CODECS@
1661 export EXTRA_DEFINES=@EXTRADEF@
1668 export WINDRES=@WINDRES@
1669 export DLLTOOL=@DLLTOOL@
1670 export DLLWRAP=@DLLWRAP@
1671 export RANLIB=@RANLIB@
1672 export PROFILE_OPTS=@PROFILE_OPTS@
1673 export SIMVER=@SIMVER@
1674 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
1675 export GCCOPTS=@GCCOPTS@
1676 export TARGET_INC=@TARGET_INC@
1677 export LOADADDRESS=@LOADADDRESS@
1678 export SHARED_FLAG=@SHARED_FLAG@
1679 export LDOPTS=@LDOPTS@
1680 export GCCVER=@GCCVER@
1681 export GCCNUM=@GCCNUM@
1682 export UNAME=@UNAME@
1683 export MANUALDEV=@MANUALDEV@
1685 # Do not print "Entering directory ..."
1686 MAKEFLAGS += --no-print-directory
1688 .PHONY: all clean tags zip tools manual bin build info
1693 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
1698 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1699 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
1704 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1705 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
1708 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
1710 veryclean: clean toolsclean
1713 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
1716 \$(SILENT)echo Cleaning build directory
1717 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
1718 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
1719 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
1720 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt
1723 \$(TOOLSDIR)/genvoice.sh \$(ROOTDIR) \$(LANGUAGE) \$(ARCHOS) voicesettings.sh
1726 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
1729 \$(SILENT)rm -f TAGS
1730 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
1731 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
1732 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
1733 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
1736 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
1739 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1742 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
1745 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
1748 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1751 \$(SILENT)rm -f rockbox.tar
1752 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1755 \$(SILENT)bzip2 -f9 rockbox.tar
1758 \$(SILENT)gzip -f9 rockbox.tar
1762 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
1764 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
1765 manual-zhtml: manual-zip
1767 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
1769 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
1771 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
1774 @echo "A few helpful make targets"
1776 @echo "all - builds a full Rockbox (default), including tools"
1777 @echo "bin - builds only the Rockbox.<target name> file"
1778 @echo "clean - cleans a build directory (not tools)"
1779 @echo "veryclean - cleans the build and tools directories"
1780 @echo "manual - builds a manual"
1781 @echo "manual-html - HTML manual"
1782 @echo "manual-zip - HTML manual (zipped)"
1783 @echo "manual-txt - txt manual"
1784 @echo "fullzip - creates a rockbox.zip of your build with fonts"
1785 @echo "zip - creates a rockbox.zip of your build (no fonts)"
1786 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
1787 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
1788 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
1789 @echo "fontzip - creates rockbox-fonts.zip"
1790 @echo "mapzip - creates rockbox-maps.zip with all .map files"
1791 @echo "tools - builds the tools only"
1792 @echo "install - installs your build (for simulator builds only)"
1796 if [ "yes" = "$simulator" ]; then
1798 cat >> Makefile
<<EOF
1801 @echo "installing a full setup in your archos dir"
1802 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
1807 echo "Created Makefile"