diff options
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 54 |
1 files changed, 46 insertions, 8 deletions
diff --git a/tools/configure b/tools/configure index aa3a8cca5e..35e7fd72d7 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -242,13 +242,21 @@ arm9tdmicc () { | |||
242 | endian="little" | 242 | endian="little" |
243 | } | 243 | } |
244 | 244 | ||
245 | whichdevel () { | 245 | whichadvanced () { |
246 | ################################################################## | 246 | ################################################################## |
247 | # Prompt for specific developer options | 247 | # Prompt for specific developer options |
248 | # | 248 | # |
249 | echo "" | 249 | echo "" |
250 | echo "Enter your developer options (press enter when done)" | 250 | echo "Enter your developer options (press enter when done)" |
251 | echo "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling" | 251 | echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling" |
252 | if [ "$memory" = "2" ]; then | ||
253 | echo -n ", (8)MB MOD" | ||
254 | fi | ||
255 | if [ "$archos" = "h120" ]; then | ||
256 | echo -n ", (R)TC MOD" | ||
257 | fi | ||
258 | echo "" | ||
259 | |||
252 | cont=1 | 260 | cont=1 |
253 | 261 | ||
254 | while [ $cont = "1" ]; do | 262 | while [ $cont = "1" ]; do |
@@ -280,12 +288,29 @@ whichdevel () { | |||
280 | profile="yes" | 288 | profile="yes" |
281 | fi | 289 | fi |
282 | ;; | 290 | ;; |
291 | 8) | ||
292 | if [ "$memory" = "2" ]; then | ||
293 | memory="8" | ||
294 | echo "Memory size selected: 8MB" | ||
295 | else | ||
296 | cont=0 | ||
297 | fi | ||
298 | ;; | ||
299 | [Rr]) | ||
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)" | ||
304 | else | ||
305 | cont=0 | ||
306 | fi | ||
307 | ;; | ||
283 | *) | 308 | *) |
284 | echo "done" | ||
285 | cont=0 | 309 | cont=0 |
286 | ;; | 310 | ;; |
287 | esac | 311 | esac |
288 | done | 312 | done |
313 | echo "done" | ||
289 | 314 | ||
290 | if [ "yes" = "$use_debug" ]; then | 315 | if [ "yes" = "$use_debug" ]; then |
291 | debug="-DDEBUG" | 316 | debug="-DDEBUG" |
@@ -649,6 +674,7 @@ EOF | |||
649 | target_id=2 | 674 | target_id=2 |
650 | archos="recorder" | 675 | archos="recorder" |
651 | target="-DARCHOS_RECORDER" | 676 | target="-DARCHOS_RECORDER" |
677 | memory="2" | ||
652 | shcc | 678 | shcc |
653 | tool="$rootdir/tools/scramble" | 679 | tool="$rootdir/tools/scramble" |
654 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 680 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -671,6 +697,7 @@ EOF | |||
671 | target_id=3 | 697 | target_id=3 |
672 | archos="fmrecorder" | 698 | archos="fmrecorder" |
673 | target="-DARCHOS_FMRECORDER" | 699 | target="-DARCHOS_FMRECORDER" |
700 | memory="2" | ||
674 | shcc | 701 | shcc |
675 | tool="$rootdir/tools/scramble -fm" | 702 | tool="$rootdir/tools/scramble -fm" |
676 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 703 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -693,6 +720,7 @@ EOF | |||
693 | target_id=4 | 720 | target_id=4 |
694 | archos="recorderv2" | 721 | archos="recorderv2" |
695 | target="-DARCHOS_RECORDERV2" | 722 | target="-DARCHOS_RECORDERV2" |
723 | memory="2" | ||
696 | shcc | 724 | shcc |
697 | tool="$rootdir/tools/scramble -v2" | 725 | tool="$rootdir/tools/scramble -v2" |
698 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 726 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -715,6 +743,7 @@ EOF | |||
715 | target_id=7 | 743 | target_id=7 |
716 | archos="ondiosp" | 744 | archos="ondiosp" |
717 | target="-DARCHOS_ONDIOSP" | 745 | target="-DARCHOS_ONDIOSP" |
746 | memory="2" | ||
718 | shcc | 747 | shcc |
719 | tool="$rootdir/tools/scramble -osp" | 748 | tool="$rootdir/tools/scramble -osp" |
720 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 749 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -737,6 +766,7 @@ EOF | |||
737 | target_id=8 | 766 | target_id=8 |
738 | archos="ondiofm" | 767 | archos="ondiofm" |
739 | target="-DARCHOS_ONDIOFM" | 768 | target="-DARCHOS_ONDIOFM" |
769 | memory="2" | ||
740 | shcc | 770 | shcc |
741 | tool="$rootdir/tools/scramble -ofm" | 771 | tool="$rootdir/tools/scramble -ofm" |
742 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 772 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -1243,11 +1273,12 @@ EOF | |||
1243 | echo "Platform set to $archos" | 1273 | echo "Platform set to $archos" |
1244 | 1274 | ||
1245 | 1275 | ||
1276 | #remove start | ||
1246 | ############################################################################ | 1277 | ############################################################################ |
1247 | # Amount of memory, for those that can differ. | 1278 | # Amount of memory, for those that can differ. |
1248 | # | 1279 | # |
1249 | 1280 | ||
1250 | if [ -z "$memory" ]; then | 1281 | if [ "$memory" = "2" ]; then |
1251 | size="2" | 1282 | size="2" |
1252 | if [ -z "$update" ]; then | 1283 | if [ -z "$update" ]; then |
1253 | echo "Enter size of your RAM (in MB): (defaults to 2)" | 1284 | echo "Enter size of your RAM (in MB): (defaults to 2)" |
@@ -1265,6 +1296,7 @@ if [ -z "$memory" ]; then | |||
1265 | esac | 1296 | esac |
1266 | echo "Memory size selected: $memory MB" | 1297 | echo "Memory size selected: $memory MB" |
1267 | fi | 1298 | fi |
1299 | #remove end | ||
1268 | 1300 | ||
1269 | ################################################################## | 1301 | ################################################################## |
1270 | # Figure out build "type" | 1302 | # Figure out build "type" |
@@ -1281,7 +1313,7 @@ fi | |||
1281 | esac | 1313 | esac |
1282 | 1314 | ||
1283 | echo "" | 1315 | echo "" |
1284 | echo "Build (N)ormal, (D)evel, (S)imulator, (B)ootloader, $gdbstub(M)anual, (V)oice? (N)" | 1316 | echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual, (V)oice? (N)" |
1285 | 1317 | ||
1286 | option=`input`; | 1318 | option=`input`; |
1287 | 1319 | ||
@@ -1314,9 +1346,9 @@ fi | |||
1314 | echo "Simulator build selected" | 1346 | echo "Simulator build selected" |
1315 | whichsim | 1347 | whichsim |
1316 | ;; | 1348 | ;; |
1317 | [Dd]) | 1349 | [Aa]) |
1318 | echo "Devel build selected" | 1350 | echo "Advanced build selected" |
1319 | whichdevel | 1351 | whichadvanced |
1320 | ;; | 1352 | ;; |
1321 | [Gg]) | 1353 | [Gg]) |
1322 | extradefines="-DSTUB" # for target makefile symbol EXTRA_DEFINES | 1354 | extradefines="-DSTUB" # for target makefile symbol EXTRA_DEFINES |
@@ -1492,6 +1524,8 @@ sed > autoconf.h \ | |||
1492 | -e "s,@ENDIAN@,${defendian},g" \ | 1524 | -e "s,@ENDIAN@,${defendian},g" \ |
1493 | -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \ | 1525 | -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \ |
1494 | -e "s,@SIMSOUND@,$use_simsound,g" \ | 1526 | -e "s,@SIMSOUND@,$use_simsound,g" \ |
1527 | -e "s,@config_rtc@,$config_rtc,g" \ | ||
1528 | -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \ | ||
1495 | <<EOF | 1529 | <<EOF |
1496 | /* This header was made by configure */ | 1530 | /* This header was made by configure */ |
1497 | #ifndef __BUILD_AUTOCONF_H | 1531 | #ifndef __BUILD_AUTOCONF_H |
@@ -1507,6 +1541,10 @@ sed > autoconf.h \ | |||
1507 | the sound-playing code in the X11 sim */ | 1541 | the sound-playing code in the X11 sim */ |
1508 | @SIMSOUND@ | 1542 | @SIMSOUND@ |
1509 | 1543 | ||
1544 | /* optional defines for RTC mod for h1x0 */ | ||
1545 | @config_rtc@ | ||
1546 | @have_rtc_alarm@ | ||
1547 | |||
1510 | #endif /* __BUILD_AUTOCONF_H */ | 1548 | #endif /* __BUILD_AUTOCONF_H */ |
1511 | EOF | 1549 | EOF |
1512 | 1550 | ||