summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure44
1 files changed, 39 insertions, 5 deletions
diff --git a/tools/configure b/tools/configure
index 910b59ecf0..04acee843c 100755
--- a/tools/configure
+++ b/tools/configure
@@ -425,6 +425,9 @@ fi
425 425
426apps="apps" 426apps="apps"
427appsdir='\$(ROOTDIR)/apps' 427appsdir='\$(ROOTDIR)/apps'
428firmdir='\$(ROOTDIR)/firmware'
429toolsdir='\$(TOOLSDIR)/tools'
430
428 431
429################################################################## 432##################################################################
430# Figure out target platform 433# Figure out target platform
@@ -848,7 +851,7 @@ fi
848# Figure out build "type" 851# Figure out build "type"
849# 852#
850 echo "" 853 echo ""
851 echo "Build (N)ormal, (D)evel, (S)imulator, (B)ootloader, (G)DB stub? (N)" 854 echo "Build (N)ormal, (D)evel, (S)imulator, (B)ootloader, (G)DB stub, (M)anual? (N)"
852 855
853 option=`input`; 856 option=`input`;
854 857
@@ -893,6 +896,30 @@ fi
893 esac 896 esac
894 echo "GDB stub build selected" 897 echo "GDB stub build selected"
895 ;; 898 ;;
899 [Mm])
900 appsdir='\$(ROOTDIR)/manual'
901 firmdir='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ignores target
902 toolsdir=$firmdir;
903 toolset='';
904 apps="manual"
905 case $archos in
906 fmrecorder)
907 archos="recorderv2fm"
908 ;;
909 recorderv2)
910 archos="recorderv2fm"
911 ;;
912 ondio??)
913 archos="ondio"
914 ;;
915 h1??)
916 archos="h1xx"
917 ;;
918 *)
919 ;;
920 esac
921 echo "Manual build selected"
922 ;;
896 *) 923 *)
897 debug="" 924 debug=""
898 echo "Normal build selected" 925 echo "Normal build selected"
@@ -1030,6 +1057,8 @@ sed > Makefile \
1030 -e "s,@LOADADDRESS@,${loadaddress},g" \ 1057 -e "s,@LOADADDRESS@,${loadaddress},g" \
1031 -e "s,@EXTRADEF@,${extradefines},g" \ 1058 -e "s,@EXTRADEF@,${extradefines},g" \
1032 -e "s,@APPSDIR@,${appsdir},g" \ 1059 -e "s,@APPSDIR@,${appsdir},g" \
1060 -e "s,@FIRMDIR@,${firmdir},g" \
1061 -e "s,@TOOLSDIR@,${toolsdir},g" \
1033 -e "s,@APPS@,${apps},g" \ 1062 -e "s,@APPS@,${apps},g" \
1034 -e "s,@SIMVER@,${simver},g" \ 1063 -e "s,@SIMVER@,${simver},g" \
1035 -e "s,@GCCVER@,${gccver},g" \ 1064 -e "s,@GCCVER@,${gccver},g" \
@@ -1043,10 +1072,11 @@ sed > Makefile \
1043## Automaticly generated. http://www.rockbox.org/ 1072## Automaticly generated. http://www.rockbox.org/
1044 1073
1045export ROOTDIR=@ROOTDIR@ 1074export ROOTDIR=@ROOTDIR@
1046export FIRMDIR=\$(ROOTDIR)/firmware 1075export FIRMDIR=@FIRMDIR@
1047export APPSDIR=@APPSDIR@ 1076export APPSDIR=@APPSDIR@
1048export TOOLSDIR=\$(ROOTDIR)/tools 1077export TOOLSDIR=@TOOLSDIR@
1049export DOCSDIR=\$(ROOTDIR)/docs 1078export DOCSDIR=\$(ROOTDIR)/docs
1079export MANUALDIR=\${ROOTDIR}/manual
1050export DEBUG=@DEBUG@ 1080export DEBUG=@DEBUG@
1051export ARCHOS=@ARCHOS@ 1081export ARCHOS=@ARCHOS@
1052export ARCHOSROM=@ARCHOSROM@ 1082export ARCHOSROM=@ARCHOSROM@
@@ -1092,7 +1122,7 @@ export UNAME=@UNAME@
1092# Do not print "Entering directory ..." 1122# Do not print "Entering directory ..."
1093MAKEFLAGS += --no-print-directory 1123MAKEFLAGS += --no-print-directory
1094 1124
1095.PHONY: all clean tags zip tools 1125.PHONY: all clean tags zip tools manual
1096 1126
1097all: tools 1127all: tools
1098 @SIMUL1@ 1128 @SIMUL1@
@@ -1104,7 +1134,7 @@ clean:
1104 @\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware 1134 @\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware
1105 @\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/@APPS@ 1135 @\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/@APPS@
1106 @\$(MAKE) -C \$(TOOLSDIR) clean 1136 @\$(MAKE) -C \$(TOOLSDIR) clean
1107 @rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.h 1137 @rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.h manual *.pdf
1108 1138
1109tools: 1139tools:
1110 \$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@ 1140 \$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
@@ -1121,6 +1151,10 @@ zip:
1121 1151
11227zip: 11527zip:
1123 @\$(TOOLSDIR)/buildzip.pl -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY) 1153 @\$(TOOLSDIR)/buildzip.pl -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1154
1155manual:
1156 @\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual buildmanual
1157
1124EOF 1158EOF
1125 1159
1126if [ "yes" = "$simulator" ]; then 1160if [ "yes" = "$simulator" ]; then