diff options
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 44 |
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 | ||
426 | apps="apps" | 426 | apps="apps" |
427 | appsdir='\$(ROOTDIR)/apps' | 427 | appsdir='\$(ROOTDIR)/apps' |
428 | firmdir='\$(ROOTDIR)/firmware' | ||
429 | toolsdir='\$(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 | ||
1045 | export ROOTDIR=@ROOTDIR@ | 1074 | export ROOTDIR=@ROOTDIR@ |
1046 | export FIRMDIR=\$(ROOTDIR)/firmware | 1075 | export FIRMDIR=@FIRMDIR@ |
1047 | export APPSDIR=@APPSDIR@ | 1076 | export APPSDIR=@APPSDIR@ |
1048 | export TOOLSDIR=\$(ROOTDIR)/tools | 1077 | export TOOLSDIR=@TOOLSDIR@ |
1049 | export DOCSDIR=\$(ROOTDIR)/docs | 1078 | export DOCSDIR=\$(ROOTDIR)/docs |
1079 | export MANUALDIR=\${ROOTDIR}/manual | ||
1050 | export DEBUG=@DEBUG@ | 1080 | export DEBUG=@DEBUG@ |
1051 | export ARCHOS=@ARCHOS@ | 1081 | export ARCHOS=@ARCHOS@ |
1052 | export ARCHOSROM=@ARCHOSROM@ | 1082 | export ARCHOSROM=@ARCHOSROM@ |
@@ -1092,7 +1122,7 @@ export UNAME=@UNAME@ | |||
1092 | # Do not print "Entering directory ..." | 1122 | # Do not print "Entering directory ..." |
1093 | MAKEFLAGS += --no-print-directory | 1123 | MAKEFLAGS += --no-print-directory |
1094 | 1124 | ||
1095 | .PHONY: all clean tags zip tools | 1125 | .PHONY: all clean tags zip tools manual |
1096 | 1126 | ||
1097 | all: tools | 1127 | all: 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 | ||
1109 | tools: | 1139 | tools: |
1110 | \$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@ | 1140 | \$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@ |
@@ -1121,6 +1151,10 @@ zip: | |||
1121 | 1151 | ||
1122 | 7zip: | 1152 | 7zip: |
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 | |||
1155 | manual: | ||
1156 | @\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual buildmanual | ||
1157 | |||
1124 | EOF | 1158 | EOF |
1125 | 1159 | ||
1126 | if [ "yes" = "$simulator" ]; then | 1160 | if [ "yes" = "$simulator" ]; then |