summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-15 19:40:55 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit092c340a2062fa98b7387fc5fd63578ddae7d0b6 (patch)
tree98ec96946eeb2ae709cb0528cc6998e21bb9b290 /tools/configure
parent17f7cc92c258bc456a27c3e7c5a19c9409851879 (diff)
downloadrockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.gz
rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.zip
[1/4] Remove SH support and all archos targets
This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure234
1 files changed, 20 insertions, 214 deletions
diff --git a/tools/configure b/tools/configure
index 501482ea0e..b4a7910397 100755
--- a/tools/configure
+++ b/tools/configure
@@ -496,14 +496,6 @@ EOF
496# the gcc version should most likely match what versions we build with 496# the gcc version should most likely match what versions we build with
497# rockboxdev.sh 497# rockboxdev.sh
498# 498#
499shcc () {
500 prefixtools sh-elf-
501 GCCOPTS="$CCOPTS -m1"
502 GCCOPTIMIZE="-fomit-frame-pointer -fschedule-insns"
503 endian="big"
504 gccchoice="4.0.3"
505}
506
507calmrisccc () { 499calmrisccc () {
508 prefixtools calmrisc16-unknown-elf- 500 prefixtools calmrisc16-unknown-elf-
509 GCCOPTS="-Wl\,--no-check-sections $CCOPTS" 501 GCCOPTS="-Wl\,--no-check-sections $CCOPTS"
@@ -927,12 +919,6 @@ whichadvanced () {
927 printf "Enter your developer options (press only enter when done)\n\ 919 printf "Enter your developer options (press only enter when done)\n\
928(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile,\n\ 920(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile,\n\
929Win(6)4 crosscompile, (T)est plugins, S(m)all C lib, Logf to Ser(i)al port:" 921Win(6)4 crosscompile, (T)est plugins, S(m)all C lib, Logf to Ser(i)al port:"
930 if [ "$modelname" = "archosplayer" ]; then
931 printf ", Use (A)TA poweroff"
932 fi
933 if [ "$t_model" = "ondio" ]; then
934 printf ", (B)acklight MOD"
935 fi
936 if [ "$modelname" = "iaudiom5" ]; then 922 if [ "$modelname" = "iaudiom5" ]; then
937 printf ", (F)M radio MOD" 923 printf ", (F)M radio MOD"
938 fi 924 fi
@@ -998,18 +984,6 @@ Win(6)4 crosscompile, (T)est plugins, S(m)all C lib, Logf to Ser(i)al port:"
998 echo "Voice build selected" 984 echo "Voice build selected"
999 voice="yes" 985 voice="yes"
1000 ;; 986 ;;
1001 [Aa])
1002 if [ "$modelname" = "archosplayer" ]; then
1003 have_ata_poweroff="#define HAVE_ATA_POWER_OFF"
1004 echo "ATA power off enabled"
1005 fi
1006 ;;
1007 [Bb])
1008 if [ "$t_model" = "ondio" ]; then
1009 have_backlight="#define HAVE_BACKLIGHT"
1010 echo "Backlight functions enabled"
1011 fi
1012 ;;
1013 [Ff]) 987 [Ff])
1014 if [ "$modelname" = "iaudiom5" ]; then 988 if [ "$modelname" = "iaudiom5" ]; then
1015 have_fmradio_in="#define HAVE_FMRADIO_IN" 989 have_fmradio_in="#define HAVE_FMRADIO_IN"
@@ -1076,7 +1050,6 @@ Win(6)4 crosscompile, (T)est plugins, S(m)all C lib, Logf to Ser(i)al port:"
1076 if [ "yes" = "$simulator" ]; then 1050 if [ "yes" = "$simulator" ]; then
1077 debug="-DDEBUG" 1051 debug="-DDEBUG"
1078 extradefines="$extradefines -DSIMULATOR -DHAVE_TEST_PLUGINS" 1052 extradefines="$extradefines -DSIMULATOR -DHAVE_TEST_PLUGINS"
1079 archosrom=""
1080 flash="" 1053 flash=""
1081 fi 1054 fi
1082 if [ "yes" = "$profile" ]; then 1055 if [ "yes" = "$profile" ]; then
@@ -1572,13 +1545,13 @@ if [ "$ARG_TARGET" ]; then
1572else 1545else
1573 echo "Enter target platform:" 1546 echo "Enter target platform:"
1574cat <<EOF 1547cat <<EOF
1575 ==Archos== ==iriver== ==Apple iPod== 1548 ==iriver== ==Apple iPod==
1576 0) Player/Studio 10) H120/H140 20) Color/Photo 1549 10) H120/H140 20) Color/Photo
1577 1) Recorder 11) H320/H340 21) Nano 1G 1550 11) H320/H340 21) Nano 1G
1578 2) FM Recorder 12) iHP-100/110/115 22) Video 1551 12) iHP-100/110/115 22) Video
1579 3) Recorder v2 13) iFP-790 23) 3G 1552 13) iFP-790 23) 3G
1580 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale 1553 14) H10 20Gb 24) 4G Grayscale
1581 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G 1554 15) H10 5/6Gb 25) Mini 1G
1582 26) Mini 2G 1555 26) Mini 2G
1583 ==Toshiba== 27) 1G, 2G 1556 ==Toshiba== 27) 1G, 2G
1584 ==Cowon/iAudio== 40) Gigabeat F/X 28) Nano 2G 1557 ==Cowon/iAudio== 40) Gigabeat F/X 28) Nano 2G
@@ -1641,7 +1614,6 @@ fi
1641 toolset="rdf2binary convbdf codepages" 1614 toolset="rdf2binary convbdf codepages"
1642 1615
1643 # Toolsets for some target families: 1616 # Toolsets for some target families:
1644 archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb"
1645 iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb" 1617 iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb"
1646 iaudiobitmaptools="$toolset scramble descramble mkboot bmp2rb" 1618 iaudiobitmaptools="$toolset scramble descramble mkboot bmp2rb"
1647 ipodbitmaptools="$toolset scramble bmp2rb" 1619 ipodbitmaptools="$toolset scramble bmp2rb"
@@ -1673,8 +1645,6 @@ fi
1673 # $output) 1645 # $output)
1674 # appextra: passed to the APPEXTRA variable in the Makefiles. 1646 # appextra: passed to the APPEXTRA variable in the Makefiles.
1675 # TODO: add proper explanation 1647 # TODO: add proper explanation
1676 # archosrom: used only for Archos targets that build a special flashable .ucl
1677 # image.
1678 # flash: name of output for flashing, for targets where there's a special 1648 # flash: name of output for flashing, for targets where there's a special
1679 # file output for this. 1649 # file output for this.
1680 # plugins: set to 'yes' to build the plugins. Early development builds can 1650 # plugins: set to 'yes' to build the plugins. Early development builds can
@@ -1691,140 +1661,6 @@ fi
1691 1661
1692 case $buildfor in 1662 case $buildfor in
1693 1663
1694 0|archosplayer)
1695 target_id=1
1696 modelname="archosplayer"
1697 target="ARCHOS_PLAYER"
1698 shcc
1699 tool="$rootdir/tools/scramble"
1700 output="archos.mod"
1701 appextra="player:gui"
1702 #archosrom="$pwd/rombox.ucl"
1703 flash="$pwd/rockbox.ucl"
1704 plugins="yes"
1705 swcodec=""
1706
1707 # toolset is the tools within the tools directory that we build for
1708 # this particular target.
1709 toolset="$toolset scramble descramble sh2d player_unifont uclpack"
1710
1711 # Note: the convbdf is present in the toolset just because: 1) the
1712 # firmware/Makefile assumes it is present always, and 2) we will need it when we
1713 # build the player simulator
1714
1715 t_cpu="sh"
1716 t_manufacturer="archos"
1717 t_model="player"
1718 ;;
1719
1720 1|archosrecorder)
1721 target_id=2
1722 modelname="archosrecorder"
1723 target="ARCHOS_RECORDER"
1724 shcc
1725 tool="$rootdir/tools/scramble"
1726 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1727 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1728 output="ajbrec.ajz"
1729 appextra="recorder:gui:radio"
1730 #archosrom="$pwd/rombox.ucl"
1731 flash="$pwd/rockbox.ucl"
1732 plugins="yes"
1733 swcodec=""
1734 # toolset is the tools within the tools directory that we build for
1735 # this particular target.
1736 toolset=$archosbitmaptools
1737 t_cpu="sh"
1738 t_manufacturer="archos"
1739 t_model="recorder"
1740 ;;
1741
1742 2|archosfmrecorder)
1743 target_id=3
1744 modelname="archosfmrecorder"
1745 target="ARCHOS_FMRECORDER"
1746 shcc
1747 tool="$rootdir/tools/scramble -fm"
1748 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1749 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1750 output="ajbrec.ajz"
1751 appextra="recorder:gui:radio"
1752 #archosrom="$pwd/rombox.ucl"
1753 flash="$pwd/rockbox.ucl"
1754 plugins="yes"
1755 swcodec=""
1756 # toolset is the tools within the tools directory that we build for
1757 # this particular target.
1758 toolset=$archosbitmaptools
1759 t_cpu="sh"
1760 t_manufacturer="archos"
1761 t_model="fm_v2"
1762 ;;
1763
1764 3|archosrecorderv2)
1765 target_id=4
1766 modelname="archosrecorderv2"
1767 target="ARCHOS_RECORDERV2"
1768 shcc
1769 tool="$rootdir/tools/scramble -v2"
1770 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1771 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1772 output="ajbrec.ajz"
1773 appextra="recorder:gui:radio"
1774 #archosrom="$pwd/rombox.ucl"
1775 flash="$pwd/rockbox.ucl"
1776 plugins="yes"
1777 swcodec=""
1778 # toolset is the tools within the tools directory that we build for
1779 # this particular target.
1780 toolset=$archosbitmaptools
1781 t_cpu="sh"
1782 t_manufacturer="archos"
1783 t_model="fm_v2"
1784 ;;
1785
1786 4|archosondiosp)
1787 target_id=7
1788 modelname="archosondiosp"
1789 target="ARCHOS_ONDIOSP"
1790 shcc
1791 tool="$rootdir/tools/scramble -osp"
1792 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1793 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1794 output="ajbrec.ajz"
1795 appextra="recorder:gui:radio"
1796 #archosrom="$pwd/rombox.ucl"
1797 flash="$pwd/rockbox.ucl"
1798 plugins="yes"
1799 swcodec=""
1800 # toolset is the tools within the tools directory that we build for
1801 # this particular target.
1802 toolset=$archosbitmaptools
1803 t_cpu="sh"
1804 t_manufacturer="archos"
1805 t_model="ondio"
1806 ;;
1807
1808 5|archosondiofm)
1809 target_id=8
1810 modelname="archosondiofm"
1811 target="ARCHOS_ONDIOFM"
1812 shcc
1813 tool="$rootdir/tools/scramble -ofm"
1814 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1815 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1816 output="ajbrec.ajz"
1817 appextra="recorder:gui:radio"
1818 #archosrom="$pwd/rombox.ucl"
1819 flash="$pwd/rockbox.ucl"
1820 plugins="yes"
1821 swcodec=""
1822 toolset=$archosbitmaptools
1823 t_cpu="sh"
1824 t_manufacturer="archos"
1825 t_model="ondio"
1826 ;;
1827
1828 10|iriverh120) 1664 10|iriverh120)
1829 target_id=9 1665 target_id=9
1830 modelname="iriverh120" 1666 modelname="iriverh120"
@@ -4529,21 +4365,14 @@ fi
4529 echo "sansa eraser build selected" 4365 echo "sansa eraser build selected"
4530 ;; 4366 ;;
4531 [Bb]) 4367 [Bb])
4532 if test $t_manufacturer = "archos"; then 4368 appsdir='$(ROOTDIR)/bootloader'
4533 # Archos SH-based players do this somewhat differently for 4369 apps="bootloader"
4534 # some reason 4370 flash=""
4535 appsdir='$(ROOTDIR)/flash/bootbox' 4371 if test -n "$boottool"; then
4536 apps="bootbox" 4372 tool="$boottool"
4537 else 4373 fi
4538 appsdir='$(ROOTDIR)/bootloader' 4374 if test -n "$bootoutput"; then
4539 apps="bootloader" 4375 output=$bootoutput
4540 flash=""
4541 if test -n "$boottool"; then
4542 tool="$boottool"
4543 fi
4544 if test -n "$bootoutput"; then
4545 output=$bootoutput
4546 fi
4547 fi 4376 fi
4548 extradefines="$extradefines -DBOOTLOADER -ffunction-sections -fdata-sections" 4377 extradefines="$extradefines -DBOOTLOADER -ffunction-sections -fdata-sections"
4549 bootloader="1" 4378 bootloader="1"
@@ -4557,7 +4386,6 @@ fi
4557 debug="-DDEBUG" 4386 debug="-DDEBUG"
4558 simulator="yes" 4387 simulator="yes"
4559 extradefines="$extradefines -DSIMULATOR -DHAVE_TEST_PLUGINS" 4388 extradefines="$extradefines -DSIMULATOR -DHAVE_TEST_PLUGINS"
4560 archosrom=""
4561 flash="" 4389 flash=""
4562 echo "Simulator build selected" 4390 echo "Simulator build selected"
4563 ;; 4391 ;;
@@ -4588,7 +4416,6 @@ fi
4588 extradefines="$extradefines -DDEBUG" 4416 extradefines="$extradefines -DDEBUG"
4589 appsdir='$(ROOTDIR)/tools/checkwps'; 4417 appsdir='$(ROOTDIR)/tools/checkwps';
4590 output='checkwps.'${modelname}; 4418 output='checkwps.'${modelname};
4591 archosrom='';
4592 echo "CheckWPS build selected" 4419 echo "CheckWPS build selected"
4593 ;; 4420 ;;
4594 [Dd]) 4421 [Dd])
@@ -4596,7 +4423,6 @@ fi
4596 simcc "database-sdl" 4423 simcc "database-sdl"
4597 toolset=''; 4424 toolset='';
4598 appsdir='$(ROOTDIR)/tools/database'; 4425 appsdir='$(ROOTDIR)/tools/database';
4599 archosrom='';
4600 4426
4601 case $uname in 4427 case $uname in
4602 CYGWIN*|MINGW*) 4428 CYGWIN*|MINGW*)
@@ -4620,7 +4446,6 @@ fi
4620 GCCOPTS=''; 4446 GCCOPTS='';
4621 extradefines="$extradefines -DDEBUG" 4447 extradefines="$extradefines -DDEBUG"
4622 output='warble.'${modelname}; 4448 output='warble.'${modelname};
4623 archosrom='';
4624 echo "Warble build selected" 4449 echo "Warble build selected"
4625 ;; 4450 ;;
4626 *) 4451 *)
@@ -4636,9 +4461,6 @@ fi
4636 esac 4461 esac
4637 # to be able running "make manual" from non-manual configuration 4462 # to be able running "make manual" from non-manual configuration
4638 case $modelname in 4463 case $modelname in
4639 archosrecorderv2)
4640 manualdev="archosfmrecorder"
4641 ;;
4642 iriverh1??) 4464 iriverh1??)
4643 manualdev="iriverh100" 4465 manualdev="iriverh100"
4644 ;; 4466 ;;
@@ -4766,30 +4588,15 @@ echo "Using $LD $ldver"
4766makever=`make --version | head -1` 4588makever=`make --version | head -1`
4767echo "Detected make $makever" 4589echo "Detected make $makever"
4768 4590
4769# check the compiler for SH platforms
4770if test "$CC" = "sh-elf-gcc"; then
4771 if test "$gccnum" -lt "400"; then
4772 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
4773 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
4774 else
4775 # figure out patch status
4776 gccpatch=`$CC --version`;
4777
4778 if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then
4779 echo "gcc $gccver is rockbox patched"
4780 # then convert -O to -Os to get smaller binaries!
4781 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
4782 else
4783 echo "WARNING: You use an unpatched gcc compiler: $gccver"
4784 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
4785 fi
4786 fi
4787fi
4788
4789if test "$CC" = "m68k-elf-gcc"; then 4591if test "$CC" = "m68k-elf-gcc"; then
4790 # convert -O to -Os to get smaller binaries! 4592 # convert -O to -Os to get smaller binaries!
4791 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'` 4593 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
4792fi 4594fi
4595if test "$CC" = "mipsel-elf-gcc"; then
4596 # convert -O to -Os to get smaller binaries!
4597 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
4598fi
4599
4793 4600
4794if [ "$ARG_CCACHE" = "1" ]; then 4601if [ "$ARG_CCACHE" = "1" ]; then
4795 echo "Enable ccache for building" 4602 echo "Enable ccache for building"
@@ -5025,7 +4832,6 @@ export DOCSDIR=${rootdir}/docs
5025export MANUALDIR=${rootdir}/manual 4832export MANUALDIR=${rootdir}/manual
5026export DEBUG=${debug} 4833export DEBUG=${debug}
5027export MODELNAME=${modelname} 4834export MODELNAME=${modelname}
5028export ARCHOSROM=${archosrom}
5029export FLASHFILE=${flash} 4835export FLASHFILE=${flash}
5030export TARGET_ID=${target_id} 4836export TARGET_ID=${target_id}
5031export TARGET=-D${target} 4837export TARGET=-D${target}