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"
15 use_simsound
="#undef ROCKBOX_HAS_SIMSOUND"
17 scriptver
=`echo '$Revision$' | sed -e 's:\\$::g' -e 's/Revision: //'`
20 # Begin Function Definitions
30 WINDRES
=${prefix}windres
31 DLLTOOL
=${prefix}dlltool
32 DLLWRAP
=${prefix}dllwrap
33 RANLIB
=${prefix}ranlib
41 # naive approach to selecting a mingw cross-compiler on linux/*nix
42 echo "Enabling win32 crosscompiling"
44 prefixtools i586-mingw32msvc-
46 LDOPTS
="-lgdi32 -luser32 -mwindows"
47 # add cross-compiler option(s)
48 GCCOPTS
="$GCCOPTS -mno-cygwin"
50 output
="rockboxui.exe" # use this as output binary name
52 endian
="little" # windows is little endian
56 if test -n "$codecs"; then
57 if test -f "/usr/include/sys/soundcard.h"; then
58 # We have a header file so we can build the sound code
59 use_simsound
="#define ROCKBOX_HAS_SIMSOUND 1"
60 echo "Enabled PCM sound playback in simulator"
61 fi # header file present
65 # scan the $PATH for the given command
72 # echo "checks for $file in $path" >&2
73 if test -f "$path/$file"; then
83 # default tool setup for native building
86 GCCOPTS
='-W -Wall -g -fno-builtin'
88 output
="rockboxui" # use this as default output binary name
90 if [ "$simver" = "sdl" ]; then
91 # generic sdl-config checker
92 sdl
=`findtool sdl-config`
94 if [ -z "$sdl" ]; then
95 echo "configure didn't find sdl-config, which indicates that you"
96 echo "don't have SDL (properly) installed. Please correct and"
97 echo "re-run configure!"
104 echo "Cygwin host detected"
106 SHARED_FLAG
="-shared"
107 if [ "$simver" = "win32" ]; then
109 GCCOPTS
="$GCCOPTS -mno-cygwin -DNOCYGWIN"
110 LDOPTS
="-lgdi32 -luser32 -mno-cygwin"
111 elif [ "$simver" = "sdl" ]; then
113 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
114 LDOPTS
="`sdl-config --libs` -mconsole"
119 LDOPTS
='-L/usr/X11R6/lib -lSM -lICE -lXt -lX11 -lXmu -lSM -lICE -lX11 -lpthread'
122 output
="rockboxui.exe" # use this as output binary name
126 echo "Linux host detected"
128 SHARED_FLAG
="-shared"
129 if [ "$simver" = "win32" ]; then
130 LDOPTS
='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread'
131 crosswincc
# setup cross-compiler
132 elif [ "$simver" = "sdl" ]; then
133 if [ "0" != `sdl-config --libs |grep -c mwindows` ]; then
134 # Enable crosscompiling if sdl-config is from Windows SDL
137 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
138 LDOPTS
="`sdl-config --libs`"
141 LDOPTS
='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread'
143 fi # not a cross-compiler
147 echo "FreeBSD host detected"
148 LDOPTS
='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -dl -lpthread'
149 SHARED_FLAG
="-shared"
150 if [ "$simver" = "win32" ]; then
151 crosswincc
# setup cross-compiler
156 echo "Darwin host detected"
158 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
159 LDOPTS
="`sdl-config --libs`"
160 SHARED_FLAG
="-dynamiclib -Wl\,-single_module"
161 use_simsound
="#define ROCKBOX_HAS_SIMSOUND 1"
162 echo "Enabled PCM sound playback in simulator"
166 echo "Unsupported system: $uname, fix configure and retry"
171 if [ "`uname -m`" = "x86_64" ]; then
172 GCCOPTS
="$GCCOPTS -fPIC" # needed to make shared objects link
175 if test "X$crosscompile" != "Xyes"; then
177 cat >/tmp
/conftest-
$id.c
<<EOF
179 int main(int argc, char **argv)
182 char *varp = (char *)&var;
190 $CC -o /tmp
/conftest-
$id /tmp
/conftest-
$id.c
2>/dev
/null
192 if test `/tmp/conftest-$id 2>/dev/null` -gt "1"; then
199 echo "Simulator environment deemed $endian endian"
201 # use wildcard here to make it work even if it was named *.exe like
203 rm -f /tmp
/conftest-
$id*
209 GCCOPTS
="$CCOPTS -m1"
210 GCCOPTIMIZE
="-fomit-frame-pointer -fschedule-insns"
215 prefixtools calmrisc16-unknown-elf-
216 GCCOPTS
="-Wl\,--no-check-sections $CCOPTS"
217 GCCOPTIMIZE
="-fomit-frame-pointer"
222 prefixtools m68k-elf-
223 GCCOPTS
="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
224 GCCOPTIMIZE
="-fomit-frame-pointer"
230 GCCOPTS
="$CCOPTS -mcpu=arm7tdmi"
231 if test "X$1" != "Xshort"; then
232 GCCOPTS
="$GCCOPTS -mlong-calls"
234 GCCOPTIMIZE
="-fomit-frame-pointer"
240 GCCOPTS
="$CCOPTS -mcpu=arm9tdmi -mlong-calls"
241 GCCOPTIMIZE
="-fomit-frame-pointer"
246 ##################################################################
247 # Prompt for specific developer options
250 echo "Enter your developer options (press enter when done)"
251 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling"
252 if [ "$memory" = "2" ]; then
253 echo -n ", (8)MB MOD"
255 if [ "$archos" = "h120" ]; then
256 echo -n ", (R)TC MOD"
262 while [ $cont = "1" ]; do
268 if [ "yes" = "$profile" ]; then
269 echo "Debug is incompatible with profiling"
276 echo "logf() support enabled"
280 echo "Simulator build enabled"
284 if [ "yes" = "$use_debug" ]; then
285 echo "Profiling is incompatible with debug"
287 echo "Profiling support is enabled"
292 if [ "$memory" = "2" ]; then
294 echo "Memory size selected: 8MB"
300 if [ "$archos" = "h120" ]; then
301 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
302 have_rtc_alarm
="#define HAVE_RTC_ALARM"
303 echo "RTC functions enabled (DS1339/DS3231)"
315 if [ "yes" = "$use_debug" ]; then
317 GCCOPTS
="$GCCOPTS -g -DDEBUG"
319 if [ "yes" = "$logf" ]; then
320 use_logf
="#define ROCKBOX_HAS_LOGF 1"
322 if [ "yes" = "$simulator" ]; then
324 extradefines
="$extradefines -DSIMULATOR"
327 if [ "yes" = "$profile" ]; then
328 extradefines
="$extradefines -DRB_PROFILE"
329 PROFILE_OPTS
="-finstrument-functions"
335 if [ -z "$simver" ]; then
337 ##################################################################
338 # Figure out what simulator version
340 # x11 is deprecated so hide it from the question
341 # win32 is also deprecated
344 echo "Build (S)DL version? (S)"
356 # make sure the code knows this is for win32
357 extradefines
="$extradefines -DWIN32"
361 extradefines
="$extradefines -DX11"
365 extradefines
="$extradefines -DSDL"
368 echo "Selected $simver simulator"
373 echo "Building voice for $archos"
376 if [ `which flite` ]; then
378 FLITE_OPTS
="FLITE_OPTS=\"\""
380 DEFAULT_TTS_OPTS
=$FLITE_OPTS
381 DEFAULT_NOISEFLOOR
="500"
384 if [ `which speak` ]; then
386 ESPEAK_OPTS
="ESPEAK_OPTS=\"\""
388 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
389 DEFAULT_NOISEFLOOR
="500"
392 if [ `which festival` ]; then
393 FESTIVAL
="(F)estival "
394 FESTIVAL_OPTS
="FLITE_OPTS=\"\""
395 DEFAULT_TTS
="festival"
396 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
397 DEFAULT_NOISEFLOOR
="500"
401 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ]; then
402 echo "You need Festival, eSpeak or Flite in your path to build voice files"
406 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}(${DEFAULT_CHOICE})?"
411 NOISEFLOOR
="500" # TODO: check this value
417 TTS_OPTS
=$ESPEAK_OPTS
420 TTS_ENGINE
="festival"
422 TTS_OPTS
=$FESTIVAL_OPTS
425 TTS_ENGINE
=$DEFAULT_TTS
426 TTS_OPTS
=$DEFAULT_TTS_OPTS
427 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
429 echo "Using $TTS_ENGINE for TTS"
433 if [ `which oggenc` ]; then
436 VORBIS_OPTS
="VORBIS_OPTS=\"-q0 --downmix\""
437 DEFAULT_ENC_OPTS
=$VORBIS_OPTS
440 if [ `which speexenc` ]; then
441 SPEEXENC
="(S)peexenc "
442 DEFAULT_ENC
="speexenc"
443 SPEEX_OPTS
="" # TODO: find appropriate options for speex
444 DEFAULT_ENC_OPTS
=$SPEEX_OPTS
447 if [ `which lame` ]; then
450 LAME_OPTS
="LAME_OPTS=\"--resample 12 -t -m m -h -V 9 -S\""
451 DEFAULT_ENC_OPTS
=$LAME_OPTS
455 if [ "$LAME" = "" ]; then
456 echo "You need to have Lame installed to build voice files"
459 echo "Encoder to use: ${LAME}${OGGENC}${SPEEXENC}(${DEFAULT_CHOICE})?"
461 echo "Note: Use Lame - the other options won't work"
466 ENC_OPTS
=$VORBIS_OPTS
478 ENC_OPTS
=$DEFAULT_ENC_OPTS
480 echo "Using $ENCODER for encoding voice clips"
482 cat > voicesettings.sh
<<EOF
483 TTS_ENGINE="${TTS_ENGINE}"
486 NOISEFLOOR="${NOISEFLOOR}"
493 # figure out which languages that are around
494 for file in $rootdir/apps
/lang
/*.lang
; do
495 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
496 langs
="$langs $clean"
500 for one
in $langs; do
511 for one
in $langs; do
512 if [ "$num" = "$pick" ]; then
522 if test "$opt" = "--help"; then
523 echo "Rockbox configure script."
524 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
525 echo "Do *NOT* run this within the tools directory!"
527 echo "Usage: configure [--ccache][--no-ccache]"
531 if test -r "configure"; then
532 # this is a check for a configure script in the current directory, it there
533 # is one, try to figure out if it is this one!
535 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
536 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
537 echo "It will only cause you pain and grief. Instead do this:"
540 echo " mkdir build-dir"
542 echo " ../tools/configure"
544 echo "Much happiness will arise from this. Enjoy"
549 # get our current directory
552 if [ -z "$rootdir" ]; then
553 ##################################################################
554 # Figure out where the source code root is!
556 rootdir
=`dirname $0`/..
/
558 #####################################################################
559 # Convert the possibly relative directory name to an absolute version
565 # cd back to the build dir
570 appsdir
='\$(ROOTDIR)/apps'
571 firmdir
='\$(ROOTDIR)/firmware'
572 toolsdir
='\$(ROOTDIR)/tools'
575 ##################################################################
576 # Figure out target platform
579 echo "Enter target platform:"
581 ==Archos== ==iriver== ==Apple iPod==
582 0) Player/Studio 10) H120/H140 20) Color/Photo
583 1) Recorder 11) H320/H340 21) Nano
584 2) FM Recorder 12) iHP-100/110/115 22) Video
585 3) Recorder v2 13) iFP-790 23) 3G
586 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
587 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
590 ==iAudio== ==Toshiba== ==SanDisk==
591 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
592 31) M5/M5L 51) Sansa e200R
600 # Set of tools built for all target platforms:
601 toolset
="rdf2binary convbdf codepages"
603 # Toolsets for some target families:
604 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
605 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
606 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
607 ipodbitmaptools
="$toolset scramble ipod_fw bmp2rb codepages"
608 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
609 # generic is used by IFP, H10, Sansa-e200
610 genericbitmaptools
="$toolset bmp2rb"
613 # ---- For each target ----
616 # target_id: a unique number identifying this target, DOES NOT necessarily
617 # have to be the menu number. Just use the currently highest
618 # number+1 when you add a new target.
619 # archos: short model name used all over to identify this target
620 # target: -Ddefine passed to the build commands to make the correct
621 # config-*.h file get included etc
622 # tool: the tool that takes a plain binary and converts that into a
623 # working "firmware" file for your target
624 # output: the final output file name
625 # boottool: the tool that takes a plain binary and generates a bootloader
626 # file for your target (or blank to use $tool)
627 # bootoutput:the final output file name for the bootloader (or blank to use
629 # appextra: passed to the APPEXTRA variable in the Makefiles.
630 # TODO: add proper explanation
631 # archosrom: used only for Archos targets that build a special flashable .ucl
632 # image. Set to blank for other builds.
633 # flash: the same as archosrom. These two should be merged
634 # plugins: set to 'yes' to build the plugins. Early development builds can
635 # set this to no in the early stages to have an easier life for a
637 # codecs: lists codecs to build for this target
638 # toolset: lists what particular tools in the tools/ directory that this
639 # target needs to have built prior to building Rockbox
642 # *cc: sets up gcc and compiler options for your target builds. Note
643 # that if you select a simulator build, the compiler selection is
644 # overridden later in the script.
651 target
="-DARCHOS_PLAYER"
654 tool
="$rootdir/tools/scramble"
656 appextra
="player:gui"
657 archosrom
="$pwd/rombox.ucl"
658 flash
="$pwd/rockbox.ucl"
662 # toolset is the tools within the tools directory that we build for
663 # this particular target.
664 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
666 # Note: the convbdf is present in the toolset just because: 1) the
667 # firmware/Makefile assumes it is present always, and 2) we will need it when we
668 # build the player simulator
671 t_manufacturer
="archos"
678 target
="-DARCHOS_RECORDER"
681 tool
="$rootdir/tools/scramble"
682 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
683 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
685 appextra
="recorder:gui"
686 archosrom
="$pwd/rombox.ucl"
687 flash
="$pwd/rockbox.ucl"
690 # toolset is the tools within the tools directory that we build for
691 # this particular target.
692 toolset
=$archosbitmaptools
694 t_manufacturer
="archos"
701 target
="-DARCHOS_FMRECORDER"
704 tool
="$rootdir/tools/scramble -fm"
705 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
706 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
708 appextra
="recorder:gui"
709 archosrom
="$pwd/rombox.ucl"
710 flash
="$pwd/rockbox.ucl"
713 # toolset is the tools within the tools directory that we build for
714 # this particular target.
715 toolset
=$archosbitmaptools
717 t_manufacturer
="archos"
724 target
="-DARCHOS_RECORDERV2"
727 tool
="$rootdir/tools/scramble -v2"
728 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
729 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
731 appextra
="recorder:gui"
732 archosrom
="$pwd/rombox.ucl"
733 flash
="$pwd/rockbox.ucl"
736 # toolset is the tools within the tools directory that we build for
737 # this particular target.
738 toolset
=$archosbitmaptools
740 t_manufacturer
="archos"
747 target
="-DARCHOS_ONDIOSP"
750 tool
="$rootdir/tools/scramble -osp"
751 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
752 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
754 appextra
="recorder:gui"
755 archosrom
="$pwd/rombox.ucl"
756 flash
="$pwd/rockbox.ucl"
759 # toolset is the tools within the tools directory that we build for
760 # this particular target.
761 toolset
=$archosbitmaptools
763 t_manufacturer
="archos"
770 target
="-DARCHOS_ONDIOFM"
773 tool
="$rootdir/tools/scramble -ofm"
774 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
775 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
777 appextra
="recorder:gui"
778 archosrom
="$pwd/rombox.ucl"
779 flash
="$pwd/rockbox.ucl"
782 toolset
=$archosbitmaptools
784 t_manufacturer
="archos"
791 target
="-DARCHOS_AV300"
794 tool
="$rootdir/tools/scramble -mm=C"
795 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
796 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
798 appextra
="recorder:gui"
803 # toolset is the tools within the tools directory that we build for
804 # this particular target.
805 toolset
="$toolset scramble descramble bmp2rb codepages"
806 # architecture, manufacturer and model for the target-tree build
808 t_manufacturer
="archos"
815 target
="-DIRIVER_H120"
818 tool
="$rootdir/tools/scramble -add=h120"
819 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
820 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
821 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
822 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
823 output
="rockbox.iriver"
824 appextra
="recorder:gui"
826 flash
="$pwd/rombox.iriver"
828 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
829 # toolset is the tools within the tools directory that we build for
830 # this particular target.
831 toolset
=$iriverbitmaptools
833 t_manufacturer
="iriver"
840 target
="-DIRIVER_H300"
843 tool
="$rootdir/tools/scramble -add=h300"
844 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
845 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
846 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
847 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
848 output
="rockbox.iriver"
849 appextra
="recorder:gui"
853 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
854 # toolset is the tools within the tools directory that we build for
855 # this particular target.
856 toolset
=$iriverbitmaptools
858 t_manufacturer
="iriver"
865 target
="-DIRIVER_H100"
868 tool
="$rootdir/tools/scramble -add=h100"
869 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
870 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
871 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
872 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
873 output
="rockbox.iriver"
874 appextra
="recorder:gui"
878 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
879 # toolset is the tools within the tools directory that we build for
880 # this particular target.
881 toolset
=$iriverbitmaptools
883 t_manufacturer
="iriver"
893 tool
="$rootdir/tools/scramble -add=iax5"
894 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
895 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
896 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
897 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
898 output
="rockbox.iaudio"
899 appextra
="recorder:gui"
903 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
904 # toolset is the tools within the tools directory that we build for
905 # this particular target.
906 toolset
="$iaudiobitmaptools"
907 # architecture, manufacturer and model for the target-tree build
909 t_manufacturer
="iaudio"
919 tool
="$rootdir/tools/scramble -add=iam5"
920 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
921 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
922 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
923 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
924 output
="rockbox.iaudio"
925 appextra
="recorder:gui"
929 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
930 # toolset is the tools within the tools directory that we build for
931 # this particular target.
932 toolset
="$iaudiobitmaptools"
933 # architecture, manufacturer and model for the target-tree build
935 t_manufacturer
="iaudio"
942 target
="-DIPOD_COLOR"
945 tool
="$rootdir/tools/scramble -add=ipco"
946 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
947 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
948 output
="rockbox.ipod"
949 appextra
="recorder:gui"
953 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
954 bootoutput
="bootloader-$archos.ipod"
955 # toolset is the tools within the tools directory that we build for
956 # this particular target.
957 toolset
=$ipodbitmaptools
958 # architecture, manufacturer and model for the target-tree build
960 t_manufacturer
="ipod"
970 tool
="$rootdir/tools/scramble -add=nano"
971 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
972 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
973 output
="rockbox.ipod"
974 appextra
="recorder:gui"
978 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
979 bootoutput
="bootloader-$archos.ipod"
980 # toolset is the tools within the tools directory that we build for
981 # this particular target.
982 toolset
=$ipodbitmaptools
983 # architecture, manufacturer and model for the target-tree build
985 t_manufacturer
="ipod"
992 target
="-DIPOD_VIDEO"
993 memory
=32 # 30GB models have 32MB, 60GB have 64MB
995 tool
="$rootdir/tools/scramble -add=ipvd"
996 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
997 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
998 output
="rockbox.ipod"
999 appextra
="recorder:gui"
1003 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1004 bootoutput
="bootloader-$archos.ipod"
1005 # toolset is the tools within the tools directory that we build for
1006 # this particular target.
1007 toolset
=$ipodbitmaptools
1008 # architecture, manufacturer and model for the target-tree build
1010 t_manufacturer
="ipod"
1020 tool
="$rootdir/tools/scramble -add=ip3g"
1021 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1022 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1023 output
="rockbox.ipod"
1024 appextra
="recorder:gui"
1028 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1029 bootoutput
="bootloader-$archos.ipod"
1030 # toolset is the tools within the tools directory that we build for
1031 # this particular target.
1032 toolset
=$ipodbitmaptools
1033 # architecture, manufacturer and model for the target-tree build
1035 t_manufacturer
="ipod"
1045 tool
="$rootdir/tools/scramble -add=ip4g"
1046 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1047 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1048 output
="rockbox.ipod"
1049 appextra
="recorder:gui"
1053 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1054 bootoutput
="bootloader-$archos.ipod"
1055 # toolset is the tools within the tools directory that we build for
1056 # this particular target.
1057 toolset
=$ipodbitmaptools
1058 # architecture, manufacturer and model for the target-tree build
1060 t_manufacturer
="ipod"
1067 target
="-DIPOD_MINI"
1070 tool
="$rootdir/tools/scramble -add=mini"
1071 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1072 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1073 output
="rockbox.ipod"
1074 appextra
="recorder:gui"
1078 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1079 bootoutput
="bootloader-$archos.ipod"
1080 # toolset is the tools within the tools directory that we build for
1081 # this particular target.
1082 toolset
=$ipodbitmaptools
1083 # architecture, manufacturer and model for the target-tree build
1085 t_manufacturer
="ipod"
1092 target
="-DIRIVER_IFP7XX"
1096 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1097 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1098 output
="rockbox.wma"
1099 appextra
="recorder:gui"
1103 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1104 # toolset is the tools within the tools directory that we build for
1105 # this particular target.
1106 toolset
=$genericbitmaptools
1108 t_manufacturer
="pnx0101"
1109 t_model
="iriver-ifp7xx"
1115 target
="-DGIGABEAT_F"
1119 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1120 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1121 output
="rockbox.gigabeat"
1122 appextra
="recorder:gui"
1126 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1127 toolset
=$gigabeatbitmaptools
1128 boottool
="$rootdir/tools/scramble -gigabeat"
1129 bootoutput
="FWIMG01.DAT"
1130 # architecture, manufacturer and model for the target-tree build
1132 t_manufacturer
="s3c2440"
1133 t_model
="gigabeat-fx"
1139 target
="-DIPOD_MINI2G"
1142 tool
="$rootdir/tools/scramble -add=mn2g"
1143 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1144 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1145 output
="rockbox.ipod"
1146 appextra
="recorder:gui"
1150 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1151 bootoutput
="bootloader-$archos.ipod"
1152 # toolset is the tools within the tools directory that we build for
1153 # this particular target.
1154 toolset
=$ipodbitmaptools
1155 # architecture, manufacturer and model for the target-tree build
1157 t_manufacturer
="ipod"
1164 target
="-DIRIVER_H10"
1167 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1168 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1169 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1170 output
="rockbox.mi4"
1171 appextra
="recorder:gui"
1175 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1176 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1177 bootoutput
="H10_20GC.mi4"
1178 # toolset is the tools within the tools directory that we build for
1179 # this particular target.
1180 toolset
="$genericbitmaptools scramble"
1181 # architecture, manufacturer and model for the target-tree build
1183 t_manufacturer
="iriver"
1190 target
="-DIRIVER_H10_5GB"
1193 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1194 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1195 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1196 output
="rockbox.mi4"
1197 appextra
="recorder:gui"
1201 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1202 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1203 bootoutput
="H10.mi4"
1204 # toolset is the tools within the tools directory that we build for
1205 # this particular target.
1206 toolset
="$genericbitmaptools scramble"
1207 # architecture, manufacturer and model for the target-tree build
1209 t_manufacturer
="iriver"
1216 target
="-DSANSA_E200"
1217 memory
=32 # supposedly
1219 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1220 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1221 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1222 output
="rockbox.mi4"
1223 appextra
="recorder:gui"
1227 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1228 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1229 bootoutput
="PP5022.mi4"
1230 # toolset is the tools within the tools directory that we build for
1231 # this particular target.
1232 toolset
="$genericbitmaptools scramble"
1233 # architecture, manufacturer and model for the target-tree build
1235 t_manufacturer
="sandisk"
1236 t_model
="sansa-e200"
1240 # the e200R model is pretty much identical to the e200, it only has a
1241 # different option to the scramble tool when building a bootloader and
1242 # makes the bootloader output file name in all lower case.
1245 target
="-DSANSA_E200"
1246 memory
=32 # supposedly
1248 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1249 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1250 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1251 output
="rockbox.mi4"
1252 appextra
="recorder:gui"
1256 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1257 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1258 bootoutput
="pp5022.mi4"
1259 # toolset is the tools within the tools directory that we build for
1260 # this particular target.
1261 toolset
="$genericbitmaptools scramble"
1262 # architecture, manufacturer and model for the target-tree build
1264 t_manufacturer
="sandisk"
1265 t_model
="sansa-e200"
1271 target
="-DELIO_TPJ1022"
1274 tool
="$rootdir/tools/scramble -add tpj2"
1275 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1276 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1277 output
="rockbox.elio"
1278 appextra
="recorder:gui"
1282 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1283 boottool
="$rootdir/tools/scramble -mi4v2"
1284 bootoutput
="pp5020.mi4"
1285 # toolset is the tools within the tools directory that we build for
1286 # this particular target.
1287 toolset
="$genericbitmaptools scramble"
1288 # architecture, manufacturer and model for the target-tree build
1290 t_manufacturer
="tatung"
1295 echo "Please select a supported target platform!"
1301 echo "Platform set to $archos"
1305 ############################################################################
1306 # Amount of memory, for those that can differ.
1309 if [ "$memory" = "2" ]; then
1311 if [ -z "$update" ]; then
1312 echo "Enter size of your RAM (in MB): (defaults to 2)"
1325 echo "Memory size selected: $memory MB"
1329 ##################################################################
1330 # Figure out build "type"
1333 # the ifp7x0 is the only platform that supports building a gdb stub like
1337 gdbstub
="(G)DB stub, "
1344 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual, (V)oice? (N)"
1350 if test -n "$archosrom"; then
1351 # Archos SH-based players do this somewhat differently for
1353 appsdir
='\$(ROOTDIR)/flash/bootbox'
1356 appsdir
='\$(ROOTDIR)/bootloader'
1359 if test -n "$boottool"; then
1362 if test -n "$bootoutput"; then
1366 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
1368 echo "Bootloader build selected"
1373 extradefines
="-DSIMULATOR"
1374 echo "Simulator build selected"
1378 echo "Advanced build selected"
1382 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1383 appsdir
='\$(ROOTDIR)/gdb'
1392 echo "GDB stub build selected"
1395 appsdir
='\$(ROOTDIR)/manual'
1396 firmdir
='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ignores target
1400 echo "Manual build selected"
1403 echo "Voice build selected"
1405 toolset
="${toolset} voicefont wavtrim"
1410 echo "Normal build selected"
1414 # to be able running "make manual" from non-manual configuration
1417 manualdev
="recorderv2fm"
1420 manualdev
="recorderv2fm"
1426 manualdev
="ipodmini"
1433 if [ -z "$debug" ]; then
1434 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
1437 echo "Using source code root directory: $rootdir"
1439 # this was once possible to change at build-time, but no more:
1442 # Ask about language if building voice
1443 if [ "yes" = "$voice" ]; then
1444 echo "Select a number for the language to use (default is english)"
1447 language
=`whichlang`
1449 if [ -z "$language" ]; then
1453 echo "Language set to $language"
1458 if [ "yes" = "$simulator" ]; then
1459 # setup compiler and things for simulator
1462 if [ -d "archos" ]; then
1463 echo "sub directory archos already present"
1466 echo "created an archos subdirectory for simulating the hard disk"
1470 # Now, figure out version number of the (gcc) compiler we are about to use
1471 gccver
=`$CC -dumpversion`;
1473 if [ -z "$gccver" ]; then
1474 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1475 echo "WARNING: this may cause your build to fail since we cannot do the"
1476 echo "WARNING: checks we want now."
1479 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1482 num1
=`echo $gccver | cut -d . -f1`
1483 num2
=`echo $gccver | cut -d . -f2`
1484 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1491 echo "Using $CC $gccver ($gccnum)"
1493 if test "$gccnum" -ge "400"; then
1494 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1495 # so we ignore that warnings for now
1497 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
1500 if test "$gccnum" -ge "401"; then
1501 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1502 # will break strict-aliasing rules"
1504 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
1509 # check the compiler for SH platforms
1510 if test "$CC" = "sh-elf-gcc"; then
1511 if test "$gccnum" -lt "400"; then
1512 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1513 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1515 # figure out patch status
1516 gccpatch
=`$CC --version`;
1518 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
1519 echo "gcc $gccver is rockbox patched"
1520 # then convert -O to -Os to get smaller binaries!
1521 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1523 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1524 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1529 if test "$1" = "--ccache"; then
1530 echo "Enable ccache for building"
1533 if test "$1" != "--no-ccache"; then
1534 ccache
=`findtool ccache`
1535 if test -n "$ccache"; then
1536 echo "Found and uses ccache ($ccache)"
1541 if test -n "$ccache"; then
1545 if test "X$endian" = "Xbig"; then
1546 defendian
="ROCKBOX_BIG_ENDIAN"
1548 defendian
="ROCKBOX_LITTLE_ENDIAN"
1552 -e "s,@ENDIAN@,${defendian},g" \
1553 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1554 -e "s,@SIMSOUND@,$use_simsound,g" \
1555 -e "s,@config_rtc@,$config_rtc,g" \
1556 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
1558 /* This header was made by configure */
1559 #ifndef __BUILD_AUTOCONF_H
1560 #define __BUILD_AUTOCONF_H
1562 /* Define endianess for the target or simulator platform */
1565 /* Define this if you build rockbox to support the logf logging and display */
1566 #undef ROCKBOX_HAS_LOGF
1568 /* Define this if you have the linux/soundcard.h header and thus can compile
1569 the sound-playing code in the X11 sim */
1572 /* optional defines for RTC mod for h1x0 */
1576 #endif /* __BUILD_AUTOCONF_H */
1579 if test -n "$t_cpu"; then
1580 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1581 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1582 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1586 if test "$simulator" = "yes"; then
1587 # add simul make stuff on the #SIMUL# line
1588 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1589 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1591 # delete the lines that match
1592 simmagic1
='/@SIMUL1@/D'
1593 simmagic2
='/@SIMUL2@/D'
1597 -e "s,@ROOTDIR@,${rootdir},g" \
1598 -e "s,@DEBUG@,${debug},g" \
1599 -e "s,@MEMORY@,${memory},g" \
1600 -e "s,@TARGET_ID@,${target_id},g" \
1601 -e "s,@TARGET@,${target},g" \
1602 -e "s,@ARCHOS@,${archos},g" \
1603 -e "s,@LANGUAGE@,${language},g" \
1604 -e "s,@PWD@,${pwd},g" \
1605 -e "s,@CC@,${CC},g" \
1606 -e "s,@LD@,${LD},g" \
1607 -e "s,@AR@,${AR},g" \
1608 -e "s,@AS@,${AS},g" \
1609 -e "s,@OC@,${OC},g" \
1610 -e "s,@WINDRES@,${WINDRES},g" \
1611 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1612 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1613 -e "s,@RANLIB@,${RANLIB},g" \
1614 -e "s,@TOOL@,${tool},g" \
1615 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1616 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1617 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1618 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1619 -e "s,@OUTPUT@,${output},g" \
1620 -e "s,@APPEXTRA@,${appextra},g" \
1621 -e "s,@ARCHOSROM@,${archosrom},g" \
1622 -e "s,@FLASHFILE@,${flash},g" \
1623 -e "s,@PLUGINS@,${plugins},g" \
1624 -e "s,@CODECS@,${codecs},g" \
1625 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1626 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1627 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1628 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1629 -e "s!@LDOPTS@!${LDOPTS}!g" \
1630 -e "s,@LOADADDRESS@,${loadaddress},g" \
1631 -e "s,@EXTRADEF@,${extradefines},g" \
1632 -e "s,@APPSDIR@,${appsdir},g" \
1633 -e "s,@FIRMDIR@,${firmdir},g" \
1634 -e "s,@TOOLSDIR@,${toolsdir},g" \
1635 -e "s,@APPS@,${apps},g" \
1636 -e "s,@SIMVER@,${simver},g" \
1637 -e "s,@GCCVER@,${gccver},g" \
1638 -e "s,@GCCNUM@,${gccnum},g" \
1639 -e "s,@UNAME@,${uname},g" \
1640 -e "s,@ENDIAN@,${defendian},g" \
1641 -e "s,@TOOLSET@,${toolset},g" \
1644 -e "s,@MANUALDEV@,${manualdev},g" \
1646 ## Automaticly generated. http://www.rockbox.org/
1654 # old 'make' versions don't have the built-in 'info' function
1655 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1656 ifeq (\$(call info),old)
1657 export info=echo "\$\$(1)";
1660 export ROOTDIR=@ROOTDIR@
1661 export FIRMDIR=@FIRMDIR@
1662 export APPSDIR=@APPSDIR@
1663 export TOOLSDIR=@TOOLSDIR@
1664 export DOCSDIR=\$(ROOTDIR)/docs
1665 export MANUALDIR=\${ROOTDIR}/manual
1666 export DEBUG=@DEBUG@
1667 export ARCHOS=@ARCHOS@
1668 export ARCHOSROM=@ARCHOSROM@
1669 export FLASHFILE=@FLASHFILE@
1670 export TARGET_ID=@TARGET_ID@
1671 export TARGET=@TARGET@
1673 export BUILDDIR=@PWD@
1674 export LANGUAGE=@LANGUAGE@
1675 export MEMORYSIZE=@MEMORY@
1676 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
1677 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1678 export MKFIRMWARE=@TOOL@
1679 export BMP2RB_MONO=@BMP2RB_MONO@
1680 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1681 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1682 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1683 export BINARY=@OUTPUT@
1684 export APPEXTRA=@APPEXTRA@
1685 export ENABLEDPLUGINS=@PLUGINS@
1686 export SOFTWARECODECS=@CODECS@
1687 export EXTRA_DEFINES=@EXTRADEF@
1694 export WINDRES=@WINDRES@
1695 export DLLTOOL=@DLLTOOL@
1696 export DLLWRAP=@DLLWRAP@
1697 export RANLIB=@RANLIB@
1698 export PROFILE_OPTS=@PROFILE_OPTS@
1699 export GCCOPTS=@GCCOPTS@
1700 export TARGET_INC=@TARGET_INC@
1701 export LOADADDRESS=@LOADADDRESS@
1702 export SIMVER=@SIMVER@
1703 export SIMDIR=\$(ROOTDIR)/uisimulator/\$(SIMVER)
1704 export SHARED_FLAG=@SHARED_FLAG@
1705 export LDOPTS=@LDOPTS@
1706 export GCCVER=@GCCVER@
1707 export GCCNUM=@GCCNUM@
1708 export UNAME=@UNAME@
1709 export MANUALDEV=@MANUALDEV@
1711 # Do not print "Entering directory ..."
1712 MAKEFLAGS += --no-print-directory
1714 .PHONY: all clean tags zip tools manual
1719 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1720 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
1725 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1726 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
1729 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
1731 veryclean: clean toolsclean
1734 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
1737 \$(SILENT)echo Cleaning build directory
1738 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
1739 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
1740 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
1741 html txt rockbox-manual*.zip sysfont.h
1744 \$(TOOLSDIR)/genvoice.sh \$(ROOTDIR) \$(LANGUAGE) \$(ARCHOS) voicesettings.sh
1747 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
1750 \$(SILENT)rm -f TAGS
1751 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
1752 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
1753 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
1754 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
1757 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
1760 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1763 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
1766 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
1769 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1772 \$(SILENT)rm -f rockbox.tar
1773 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1776 \$(SILENT)bzip2 -f9 rockbox.tar
1779 \$(SILENT)gzip -f9 rockbox.tar
1783 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
1785 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
1786 manual-zhtml: manual-zip
1788 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
1790 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
1792 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
1795 @echo "A few helpful make targets"
1797 @echo "all - builds a full Rockbox (default), including tools"
1798 @echo "bin - builds only the Rockbox.<target name> file"
1799 @echo "clean - cleans a build directory (not tools)"
1800 @echo "veryclean - cleans the build and tools directories"
1801 @echo "manual - builds a manual"
1802 @echo "manual-html - HTML manual"
1803 @echo "manual-zip - HTML manual (zipped)"
1804 @echo "manual-txt - txt manual"
1805 @echo "fullzip - creates a rockbox.zip of your build with fonts"
1806 @echo "zip - creates a rockbox.zip of your build (no fonts)"
1807 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
1808 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
1809 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
1810 @echo "fontzip - creates rockbox-fonts.zip"
1811 @echo "mapzip - creates rockbox-maps.zip with all .map files"
1812 @echo "tools - builds the tools only"
1813 @echo "install - installs your build (for simulator builds only)"
1817 if [ "yes" = "$simulator" ]; then
1819 cat >> Makefile
<<EOF
1822 @echo "installing a full setup in your archos dir"
1823 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
1828 echo "Created Makefile"