summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-02-27 22:08:58 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-03-28 00:01:37 +0000
commit3ec66893e377b088c1284d2d23adb2aeea6d7965 (patch)
treeb647717f83ad56b15dc42cfdef5d04d68cd9bd6b /tools/configure
parent83fcbedc65f4b9ae7e491ecf6f07c0af4b245f74 (diff)
downloadrockbox-3ec66893e377b088c1284d2d23adb2aeea6d7965.tar.gz
rockbox-3ec66893e377b088c1284d2d23adb2aeea6d7965.zip
New port: FiiO M3K on bare metal
Change-Id: I7517e7d5459e129dcfc9465c6fbd708619888fbe
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure50
1 files changed, 48 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index 4ddd044b71..c4d98f3f70 100755
--- a/tools/configure
+++ b/tools/configure
@@ -586,6 +586,16 @@ mipselcc () {
586 gccchoice="4.9.4" 586 gccchoice="4.9.4"
587} 587}
588 588
589mipsr2elcc () {
590 prefixtools mipsel-elf-
591 # mips is predefined, but we want it for paths. use __mips instead
592 GCCOPTS="$CCOPTS -march=mips32r2 -mno-mips16 -mno-long-calls -Umips"
593 GCCOPTS="$GCCOPTS -ffunction-sections -msoft-float -G 0 -Wno-parentheses"
594 GCCOPTIMIZE="-fomit-frame-pointer"
595 endian="little"
596 gccchoice="4.9.4"
597}
598
589maemocc () { 599maemocc () {
590 # Scratchbox sets up "gcc" based on the active target 600 # Scratchbox sets up "gcc" based on the active target
591 prefixtools "" 601 prefixtools ""
@@ -1596,8 +1606,7 @@ cat <<EOF
1596 240) Rocker 228) NWZ-A860 series 1606 240) Rocker 228) NWZ-A860 series
1597 ==FiiO== 229) NWZ-S750 series 1607 ==FiiO== 229) NWZ-S750 series
1598 ==AIGO== 244) M3K Linux 1608 ==AIGO== 244) M3K Linux
1599 245) Eros Q / K 1609 245) Eros Q / K 246) M3K baremetal
1600
1601EOF 1610EOF
1602 1611
1603 buildfor=`input`; 1612 buildfor=`input`;
@@ -4200,6 +4209,31 @@ fi
4200 t_model="ihifi2" 4209 t_model="ihifi2"
4201 ;; 4210 ;;
4202 4211
4212 246|fiiom3k)
4213 target_id=114
4214 modelname="fiiom3k"
4215 target="FIIO_M3K"
4216 memory=64
4217 mipsr2elcc
4218 appextra="recorder:gui"
4219 plugins="yes"
4220 tool="$rootdir/tools/scramble -add=fiiom3k "
4221 boottool="$rootdir/tools/scramble -add=fiiom3k "
4222 spltool="$rootdir/tools/mkspl-x1000 -type=nand -ppb=2 -bpp=2 "
4223 output="rockbox.m3k"
4224 bootoutput="bootloader.m3k"
4225 sploutput="spl.m3k"
4226 # toolset is the tools within the tools directory that we build for
4227 # this particular target.
4228 toolset="$toolset mkspl-x1000"
4229 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
4230 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
4231 # architecture, manufacturer and model for the target-tree build
4232 t_cpu="mips"
4233 t_manufacturer="ingenic_x1000"
4234 t_model="fiiom3k"
4235 ;;
4236
4203 *) 4237 *)
4204 echo "Please select a supported target platform!" 4238 echo "Please select a supported target platform!"
4205 exit 7 4239 exit 7
@@ -4275,6 +4309,9 @@ case $modelname in
4275 sansae200) 4309 sansae200)
4276 gdbstub=", (E)raser" 4310 gdbstub=", (E)raser"
4277 ;; 4311 ;;
4312 fiiom3k)
4313 gdbstub=", (X) SPL loader"
4314 ;;
4278 *) 4315 *)
4279 ;; 4316 ;;
4280esac 4317esac
@@ -4300,6 +4337,15 @@ fi
4300 bootloader="1" 4337 bootloader="1"
4301 echo "sansa eraser build selected" 4338 echo "sansa eraser build selected"
4302 ;; 4339 ;;
4340 [Xx])
4341 appsdir='$(ROOTDIR)/bootloader'
4342 apps="bootloader"
4343 extradefines="$extradefines -DBOOTLOADER -DBOOTLOADER_SPL -ffunction-sections -fdata-sections"
4344 bootloader="1"
4345 tool="$spltool"
4346 output="$sploutput"
4347 echo "SPL bootloader build selected"
4348 ;;
4303 [Bb]) 4349 [Bb])
4304 appsdir='$(ROOTDIR)/bootloader' 4350 appsdir='$(ROOTDIR)/bootloader'
4305 apps="bootloader" 4351 apps="bootloader"