3 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 # global CC options for all platforms
12 CCOPTS
="-W -Wall -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 -ffunction-sections -mlong-calls"
234 GCCOPTIMIZE
="-fomit-frame-pointer"
240 GCCOPTS
="$CCOPTS -mcpu=arm9tdmi -ffunction-sections -mlong-calls"
241 GCCOPTIMIZE
="-fomit-frame-pointer"
249 echo "Where do you want the firmware to be flashed?"
250 echo "WARNING: Do not answer this question lightly,"
251 echo "unless you don't plan to flash your gmini."
252 echo "In this case, reply '0x10000' (no quotes) and "
253 echo "re-configure when you know better."
256 if [ "0$loadaddress" = "0" ]; then
258 loadaddress
="0x10000";
260 echo "You selected $loadaddress"
268 ##################################################################
269 # Prompt for specific developer options
272 echo "Enter your developer options (press enter when done)"
273 echo "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling"
276 while [ $cont = "1" ]; do
282 if [ "yes" = "$profile" ]; then
283 echo "Debug is incompatible with profiling"
290 echo "logf() support enabled"
294 echo "Simulator build enabled"
298 if [ "yes" = "$use_debug" ]; then
299 echo "Profiling is incompatible with debug"
301 echo "Profiling support is enabled"
312 if [ "yes" = "$use_debug" ]; then
314 GCCOPTS
="$GCCOPTS -g -DDEBUG"
316 if [ "yes" = "$logf" ]; then
317 use_logf
="#define ROCKBOX_HAS_LOGF 1"
319 if [ "yes" = "$simulator" ]; then
321 extradefines
="$extradefines -DSIMULATOR"
324 if [ "yes" = "$profile" ]; then
325 extradefines
="$extradefines -DRB_PROFILE"
326 PROFILE_OPTS
="-finstrument-functions"
332 if [ -z "$simver" ]; then
334 ##################################################################
335 # Figure out what simulator version
337 # x11 is deprecated so hide it from the question
338 # win32 is also deprecated
341 echo "Build (S)DL version? (S)"
353 # make sure the code knows this is for win32
354 extradefines
="$extradefines -DWIN32"
358 extradefines
="$extradefines -DX11"
362 extradefines
="$extradefines -DSDL"
365 echo "Selected $simver simulator"
370 echo "Building voice for $archos"
373 if [ `which flite` ]; then
375 FLITE_OPTS
="FLITE_OPTS=\"\""
377 DEFAULT_TTS_OPTS
=$FLITE_OPTS
378 DEFAULT_NOISEFLOOR
="500"
381 if [ `which speak` ]; then
383 ESPEAK_OPTS
="ESPEAK_OPTS=\"\""
385 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
386 DEFAULT_NOISEFLOOR
="500"
389 if [ `which festival` ]; then
390 FESTIVAL
="(F)estival "
391 FESTIVAL_OPTS
="FLITE_OPTS=\"\""
392 DEFAULT_TTS
="festival"
393 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
394 DEFAULT_NOISEFLOOR
="500"
398 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ]; then
399 echo "You need Festival, eSpeak or Flite in your path to build voice files"
403 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}(${DEFAULT_CHOICE})?"
408 NOISEFLOOR
="500" # TODO: check this value
414 TTS_OPTS
=$ESPEAK_OPTS
417 TTS_ENGINE
="festival"
419 TTS_OPTS
=$FESTIVAL_OPTS
422 TTS_ENGINE
=$DEFAULT_TTS
423 TTS_OPTS
=$DEFAULT_TTS_OPTS
424 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
426 echo "Using $TTS_ENGINE for TTS"
430 if [ `which oggenc` ]; then
433 VORBIS_OPTS
="VORBIS_OPTS=\"-q0 --downmix\""
434 DEFAULT_ENC_OPTS
=$VORBIS_OPTS
437 if [ `which speexenc` ]; then
438 SPEEXENC
="(S)peexenc "
439 DEFAULT_ENC
="speexenc"
440 SPEEX_OPTS
="" # TODO: find appropriate options for speex
441 DEFAULT_ENC_OPTS
=$SPEEX_OPTS
444 if [ `which lame` ]; then
447 LAME_OPTS
="LAME_OPTS=\"--resample 12 -t -m m -h -V 9 -S\""
448 DEFAULT_ENC_OPTS
=$LAME_OPTS
452 if [ "$LAME" = "" ]; then
453 echo "You need to have Lame installed to build voice files"
456 echo "Encoder to use: ${LAME}${OGGENC}${SPEEXENC}(${DEFAULT_CHOICE})?"
458 echo "Note: Use Lame - the other options won't work"
463 ENC_OPTS
=$VORBIS_OPTS
475 ENC_OPTS
=$DEFAULT_ENC_OPTS
477 echo "Using $ENCODER for encoding voice clips"
479 cat > voicesettings.sh
<<EOF
480 TTS_ENGINE="${TTS_ENGINE}"
483 NOISEFLOOR="${NOISEFLOOR}"
490 # figure out which languages that are around
491 for file in $rootdir/apps
/lang
/*.lang
; do
492 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
493 langs
="$langs $clean"
497 for one
in $langs; do
508 for one
in $langs; do
509 if [ "$num" = "$pick" ]; then
519 if test "$target" = "--help"; then
520 echo "Rockbox configure script."
521 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
522 echo "Do *NOT* run this within the tools directory!"
524 echo "Usage: configure [--ccache][--no-ccache]"
528 if test -r "configure"; then
529 # this is a check for a configure script in the current directory, it there
530 # is one, try to figure out if it is this one!
532 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
533 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
534 echo "It will only cause you pain and grief. Instead do this:"
537 echo " mkdir build-dir"
539 echo " ../tools/configure"
541 echo "Much happiness will arise from this. Enjoy"
546 # get our current directory
549 if [ -z "$rootdir" ]; then
550 ##################################################################
551 # Figure out where the source code root is!
554 firmfile
="crt0.S" # a file to check for in the firmware root dir
556 for dir
in . .. ..
/.. ..
/rockbox
*; do
557 if [ -f $dir/firmware
/$firmfile ]; then
563 if [ -z "$rootdir" ]; then
564 echo "This script couldn't find your source code root directory. Please enter the"
565 echo "full path to the source code directory here:"
570 #####################################################################
571 # Convert the possibly relative directory name to an absolute version
577 # cd back to the build dir
582 appsdir
='\$(ROOTDIR)/apps'
583 firmdir
='\$(ROOTDIR)/firmware'
584 toolsdir
='\$(ROOTDIR)/tools'
587 ##################################################################
588 # Figure out target platform
591 echo "Enter target platform:"
593 ==Archos== ==iriver== ==Apple iPod==
594 0) Player/Studio 10) H120/H140 20) Color/Photo
595 1) Recorder 11) H320/H340 21) Nano
596 2) FM Recorder 12) iHP-100/110/115 22) Video
597 3) Recorder v2 13) iFP-790 23) 3G
598 4) Gmini 120 14) H10 20Gb 24) 4G Grayscale
599 5) Gmini SP 15) H10 5/6Gb 25) Mini 1G
600 6) Ondio SP 26) Mini 2G
603 ==iAudio== ==Toshiba== ==SanDisk==
604 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
612 # Set of tools built for all target platforms:
613 toolset
="rdf2binary convbdf"
615 # Toolsets for some target families:
616 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb codepages"
617 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb codepages"
618 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb codepages"
619 ipodbitmaptools
="$toolset scramble ipod_fw bmp2rb codepages"
620 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb codepages"
621 # generic is used by IFP, H10, Sansa-e200
622 genericbitmaptools
="$toolset bmp2rb codepages"
625 # ---- For each target ----
628 # target_id: a unique number identifying this target, DOES NOT necessarily
629 # have to be the menu number. Just use the currently highest
630 # number+1 when you add a new target.
631 # archos: short model name used all over to identify this target
632 # target: -Ddefine passed to the build commands to make the correct
633 # config-*.h file get included etc
634 # tool: the tool that takes a plain binary and converts that into a
635 # working "firmware" file for your target
636 # output: the final output file name
637 # boottool: the tool that takes a plain binary and generates a bootloader
638 # file for your target (or blank to use $tool)
639 # bootoutput:the final output file name for the bootloader (or blank to use
641 # appextra: passed to the APPEXTRA variable in the Makefiles.
642 # TODO: add proper explanation
643 # archosrom: used only for Archos targets that build a special flashable .ucl
644 # image. Set to blank for other builds.
645 # flash: the same as archosrom. These two should be merged
646 # plugins: set to 'yes' to build the plugins. Early development builds can
647 # set this to no in the early stages to have an easier life for a
649 # codecs: lists codecs to build for this target
650 # toolset: lists what particular tools in the tools/ directory that this
651 # target needs to have built prior to building Rockbox
654 # *cc: sets up gcc and compiler options for your target builds. Note
655 # that if you select a simulator build, the compiler selection is
656 # overridden later in the script.
663 target
="-DARCHOS_PLAYER"
665 tool
="$rootdir/tools/scramble"
667 appextra
="player:gui"
668 archosrom
="$pwd/rombox.ucl"
669 flash
="$pwd/rockbox.ucl"
673 # toolset is the tools within the tools directory that we build for
674 # this particular target.
675 toolset
="$toolset scramble descramble sh2d generate_rocklatin uclpack"
677 # Note: the convbdf is present in the toolset just because: 1) the
678 # firmware/Makefile assumes it is present always, and 2) we will need it when we
679 # build the player simulator
686 target
="-DARCHOS_RECORDER"
688 tool
="$rootdir/tools/scramble"
689 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
690 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
692 appextra
="recorder:gui"
693 archosrom
="$pwd/rombox.ucl"
694 flash
="$pwd/rockbox.ucl"
697 # toolset is the tools within the tools directory that we build for
698 # this particular target.
699 toolset
=$archosbitmaptools
705 target
="-DARCHOS_FMRECORDER"
707 tool
="$rootdir/tools/scramble -fm"
708 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
709 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
711 appextra
="recorder:gui"
712 archosrom
="$pwd/rombox.ucl"
713 flash
="$pwd/rockbox.ucl"
716 # toolset is the tools within the tools directory that we build for
717 # this particular target.
718 toolset
=$archosbitmaptools
724 target
="-DARCHOS_RECORDERV2"
726 tool
="$rootdir/tools/scramble -v2"
727 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
728 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
730 appextra
="recorder:gui"
731 archosrom
="$pwd/rombox.ucl"
732 flash
="$pwd/rockbox.ucl"
735 # toolset is the tools within the tools directory that we build for
736 # this particular target.
737 toolset
=$archosbitmaptools
743 target
="-DARCHOS_GMINI120"
744 memory
=16 # fixed size (16 is a guess, remove comment when checked)
746 tool
="cp" # might work for now!
747 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
748 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
749 output
="rockbox.gmini"
750 appextra
="recorder:gui"
753 plugins
="" # disabled for now, enable later on
755 # toolset is the tools within the tools directory that we build for
756 # this particular target.
757 toolset
="$toolset bmp2rb codepages"
763 target
="-DARCHOS_GMINISP"
764 memory
=16 # fixed size (16 is a guess, remove comment when checked)
766 tool
="cp" # might work for now!
767 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
768 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
769 output
="rockbox.gmini"
770 appextra
="recorder:gui"
773 plugins
="" # disabled for now, enable later on
775 # toolset is the tools within the tools directory that we build for
776 # this particular target.
777 toolset
="$toolset bmp2rb codepages"
783 target
="-DARCHOS_ONDIOSP"
785 tool
="$rootdir/tools/scramble -osp"
786 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
787 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
789 appextra
="recorder:gui"
790 archosrom
="$pwd/rombox.ucl"
791 flash
="$pwd/rockbox.ucl"
794 # toolset is the tools within the tools directory that we build for
795 # this particular target.
796 toolset
=$archosbitmaptools
802 target
="-DARCHOS_ONDIOFM"
804 tool
="$rootdir/tools/scramble -ofm"
805 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
806 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
808 appextra
="recorder:gui"
809 archosrom
="$pwd/rombox.ucl"
810 flash
="$pwd/rockbox.ucl"
813 toolset
=$archosbitmaptools
819 target
="-DIRIVER_H120"
822 tool
="$rootdir/tools/scramble -add=h120"
823 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
824 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
825 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
826 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
827 output
="rockbox.iriver"
828 appextra
="recorder:gui"
832 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
833 # toolset is the tools within the tools directory that we build for
834 # this particular target.
835 toolset
=$iriverbitmaptools
837 t_manufacturer
="iriver"
844 target
="-DIRIVER_H300"
847 tool
="$rootdir/tools/scramble -add=h300"
848 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
849 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
850 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
851 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
852 output
="rockbox.iriver"
853 appextra
="recorder:gui"
857 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
858 # toolset is the tools within the tools directory that we build for
859 # this particular target.
860 toolset
=$iriverbitmaptools
862 t_manufacturer
="iriver"
869 target
="-DIRIVER_H100"
872 tool
="$rootdir/tools/scramble -add=h100"
873 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
874 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
875 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
876 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
877 output
="rockbox.iriver"
878 appextra
="recorder:gui"
882 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
883 # toolset is the tools within the tools directory that we build for
884 # this particular target.
885 toolset
=$iriverbitmaptools
887 t_manufacturer
="iriver"
897 tool
="$rootdir/tools/scramble -add=iax5"
898 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
899 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
900 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
901 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
902 output
="rockbox.iaudio"
903 appextra
="recorder:gui"
907 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
908 # toolset is the tools within the tools directory that we build for
909 # this particular target.
910 toolset
="$iaudiobitmaptools"
911 # architecture, manufacturer and model for the target-tree build
913 t_manufacturer
="iaudio"
920 target
="-DIPOD_COLOR"
923 tool
="$rootdir/tools/scramble -add=ipco"
924 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
925 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
926 output
="rockbox.ipod"
927 appextra
="recorder:gui"
931 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
932 boottool
="$rootdir/tools/scramble -ipod4g"
933 bootoutput
="bootloader.img"
934 # toolset is the tools within the tools directory that we build for
935 # this particular target.
936 toolset
=$ipodbitmaptools
937 # architecture, manufacturer and model for the target-tree build
939 t_manufacturer
="ipod"
949 tool
="$rootdir/tools/scramble -add=nano"
950 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
951 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
952 output
="rockbox.ipod"
953 appextra
="recorder:gui"
957 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
958 boottool
="$rootdir/tools/scramble -ipod4g"
959 bootoutput
="bootloader.img"
960 # toolset is the tools within the tools directory that we build for
961 # this particular target.
962 toolset
=$ipodbitmaptools
963 # architecture, manufacturer and model for the target-tree build
965 t_manufacturer
="ipod"
972 target
="-DIPOD_VIDEO"
973 memory
=32 # 30GB models have 32MB, 60GB have 64MB
975 tool
="$rootdir/tools/scramble -add=ipvd"
976 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
977 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
978 output
="rockbox.ipod"
979 appextra
="recorder:gui"
983 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
984 boottool
="$rootdir/tools/scramble -ipod5g"
985 bootoutput
="bootloader.img"
986 # toolset is the tools within the tools directory that we build for
987 # this particular target.
988 toolset
=$ipodbitmaptools
989 # architecture, manufacturer and model for the target-tree build
991 t_manufacturer
="ipod"
1001 tool
="$rootdir/tools/scramble -add=ip3g"
1002 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1003 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1004 output
="rockbox.ipod"
1005 appextra
="recorder:gui"
1009 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1010 boottool
="$rootdir/tools/scramble -ipod3g"
1011 bootoutput
="bootloader.img"
1012 # toolset is the tools within the tools directory that we build for
1013 # this particular target.
1014 toolset
=$ipodbitmaptools
1015 # architecture, manufacturer and model for the target-tree build
1017 t_manufacturer
="ipod"
1027 tool
="$rootdir/tools/scramble -add=ip4g"
1028 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1029 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1030 output
="rockbox.ipod"
1031 appextra
="recorder:gui"
1035 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1036 boottool
="$rootdir/tools/scramble -ipod4g"
1037 bootoutput
="bootloader.img"
1038 # toolset is the tools within the tools directory that we build for
1039 # this particular target.
1040 toolset
=$ipodbitmaptools
1041 # architecture, manufacturer and model for the target-tree build
1043 t_manufacturer
="ipod"
1050 target
="-DIPOD_MINI"
1053 tool
="$rootdir/tools/scramble -add=mini"
1054 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1055 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1056 output
="rockbox.ipod"
1057 appextra
="recorder:gui"
1061 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1062 boottool
="$rootdir/tools/scramble -ipod4g"
1063 bootoutput
="bootloader.img"
1064 # toolset is the tools within the tools directory that we build for
1065 # this particular target.
1066 toolset
=$ipodbitmaptools
1067 # architecture, manufacturer and model for the target-tree build
1069 t_manufacturer
="ipod"
1076 target
="-DIRIVER_IFP7XX"
1080 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1081 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1082 output
="rockbox.wma"
1083 appextra
="recorder:gui"
1087 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1088 # toolset is the tools within the tools directory that we build for
1089 # this particular target.
1090 toolset
=$genericbitmaptools
1096 target
="-DGIGABEAT_F"
1100 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1101 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1102 output
="rockbox.gigabeat"
1103 appextra
="recorder:gui"
1107 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1108 toolset
=$gigabeatbitmaptools
1109 boottool
="$rootdir/tools/scramble -gigabeat"
1110 bootoutput
="FWIMG01.DAT"
1111 # architecture, manufacturer and model for the target-tree build
1113 t_manufacturer
="gigabeat"
1120 target
="-DIPOD_MINI2G"
1123 tool
="$rootdir/tools/scramble -add=mn2g"
1124 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1125 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1126 output
="rockbox.ipod"
1127 appextra
="recorder:gui"
1131 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1132 boottool
="$rootdir/tools/scramble -ipod4g"
1133 bootoutput
="bootloader.img"
1134 # toolset is the tools within the tools directory that we build for
1135 # this particular target.
1136 toolset
=$ipodbitmaptools
1137 # architecture, manufacturer and model for the target-tree build
1139 t_manufacturer
="ipod"
1146 target
="-DIRIVER_H10"
1149 tool
="$rootdir/tools/scramble -add=h10"
1150 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1151 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1152 output
="rockbox.h10"
1153 appextra
="recorder:gui"
1157 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1158 boottool
="$rootdir/tools/scramble -mi4v3"
1159 bootoutput
="H10_20GC.mi4"
1160 # toolset is the tools within the tools directory that we build for
1161 # this particular target.
1162 toolset
="$genericbitmaptools scramble"
1163 # architecture, manufacturer and model for the target-tree build
1165 t_manufacturer
="iriver"
1172 target
="-DSANSA_E200"
1173 memory
=32 # supposedly
1175 tool
="$rootdir/tools/mkmi4.sh e200"
1176 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1177 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1179 appextra
="recorder:gui"
1183 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1184 boottool
="$rootdir/tools/scramble -mi4v3"
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"
1198 target
="-DIRIVER_H10_5GB"
1201 tool
="$rootdir/tools/scramble -add=h10_5gb"
1202 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1203 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1204 output
="rockbox.h10"
1205 appextra
="recorder:gui"
1209 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1210 boottool
="$rootdir/tools/scramble -mi4v2"
1211 bootoutput
="H10.mi4"
1212 # toolset is the tools within the tools directory that we build for
1213 # this particular target.
1214 toolset
="$genericbitmaptools scramble"
1215 # architecture, manufacturer and model for the target-tree build
1217 t_manufacturer
="iriver"
1224 target
="-DELIO_TPJ1022"
1227 tool
="$rootdir/tools/scramble -add tpj2"
1228 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1229 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1230 output
="rockbox.elio"
1231 appextra
="recorder:gui"
1235 codecs
="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
1236 boottool
="$rootdir/tools/scramble -mi4v2"
1237 bootoutput
="pp5020.mi4"
1238 # toolset is the tools within the tools directory that we build for
1239 # this particular target.
1240 toolset
="$genericbitmaptools scramble"
1241 # architecture, manufacturer and model for the target-tree build
1243 t_manufacturer
="tatung"
1248 echo "Please select a supported target platform!"
1254 echo "Platform set to $archos"
1257 ############################################################################
1258 # Amount of memory, for those that can differ.
1261 if [ -z "$memory" ]; then
1263 if [ -z "$update" ]; then
1264 echo "Enter size of your RAM (in MB): (defaults to 2)"
1277 echo "Memory size selected: $memory MB"
1280 ##################################################################
1281 # Figure out build "type"
1284 # the ifp7x0 is the only platform that supports building a gdb stub like
1288 gdbstub
="(G)DB stub, "
1295 echo "Build (N)ormal, (D)evel, (S)imulator, (B)ootloader, $gdbstub(M)anual, (V)oice? (N)"
1301 if test -n "$archosrom"; then
1302 # Archos SH-based players do this somewhat differently for
1304 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
1305 appsdir
='\$(ROOTDIR)/flash/bootbox'
1308 extradefines
="-DBOOTLOADER" # for target makefile symbol EXTRA_DEFINES
1309 appsdir
='\$(ROOTDIR)/bootloader'
1311 if test -n "$boottool"; then
1314 if test -n "$bootoutput"; then
1319 echo "Bootloader build selected"
1324 extradefines
="-DSIMULATOR"
1325 echo "Simulator build selected"
1329 echo "Devel build selected"
1333 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1334 appsdir
='\$(ROOTDIR)/gdb'
1343 echo "GDB stub build selected"
1346 appsdir
='\$(ROOTDIR)/manual'
1347 firmdir
='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ignores target
1351 echo "Manual build selected"
1354 echo "Voice build selected"
1360 echo "Normal build selected"
1364 # to be able running "make manual" from non-manual configuration
1367 manualdev
="recorderv2fm"
1370 manualdev
="recorderv2fm"
1376 manualdev
="ipodmini"
1383 if [ -z "$debug" ]; then
1384 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
1389 echo "Using source code root directory: $rootdir"
1391 # this was once possible to change at build-time, but no more:
1394 # Ask about language if building voice
1395 if [ "yes" = "$voice" ]; then
1396 echo "Select a number for the language to use (default is english)"
1399 language
=`whichlang`
1401 if [ -z "$language" ]; then
1405 echo "Language set to $language"
1410 if [ "yes" = "$simulator" ]; then
1411 # setup compiler and things for simulator
1414 if [ -d "archos" ]; then
1415 echo "sub directory archos already present"
1418 echo "created an archos subdirectory for simulating the hard disk"
1422 # Now, figure out version number of the (gcc) compiler we are about to use
1423 gccver
=`$CC -dumpversion`;
1425 if [ -z "$gccver" ]; then
1426 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1427 echo "WARNING: this may cause your build to fail since we cannot do the"
1428 echo "WARNING: checks we want now."
1431 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1434 num1
=`echo $gccver | cut -d . -f1`
1435 num2
=`echo $gccver | cut -d . -f2`
1436 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1443 echo "Using $CC $gccver ($gccnum)"
1445 if test "$gccnum" -ge "400"; then
1446 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1447 # so we ignore that warnings for now
1449 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
1452 if test "$gccnum" -ge "401"; then
1453 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1454 # will break strict-aliasing rules"
1456 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
1461 # check the compiler for SH platforms
1462 if test "$CC" = "sh-elf-gcc"; then
1463 if test "$gccnum" -lt "400"; then
1464 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1465 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1467 # figure out patch status
1468 gccpatch
=`$CC --version`;
1470 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
1471 echo "gcc $gccver is rockbox patched"
1472 # then convert -O to -Os to get smaller binaries!
1473 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1475 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1476 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1481 if test "$1" = "--ccache"; then
1482 echo "Enable ccache for building"
1485 if test "$1" != "--no-ccache"; then
1486 ccache
=`findtool ccache`
1487 if test -n "$ccache"; then
1488 echo "Found and uses ccache ($ccache)"
1493 if test -n "$ccache"; then
1497 if test "X$endian" = "Xbig"; then
1498 defendian
="ROCKBOX_BIG_ENDIAN"
1500 defendian
="ROCKBOX_LITTLE_ENDIAN"
1504 -e "s,@ENDIAN@,${defendian},g" \
1505 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1506 -e "s,@SIMSOUND@,$use_simsound,g" \
1508 /* This header was made by configure */
1509 #ifndef __BUILD_AUTOCONF_H
1510 #define __BUILD_AUTOCONF_H
1512 /* Define endianess for the target or simulator platform */
1515 /* Define this if you build rockbox to support the logf logging and display */
1516 #undef ROCKBOX_HAS_LOGF
1518 /* Define this if you have the linux/soundcard.h header and thus can compile
1519 the sound-playing code in the X11 sim */
1522 #endif /* __BUILD_AUTOCONF_H */
1525 if test -n "$t_cpu"; then
1526 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1527 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1528 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1532 if test "$simulator" = "yes"; then
1533 # add simul make stuff on the #SIMUL# line
1534 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1535 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1537 # delete the lines that match
1538 simmagic1
='/@SIMUL1@/D'
1539 simmagic2
='/@SIMUL2@/D'
1543 -e "s,@ROOTDIR@,${rootdir},g" \
1544 -e "s,@DEBUG@,${debug},g" \
1545 -e "s,@MEMORY@,${memory},g" \
1546 -e "s,@TARGET_ID@,${target_id},g" \
1547 -e "s,@TARGET@,${target},g" \
1548 -e "s,@ARCHOS@,${archos},g" \
1549 -e "s,@LANGUAGE@,${language},g" \
1550 -e "s,@PWD@,${pwd},g" \
1551 -e "s,@CC@,${CC},g" \
1552 -e "s,@LD@,${LD},g" \
1553 -e "s,@AR@,${AR},g" \
1554 -e "s,@AS@,${AS},g" \
1555 -e "s,@OC@,${OC},g" \
1556 -e "s,@WINDRES@,${WINDRES},g" \
1557 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1558 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1559 -e "s,@RANLIB@,${RANLIB},g" \
1560 -e "s,@TOOL@,${tool},g" \
1561 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1562 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1563 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1564 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1565 -e "s,@OUTPUT@,${output},g" \
1566 -e "s,@APPEXTRA@,${appextra},g" \
1567 -e "s,@ARCHOSROM@,${archosrom},g" \
1568 -e "s,@FLASHFILE@,${flash},g" \
1569 -e "s,@PLUGINS@,${plugins},g" \
1570 -e "s,@CODECS@,${codecs},g" \
1571 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1572 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1573 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1574 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1575 -e "s!@LDOPTS@!${LDOPTS}!g" \
1576 -e "s,@LOADADDRESS@,${loadaddress},g" \
1577 -e "s,@EXTRADEF@,${extradefines},g" \
1578 -e "s,@APPSDIR@,${appsdir},g" \
1579 -e "s,@FIRMDIR@,${firmdir},g" \
1580 -e "s,@TOOLSDIR@,${toolsdir},g" \
1581 -e "s,@APPS@,${apps},g" \
1582 -e "s,@SIMVER@,${simver},g" \
1583 -e "s,@GCCVER@,${gccver},g" \
1584 -e "s,@GCCNUM@,${gccnum},g" \
1585 -e "s,@UNAME@,${uname},g" \
1586 -e "s,@ENDIAN@,${defendian},g" \
1587 -e "s,@TOOLSET@,${toolset},g" \
1590 -e "s,@MANUALDEV@,${manualdev},g" \
1592 ## Automaticly generated. http://www.rockbox.org/
1600 # old 'make' versions don't have the built-in 'info' function
1601 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1602 ifeq (\$(call info),old)
1603 export info=echo "\$\$(1)";
1606 export ROOTDIR=@ROOTDIR@
1607 export FIRMDIR=@FIRMDIR@
1608 export APPSDIR=@APPSDIR@
1609 export TOOLSDIR=@TOOLSDIR@
1610 export DOCSDIR=\$(ROOTDIR)/docs
1611 export MANUALDIR=\${ROOTDIR}/manual
1612 export DEBUG=@DEBUG@
1613 export ARCHOS=@ARCHOS@
1614 export ARCHOSROM=@ARCHOSROM@
1615 export FLASHFILE=@FLASHFILE@
1616 export TARGET_ID=@TARGET_ID@
1617 export TARGET=@TARGET@
1619 export BUILDDIR=@PWD@
1620 export LANGUAGE=@LANGUAGE@
1621 export MEMORYSIZE=@MEMORY@
1622 export VERSION=\$(shell date +%y%m%d-%H%M)
1623 export BUILDDATE=\$(shell date +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1624 export MKFIRMWARE=@TOOL@
1625 export BMP2RB_MONO=@BMP2RB_MONO@
1626 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1627 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1628 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1629 export BINARY=@OUTPUT@
1630 export APPEXTRA=@APPEXTRA@
1631 export ENABLEDPLUGINS=@PLUGINS@
1632 export SOFTWARECODECS=@CODECS@
1633 export EXTRA_DEFINES=@EXTRADEF@
1640 export WINDRES=@WINDRES@
1641 export DLLTOOL=@DLLTOOL@
1642 export DLLWRAP=@DLLWRAP@
1643 export RANLIB=@RANLIB@
1644 export PROFILE_OPTS=@PROFILE_OPTS@
1645 export GCCOPTS=@GCCOPTS@
1646 export TARGET_INC=@TARGET_INC@
1647 export LOADADDRESS=@LOADADDRESS@
1648 export SIMVER=@SIMVER@
1649 export SIMDIR=\$(ROOTDIR)/uisimulator/\$(SIMVER)
1650 export SHARED_FLAG=@SHARED_FLAG@
1651 export LDOPTS=@LDOPTS@
1652 export GCCVER=@GCCVER@
1653 export GCCNUM=@GCCNUM@
1654 export UNAME=@UNAME@
1655 export MANUALDEV=@MANUALDEV@
1657 # Do not print "Entering directory ..."
1658 MAKEFLAGS += --no-print-directory
1660 .PHONY: all clean tags zip tools manual
1665 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1666 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
1671 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1672 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
1674 veryclean: clean toolsclean
1677 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
1680 \$(SILENT)echo Cleaning build directory
1681 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
1682 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
1683 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
1684 html txt rockbox-manual*.zip
1687 \$(TOOLSDIR)/genvoice.sh \$(ROOTDIR) \$(LANGUAGE) \$(ARCHOS) voicesettings.sh
1690 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
1693 \$(SILENT)rm -f TAGS
1694 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
1695 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
1696 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
1697 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
1700 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
1703 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1706 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
1709 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
1712 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1715 \$(SILENT)rm -f rockbox.tar
1716 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1719 \$(SILENT)bzip2 -f9 rockbox.tar
1722 \$(SILENT)gzip -f9 rockbox.tar
1726 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
1728 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
1729 manual-zhtml: manual-zip
1731 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
1733 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
1735 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
1738 @echo "A few helpful make targets"
1740 @echo "all - builds a full Rockbox (default), including tools"
1741 @echo "bin - builds only the Rockbox.<target name> file"
1742 @echo "clean - cleans a build directory (not tools)"
1743 @echo "veryclean - cleans the build and tools directories"
1744 @echo "manual - builds a manual"
1745 @echo "manual-html - HTML manual"
1746 @echo "manual-zip - HTML manual (zipped)"
1747 @echo "manual-txt - txt manual"
1748 @echo "fullzip - creates a rockbox.zip of your build with fonts"
1749 @echo "zip - creates a rockbox.zip of your build (no fonts)"
1750 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
1751 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
1752 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
1753 @echo "fontzip - creates rockbox-fonts.zip"
1754 @echo "mapzip - creates rockbox-maps.zip with all .map files"
1755 @echo "tools - builds the tools only"
1756 @echo "install - installs your build (for simulator builds only)"
1760 if [ "yes" = "$simulator" ]; then
1762 cat >> Makefile
<<EOF
1765 @echo "installing a full setup in your archos dir"
1766 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
1771 echo "Created Makefile"