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"
117 LDOPTS
='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -dl -lpthread'
121 echo "Darwin host detected"
123 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
124 LDOPTS
="`sdl-config --libs`"
125 SHARED_FLAG
="-dynamiclib -Wl\,-single_module"
129 echo "Unsupported system: $uname, fix configure and retry"
134 if [ "`uname -m`" = "x86_64" ]; then
135 GCCOPTS
="$GCCOPTS -fPIC" # needed to make shared objects link
138 GCCOPTS
="$GCCOPTS -I\$(SIMDIR)"
140 if test "X$crosscompile" != "Xyes"; then
142 cat >/tmp
/conftest-
$id.c
<<EOF
144 int main(int argc, char **argv)
147 char *varp = (char *)&var;
155 $CC -o /tmp
/conftest-
$id /tmp
/conftest-
$id.c
2>/dev
/null
157 if test `/tmp/conftest-$id 2>/dev/null` -gt "1"; then
164 echo "Simulator environment deemed $endian endian"
166 # use wildcard here to make it work even if it was named *.exe like
168 rm -f /tmp
/conftest-
$id*
174 GCCOPTS
="$CCOPTS -m1"
175 GCCOPTIMIZE
="-fomit-frame-pointer -fschedule-insns"
180 prefixtools calmrisc16-unknown-elf-
181 GCCOPTS
="-Wl\,--no-check-sections $CCOPTS"
182 GCCOPTIMIZE
="-fomit-frame-pointer"
187 prefixtools m68k-elf-
188 GCCOPTS
="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
189 GCCOPTIMIZE
="-fomit-frame-pointer"
195 GCCOPTS
="$CCOPTS -mcpu=arm7tdmi"
196 if test "X$1" != "Xshort"; then
197 GCCOPTS
="$GCCOPTS -mlong-calls"
199 GCCOPTIMIZE
="-fomit-frame-pointer"
205 GCCOPTS
="$CCOPTS -mcpu=arm9tdmi -mlong-calls"
206 GCCOPTIMIZE
="-fomit-frame-pointer"
211 ##################################################################
212 # Prompt for specific developer options
215 echo "Enter your developer options (press enter when done)"
216 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling"
217 if [ "$memory" = "2" ]; then
218 echo -n ", (8)MB MOD"
220 if [ "$archos" = "h120" ]; then
221 echo -n ", (R)TC MOD"
227 while [ $cont = "1" ]; do
233 if [ "yes" = "$profile" ]; then
234 echo "Debug is incompatible with profiling"
241 echo "logf() support enabled"
245 echo "Simulator build enabled"
249 if [ "yes" = "$use_debug" ]; then
250 echo "Profiling is incompatible with debug"
252 echo "Profiling support is enabled"
257 if [ "$memory" = "2" ]; then
259 echo "Memory size selected: 8MB"
265 if [ "$archos" = "h120" ]; then
266 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
267 have_rtc_alarm
="#define HAVE_RTC_ALARM"
268 echo "RTC functions enabled (DS1339/DS3231)"
280 if [ "yes" = "$use_debug" ]; then
282 GCCOPTS
="$GCCOPTS -g -DDEBUG"
284 if [ "yes" = "$logf" ]; then
285 use_logf
="#define ROCKBOX_HAS_LOGF 1"
287 if [ "yes" = "$simulator" ]; then
289 extradefines
="$extradefines -DSIMULATOR"
291 if [ "yes" = "$profile" ]; then
292 extradefines
="$extradefines -DRB_PROFILE"
293 PROFILE_OPTS
="-finstrument-functions"
298 echo "Building voice for $archos"
301 if [ `which flite` ]; then
303 FLITE_OPTS
="FLITE_OPTS=\"\""
305 DEFAULT_TTS_OPTS
=$FLITE_OPTS
306 DEFAULT_NOISEFLOOR
="500"
309 if [ `which speak` ]; then
311 ESPEAK_OPTS
="ESPEAK_OPTS=\"\""
313 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
314 DEFAULT_NOISEFLOOR
="500"
317 if [ `which festival` ]; then
318 FESTIVAL
="(F)estival "
319 FESTIVAL_OPTS
="FLITE_OPTS=\"\""
320 DEFAULT_TTS
="festival"
321 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
322 DEFAULT_NOISEFLOOR
="500"
326 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ]; then
327 echo "You need Festival, eSpeak or Flite in your path to build voice files"
331 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}(${DEFAULT_CHOICE})?"
336 NOISEFLOOR
="500" # TODO: check this value
342 TTS_OPTS
=$ESPEAK_OPTS
345 TTS_ENGINE
="festival"
347 TTS_OPTS
=$FESTIVAL_OPTS
350 TTS_ENGINE
=$DEFAULT_TTS
351 TTS_OPTS
=$DEFAULT_TTS_OPTS
352 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
354 echo "Using $TTS_ENGINE for TTS"
358 if [ `which oggenc` ]; then
361 VORBIS_OPTS
="VORBIS_OPTS=\"-q0 --downmix\""
362 DEFAULT_ENC_OPTS
=$VORBIS_OPTS
365 if [ `which speexenc` ]; then
366 SPEEXENC
="(S)peexenc "
367 DEFAULT_ENC
="speexenc"
368 SPEEX_OPTS
="" # TODO: find appropriate options for speex
369 DEFAULT_ENC_OPTS
=$SPEEX_OPTS
372 if [ `which lame` ]; then
375 LAME_OPTS
="LAME_OPTS=\"--resample 12 -t -m m -h -V 9 -S\""
376 DEFAULT_ENC_OPTS
=$LAME_OPTS
380 if [ "$LAME" = "" ]; then
381 echo "You need to have Lame installed to build voice files"
384 echo "Encoder to use: ${LAME}${OGGENC}${SPEEXENC}(${DEFAULT_CHOICE})?"
386 echo "Note: Use Lame - the other options won't work"
391 ENC_OPTS
=$VORBIS_OPTS
403 ENC_OPTS
=$DEFAULT_ENC_OPTS
405 echo "Using $ENCODER for encoding voice clips"
407 cat > voicesettings.sh
<<EOF
408 TTS_ENGINE="${TTS_ENGINE}"
411 NOISEFLOOR="${NOISEFLOOR}"
418 # figure out which languages that are around
419 for file in $rootdir/apps
/lang
/*.lang
; do
420 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
421 langs
="$langs $clean"
425 for one
in $langs; do
436 for one
in $langs; do
437 if [ "$num" = "$pick" ]; then
447 if test "$opt" = "--help"; then
448 echo "Rockbox configure script."
449 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
450 echo "Do *NOT* run this within the tools directory!"
452 echo "Usage: configure [--ccache][--no-ccache]"
456 if test -r "configure"; then
457 # this is a check for a configure script in the current directory, it there
458 # is one, try to figure out if it is this one!
460 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
461 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
462 echo "It will only cause you pain and grief. Instead do this:"
465 echo " mkdir build-dir"
467 echo " ../tools/configure"
469 echo "Much happiness will arise from this. Enjoy"
474 # get our current directory
477 if { echo $pwd |
grep " "; } then
478 echo "You're running this script in a path that contains space. The build"
479 echo "system is unfortunately not clever enough to deal with this. Please"
480 echo "run the script from a different path, rename the path or fix the build"
485 if [ -z "$rootdir" ]; then
486 ##################################################################
487 # Figure out where the source code root is!
489 rootdir
=`dirname $0`/..
/
491 #####################################################################
492 # Convert the possibly relative directory name to an absolute version
498 # cd back to the build dir
503 appsdir
='\$(ROOTDIR)/apps'
504 firmdir
='\$(ROOTDIR)/firmware'
505 toolsdir
='\$(ROOTDIR)/tools'
508 ##################################################################
509 # Figure out target platform
512 echo "Enter target platform:"
514 ==Archos== ==iriver== ==Apple iPod==
515 0) Player/Studio 10) H120/H140 20) Color/Photo
516 1) Recorder 11) H320/H340 21) Nano
517 2) FM Recorder 12) iHP-100/110/115 22) Video
518 3) Recorder v2 13) iFP-790 23) 3G
519 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
520 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
523 ==iAudio== ==Toshiba== ==SanDisk==
524 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
525 31) M5/M5L 51) Sansa e200R
533 # Set of tools built for all target platforms:
534 toolset
="rdf2binary convbdf codepages"
536 # Toolsets for some target families:
537 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
538 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
539 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
540 ipodbitmaptools
="$toolset scramble ipod_fw bmp2rb codepages"
541 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
542 # generic is used by IFP, H10, Sansa-e200
543 genericbitmaptools
="$toolset bmp2rb"
546 # ---- For each target ----
549 # target_id: a unique number identifying this target, DOES NOT necessarily
550 # have to be the menu number. Just use the currently highest
551 # number+1 when you add a new target.
552 # archos: short model name used all over to identify this target
553 # target: -Ddefine passed to the build commands to make the correct
554 # config-*.h file get included etc
555 # tool: the tool that takes a plain binary and converts that into a
556 # working "firmware" file for your target
557 # output: the final output file name
558 # boottool: the tool that takes a plain binary and generates a bootloader
559 # file for your target (or blank to use $tool)
560 # bootoutput:the final output file name for the bootloader (or blank to use
562 # appextra: passed to the APPEXTRA variable in the Makefiles.
563 # TODO: add proper explanation
564 # archosrom: used only for Archos targets that build a special flashable .ucl
565 # image. Set to blank for other builds.
566 # flash: the same as archosrom. These two should be merged
567 # plugins: set to 'yes' to build the plugins. Early development builds can
568 # set this to no in the early stages to have an easier life for a
570 # codecs: lists codecs to build for this target
571 # toolset: lists what particular tools in the tools/ directory that this
572 # target needs to have built prior to building Rockbox
575 # *cc: sets up gcc and compiler options for your target builds. Note
576 # that if you select a simulator build, the compiler selection is
577 # overridden later in the script.
584 target
="-DARCHOS_PLAYER"
587 tool
="$rootdir/tools/scramble"
589 appextra
="player:gui"
590 archosrom
="$pwd/rombox.ucl"
591 flash
="$pwd/rockbox.ucl"
595 # toolset is the tools within the tools directory that we build for
596 # this particular target.
597 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
599 # Note: the convbdf is present in the toolset just because: 1) the
600 # firmware/Makefile assumes it is present always, and 2) we will need it when we
601 # build the player simulator
604 t_manufacturer
="archos"
611 target
="-DARCHOS_RECORDER"
614 tool
="$rootdir/tools/scramble"
615 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
616 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
618 appextra
="recorder:gui"
619 archosrom
=""#"$pwd/rombox.ucl"
620 flash
="$pwd/rockbox.ucl"
623 # toolset is the tools within the tools directory that we build for
624 # this particular target.
625 toolset
=$archosbitmaptools
627 t_manufacturer
="archos"
634 target
="-DARCHOS_FMRECORDER"
637 tool
="$rootdir/tools/scramble -fm"
638 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
639 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
641 appextra
="recorder:gui"
642 archosrom
=""#"$pwd/rombox.ucl"
643 flash
="$pwd/rockbox.ucl"
646 # toolset is the tools within the tools directory that we build for
647 # this particular target.
648 toolset
=$archosbitmaptools
650 t_manufacturer
="archos"
657 target
="-DARCHOS_RECORDERV2"
660 tool
="$rootdir/tools/scramble -v2"
661 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
662 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
664 appextra
="recorder:gui"
665 archosrom
=""#"$pwd/rombox.ucl"
666 flash
="$pwd/rockbox.ucl"
669 # toolset is the tools within the tools directory that we build for
670 # this particular target.
671 toolset
=$archosbitmaptools
673 t_manufacturer
="archos"
680 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"
706 tool
="$rootdir/tools/scramble -ofm"
707 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
708 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
710 appextra
="recorder:gui"
711 archosrom
=""#"$pwd/rombox.ucl"
712 flash
="$pwd/rockbox.ucl"
715 toolset
=$archosbitmaptools
717 t_manufacturer
="archos"
724 target
="-DARCHOS_AV300"
727 tool
="$rootdir/tools/scramble -mm=C"
728 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
729 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
731 appextra
="recorder:gui"
736 # toolset is the tools within the tools directory that we build for
737 # this particular target.
738 toolset
="$toolset scramble descramble bmp2rb codepages"
739 # architecture, manufacturer and model for the target-tree build
741 t_manufacturer
="archos"
748 target
="-DIRIVER_H120"
751 tool
="$rootdir/tools/scramble -add=h120"
752 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
753 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
754 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
755 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
756 output
="rockbox.iriver"
757 appextra
="recorder:gui"
759 flash
="$pwd/rombox.iriver"
761 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
762 # toolset is the tools within the tools directory that we build for
763 # this particular target.
764 toolset
=$iriverbitmaptools
766 t_manufacturer
="iriver"
773 target
="-DIRIVER_H300"
776 tool
="$rootdir/tools/scramble -add=h300"
777 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
778 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
779 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
780 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
781 output
="rockbox.iriver"
782 appextra
="recorder:gui"
786 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
787 # toolset is the tools within the tools directory that we build for
788 # this particular target.
789 toolset
=$iriverbitmaptools
791 t_manufacturer
="iriver"
798 target
="-DIRIVER_H100"
801 tool
="$rootdir/tools/scramble -add=h100"
802 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
803 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
804 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
805 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
806 output
="rockbox.iriver"
807 appextra
="recorder:gui"
811 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
812 # toolset is the tools within the tools directory that we build for
813 # this particular target.
814 toolset
=$iriverbitmaptools
816 t_manufacturer
="iriver"
826 tool
="$rootdir/tools/scramble -add=iax5"
827 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
828 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
829 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
830 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
831 output
="rockbox.iaudio"
832 appextra
="recorder:gui"
836 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
837 # toolset is the tools within the tools directory that we build for
838 # this particular target.
839 toolset
="$iaudiobitmaptools"
840 # architecture, manufacturer and model for the target-tree build
842 t_manufacturer
="iaudio"
852 tool
="$rootdir/tools/scramble -add=iam5"
853 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
854 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
855 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
856 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
857 output
="rockbox.iaudio"
858 appextra
="recorder:gui"
862 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
863 # toolset is the tools within the tools directory that we build for
864 # this particular target.
865 toolset
="$iaudiobitmaptools"
866 # architecture, manufacturer and model for the target-tree build
868 t_manufacturer
="iaudio"
875 target
="-DIPOD_COLOR"
878 tool
="$rootdir/tools/scramble -add=ipco"
879 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
880 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
881 output
="rockbox.ipod"
882 appextra
="recorder:gui"
886 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
887 bootoutput
="bootloader-$archos.ipod"
888 # toolset is the tools within the tools directory that we build for
889 # this particular target.
890 toolset
=$ipodbitmaptools
891 # architecture, manufacturer and model for the target-tree build
893 t_manufacturer
="ipod"
903 tool
="$rootdir/tools/scramble -add=nano"
904 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
905 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
906 output
="rockbox.ipod"
907 appextra
="recorder:gui"
911 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
912 bootoutput
="bootloader-$archos.ipod"
913 # toolset is the tools within the tools directory that we build for
914 # this particular target.
915 toolset
=$ipodbitmaptools
916 # architecture, manufacturer and model for the target-tree build
918 t_manufacturer
="ipod"
925 target
="-DIPOD_VIDEO"
926 memory
=32 # 30GB models have 32MB, 60GB have 64MB
928 tool
="$rootdir/tools/scramble -add=ipvd"
929 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
930 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
931 output
="rockbox.ipod"
932 appextra
="recorder:gui"
936 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
937 bootoutput
="bootloader-$archos.ipod"
938 # toolset is the tools within the tools directory that we build for
939 # this particular target.
940 toolset
=$ipodbitmaptools
941 # architecture, manufacturer and model for the target-tree build
943 t_manufacturer
="ipod"
953 tool
="$rootdir/tools/scramble -add=ip3g"
954 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
955 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
956 output
="rockbox.ipod"
957 appextra
="recorder:gui"
961 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
962 bootoutput
="bootloader-$archos.ipod"
963 # toolset is the tools within the tools directory that we build for
964 # this particular target.
965 toolset
=$ipodbitmaptools
966 # architecture, manufacturer and model for the target-tree build
968 t_manufacturer
="ipod"
978 tool
="$rootdir/tools/scramble -add=ip4g"
979 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
980 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
981 output
="rockbox.ipod"
982 appextra
="recorder:gui"
986 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
987 bootoutput
="bootloader-$archos.ipod"
988 # toolset is the tools within the tools directory that we build for
989 # this particular target.
990 toolset
=$ipodbitmaptools
991 # architecture, manufacturer and model for the target-tree build
993 t_manufacturer
="ipod"
1000 target
="-DIPOD_MINI"
1003 tool
="$rootdir/tools/scramble -add=mini"
1004 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1005 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1006 output
="rockbox.ipod"
1007 appextra
="recorder:gui"
1011 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1012 bootoutput
="bootloader-$archos.ipod"
1013 # toolset is the tools within the tools directory that we build for
1014 # this particular target.
1015 toolset
=$ipodbitmaptools
1016 # architecture, manufacturer and model for the target-tree build
1018 t_manufacturer
="ipod"
1025 target
="-DIRIVER_IFP7XX"
1029 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1030 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1031 output
="rockbox.wma"
1032 appextra
="recorder:gui"
1036 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1037 # toolset is the tools within the tools directory that we build for
1038 # this particular target.
1039 toolset
=$genericbitmaptools
1041 t_manufacturer
="pnx0101"
1042 t_model
="iriver-ifp7xx"
1048 target
="-DGIGABEAT_F"
1051 tool
="$rootdir/tools/scramble -add=giga"
1052 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1053 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1054 output
="rockbox.gigabeat"
1055 appextra
="recorder:gui"
1059 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1060 toolset
=$gigabeatbitmaptools
1061 boottool
="$rootdir/tools/scramble -gigabeat"
1062 bootoutput
="FWIMG01.DAT"
1063 # architecture, manufacturer and model for the target-tree build
1065 t_manufacturer
="s3c2440"
1066 t_model
="gigabeat-fx"
1072 target
="-DIPOD_MINI2G"
1075 tool
="$rootdir/tools/scramble -add=mn2g"
1076 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1077 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1078 output
="rockbox.ipod"
1079 appextra
="recorder:gui"
1083 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1084 bootoutput
="bootloader-$archos.ipod"
1085 # toolset is the tools within the tools directory that we build for
1086 # this particular target.
1087 toolset
=$ipodbitmaptools
1088 # architecture, manufacturer and model for the target-tree build
1090 t_manufacturer
="ipod"
1097 target
="-DIRIVER_H10"
1100 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1101 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1102 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1103 output
="rockbox.mi4"
1104 appextra
="recorder:gui"
1108 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1109 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1110 bootoutput
="H10_20GC.mi4"
1111 # toolset is the tools within the tools directory that we build for
1112 # this particular target.
1113 toolset
="$genericbitmaptools scramble"
1114 # architecture, manufacturer and model for the target-tree build
1116 t_manufacturer
="iriver"
1123 target
="-DIRIVER_H10_5GB"
1126 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1127 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1128 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1129 output
="rockbox.mi4"
1130 appextra
="recorder:gui"
1134 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1135 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1136 bootoutput
="H10.mi4"
1137 # toolset is the tools within the tools directory that we build for
1138 # this particular target.
1139 toolset
="$genericbitmaptools scramble"
1140 # architecture, manufacturer and model for the target-tree build
1142 t_manufacturer
="iriver"
1149 target
="-DSANSA_E200"
1150 memory
=32 # supposedly
1152 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1153 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1154 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1155 output
="rockbox.mi4"
1156 appextra
="recorder:gui"
1160 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1161 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1162 bootoutput
="PP5022.mi4"
1163 # toolset is the tools within the tools directory that we build for
1164 # this particular target.
1165 toolset
="$genericbitmaptools scramble"
1166 # architecture, manufacturer and model for the target-tree build
1168 t_manufacturer
="sandisk"
1169 t_model
="sansa-e200"
1173 # the e200R model is pretty much identical to the e200, it only has a
1174 # different option to the scramble tool when building a bootloader and
1175 # makes the bootloader output file name in all lower case.
1178 target
="-DSANSA_E200"
1179 memory
=32 # supposedly
1181 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1182 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1183 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1184 output
="rockbox.mi4"
1185 appextra
="recorder:gui"
1189 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1190 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1191 bootoutput
="pp5022.mi4"
1192 # toolset is the tools within the tools directory that we build for
1193 # this particular target.
1194 toolset
="$genericbitmaptools scramble"
1195 # architecture, manufacturer and model for the target-tree build
1197 t_manufacturer
="sandisk"
1198 t_model
="sansa-e200"
1204 target
="-DELIO_TPJ1022"
1207 tool
="$rootdir/tools/scramble -add tpj2"
1208 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1209 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1210 output
="rockbox.elio"
1211 appextra
="recorder:gui"
1215 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack libmusepack libalac libfaad libm4a libspeex"
1216 boottool
="$rootdir/tools/scramble -mi4v2"
1217 bootoutput
="pp5020.mi4"
1218 # toolset is the tools within the tools directory that we build for
1219 # this particular target.
1220 toolset
="$genericbitmaptools scramble"
1221 # architecture, manufacturer and model for the target-tree build
1223 t_manufacturer
="tatung"
1228 echo "Please select a supported target platform!"
1234 echo "Platform set to $archos"
1238 ############################################################################
1239 # Amount of memory, for those that can differ.
1242 if [ "$memory" = "2" ]; then
1244 if [ -z "$update" ]; then
1245 echo "Enter size of your RAM (in MB): (defaults to 2)"
1258 echo "Memory size selected: $memory MB"
1262 ##################################################################
1263 # Figure out build "type"
1266 # the ifp7x0 is the only platform that supports building a gdb stub like
1270 gdbstub
="(G)DB stub, "
1277 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual, (V)oice? (N)"
1283 if test -n "$archosrom"; then
1284 # Archos SH-based players do this somewhat differently for
1286 appsdir
='\$(ROOTDIR)/flash/bootbox'
1289 appsdir
='\$(ROOTDIR)/bootloader'
1292 if test -n "$boottool"; then
1295 if test -n "$bootoutput"; then
1299 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
1301 echo "Bootloader build selected"
1306 extradefines
="-DSIMULATOR"
1307 echo "Simulator build selected"
1310 echo "Advanced build selected"
1314 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1315 appsdir
='\$(ROOTDIR)/gdb'
1324 echo "GDB stub build selected"
1327 appsdir
='\$(ROOTDIR)/manual'
1328 firmdir
='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ignores target
1332 echo "Manual build selected"
1335 echo "Voice build selected"
1337 toolset
="${toolset} voicefont wavtrim"
1342 echo "Normal build selected"
1346 # to be able running "make manual" from non-manual configuration
1349 manualdev
="recorderv2fm"
1352 manualdev
="recorderv2fm"
1358 manualdev
="ipodmini"
1365 if [ -z "$debug" ]; then
1366 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
1369 echo "Using source code root directory: $rootdir"
1371 # this was once possible to change at build-time, but no more:
1374 # Ask about language if building voice
1375 if [ "yes" = "$voice" ]; then
1376 echo "Select a number for the language to use (default is english)"
1379 language
=`whichlang`
1381 if [ -z "$language" ]; then
1385 echo "Language set to $language"
1390 if [ "yes" = "$simulator" ]; then
1391 # setup compiler and things for simulator
1394 if [ -d "archos" ]; then
1395 echo "sub directory archos already present"
1398 echo "created an archos subdirectory for simulating the hard disk"
1402 # Now, figure out version number of the (gcc) compiler we are about to use
1403 gccver
=`$CC -dumpversion`;
1405 if [ -z "$gccver" ]; then
1406 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1407 echo "WARNING: this may cause your build to fail since we cannot do the"
1408 echo "WARNING: checks we want now."
1411 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1414 num1
=`echo $gccver | cut -d . -f1`
1415 num2
=`echo $gccver | cut -d . -f2`
1416 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1423 echo "Using $CC $gccver ($gccnum)"
1425 if test "$gccnum" -ge "400"; then
1426 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1427 # so we ignore that warnings for now
1429 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
1432 if test "$gccnum" -ge "401"; then
1433 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1434 # will break strict-aliasing rules"
1436 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
1441 # check the compiler for SH platforms
1442 if test "$CC" = "sh-elf-gcc"; then
1443 if test "$gccnum" -lt "400"; then
1444 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1445 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1447 # figure out patch status
1448 gccpatch
=`$CC --version`;
1450 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
1451 echo "gcc $gccver is rockbox patched"
1452 # then convert -O to -Os to get smaller binaries!
1453 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1455 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1456 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1461 if test "$1" = "--ccache"; then
1462 echo "Enable ccache for building"
1465 if test "$1" != "--no-ccache"; then
1466 ccache
=`findtool ccache`
1467 if test -n "$ccache"; then
1468 echo "Found and uses ccache ($ccache)"
1473 if test -n "$ccache"; then
1477 if test "X$endian" = "Xbig"; then
1478 defendian
="ROCKBOX_BIG_ENDIAN"
1480 defendian
="ROCKBOX_LITTLE_ENDIAN"
1484 -e "s,@ENDIAN@,${defendian},g" \
1485 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1486 -e "s,@config_rtc@,$config_rtc,g" \
1487 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
1489 /* This header was made by configure */
1490 #ifndef __BUILD_AUTOCONF_H
1491 #define __BUILD_AUTOCONF_H
1493 /* Define endianess for the target or simulator platform */
1496 /* Define this if you build rockbox to support the logf logging and display */
1497 #undef ROCKBOX_HAS_LOGF
1499 /* optional defines for RTC mod for h1x0 */
1503 #endif /* __BUILD_AUTOCONF_H */
1506 if test -n "$t_cpu"; then
1507 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1508 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1509 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1513 if test "$simulator" = "yes"; then
1514 # add simul make stuff on the #SIMUL# line
1515 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1516 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1518 # delete the lines that match
1519 simmagic1
='/@SIMUL1@/D'
1520 simmagic2
='/@SIMUL2@/D'
1524 -e "s,@ROOTDIR@,${rootdir},g" \
1525 -e "s,@DEBUG@,${debug},g" \
1526 -e "s,@MEMORY@,${memory},g" \
1527 -e "s,@TARGET_ID@,${target_id},g" \
1528 -e "s,@TARGET@,${target},g" \
1529 -e "s,@CPU@,${t_cpu},g" \
1530 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
1531 -e "s,@ARCHOS@,${archos},g" \
1532 -e "s,@LANGUAGE@,${language},g" \
1533 -e "s,@PWD@,${pwd},g" \
1534 -e "s,@CC@,${CC},g" \
1535 -e "s,@LD@,${LD},g" \
1536 -e "s,@AR@,${AR},g" \
1537 -e "s,@AS@,${AS},g" \
1538 -e "s,@OC@,${OC},g" \
1539 -e "s,@WINDRES@,${WINDRES},g" \
1540 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1541 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1542 -e "s,@RANLIB@,${RANLIB},g" \
1543 -e "s,@TOOL@,${tool},g" \
1544 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1545 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1546 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1547 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1548 -e "s,@OUTPUT@,${output},g" \
1549 -e "s,@APPEXTRA@,${appextra},g" \
1550 -e "s,@ARCHOSROM@,${archosrom},g" \
1551 -e "s,@FLASHFILE@,${flash},g" \
1552 -e "s,@PLUGINS@,${plugins},g" \
1553 -e "s,@CODECS@,${codecs},g" \
1554 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1555 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1556 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1557 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1558 -e "s!@LDOPTS@!${LDOPTS}!g" \
1559 -e "s,@LOADADDRESS@,${loadaddress},g" \
1560 -e "s,@EXTRADEF@,${extradefines},g" \
1561 -e "s,@APPSDIR@,${appsdir},g" \
1562 -e "s,@FIRMDIR@,${firmdir},g" \
1563 -e "s,@TOOLSDIR@,${toolsdir},g" \
1564 -e "s,@APPS@,${apps},g" \
1565 -e "s,@SIMVER@,${simver},g" \
1566 -e "s,@GCCVER@,${gccver},g" \
1567 -e "s,@GCCNUM@,${gccnum},g" \
1568 -e "s,@UNAME@,${uname},g" \
1569 -e "s,@ENDIAN@,${defendian},g" \
1570 -e "s,@TOOLSET@,${toolset},g" \
1573 -e "s,@MANUALDEV@,${manualdev},g" \
1575 ## Automaticly generated. http://www.rockbox.org/
1583 # old 'make' versions don't have the built-in 'info' function
1584 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1585 ifeq (\$(call info),old)
1586 export info=echo "\$\$(1)";
1589 export ROOTDIR=@ROOTDIR@
1590 export FIRMDIR=@FIRMDIR@
1591 export APPSDIR=@APPSDIR@
1592 export TOOLSDIR=@TOOLSDIR@
1593 export DOCSDIR=\$(ROOTDIR)/docs
1594 export MANUALDIR=\${ROOTDIR}/manual
1595 export DEBUG=@DEBUG@
1596 export ARCHOS=@ARCHOS@
1597 export ARCHOSROM=@ARCHOSROM@
1598 export FLASHFILE=@FLASHFILE@
1599 export TARGET_ID=@TARGET_ID@
1600 export TARGET=@TARGET@
1602 export MANUFACTURER=@MANUFACTURER@
1604 export BUILDDIR=@PWD@
1605 export LANGUAGE=@LANGUAGE@
1606 export MEMORYSIZE=@MEMORY@
1607 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
1608 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1609 export MKFIRMWARE=@TOOL@
1610 export BMP2RB_MONO=@BMP2RB_MONO@
1611 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1612 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1613 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1614 export BINARY=@OUTPUT@
1615 export APPEXTRA=@APPEXTRA@
1616 export ENABLEDPLUGINS=@PLUGINS@
1617 export SOFTWARECODECS=@CODECS@
1618 export EXTRA_DEFINES=@EXTRADEF@
1625 export WINDRES=@WINDRES@
1626 export DLLTOOL=@DLLTOOL@
1627 export DLLWRAP=@DLLWRAP@
1628 export RANLIB=@RANLIB@
1629 export PROFILE_OPTS=@PROFILE_OPTS@
1630 export SIMVER=@SIMVER@
1631 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
1632 export GCCOPTS=@GCCOPTS@
1633 export TARGET_INC=@TARGET_INC@
1634 export LOADADDRESS=@LOADADDRESS@
1635 export SHARED_FLAG=@SHARED_FLAG@
1636 export LDOPTS=@LDOPTS@
1637 export GCCVER=@GCCVER@
1638 export GCCNUM=@GCCNUM@
1639 export UNAME=@UNAME@
1640 export MANUALDEV=@MANUALDEV@
1642 # Do not print "Entering directory ..."
1643 MAKEFLAGS += --no-print-directory
1645 .PHONY: all clean tags zip tools manual bin build info
1650 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
1655 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1656 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
1661 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1662 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
1665 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
1667 veryclean: clean toolsclean
1670 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
1673 \$(SILENT)echo Cleaning build directory
1674 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
1675 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
1676 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
1677 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt
1680 \$(TOOLSDIR)/genvoice.sh \$(ROOTDIR) \$(LANGUAGE) \$(ARCHOS) voicesettings.sh
1683 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
1686 \$(SILENT)rm -f TAGS
1687 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
1688 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
1689 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
1690 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
1693 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
1696 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1699 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
1702 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
1705 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1708 \$(SILENT)rm -f rockbox.tar
1709 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1712 \$(SILENT)bzip2 -f9 rockbox.tar
1715 \$(SILENT)gzip -f9 rockbox.tar
1719 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
1721 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
1722 manual-zhtml: manual-zip
1724 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
1726 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
1728 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
1731 @echo "A few helpful make targets"
1733 @echo "all - builds a full Rockbox (default), including tools"
1734 @echo "bin - builds only the Rockbox.<target name> file"
1735 @echo "clean - cleans a build directory (not tools)"
1736 @echo "veryclean - cleans the build and tools directories"
1737 @echo "manual - builds a manual"
1738 @echo "manual-html - HTML manual"
1739 @echo "manual-zip - HTML manual (zipped)"
1740 @echo "manual-txt - txt manual"
1741 @echo "fullzip - creates a rockbox.zip of your build with fonts"
1742 @echo "zip - creates a rockbox.zip of your build (no fonts)"
1743 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
1744 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
1745 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
1746 @echo "fontzip - creates rockbox-fonts.zip"
1747 @echo "mapzip - creates rockbox-maps.zip with all .map files"
1748 @echo "tools - builds the tools only"
1749 @echo "install - installs your build (for simulator builds only)"
1753 if [ "yes" = "$simulator" ]; then
1755 cat >> Makefile
<<EOF
1758 @echo "installing a full setup in your archos dir"
1759 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
1764 echo "Created Makefile"