mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
configure: Allow bootloader to be specified under advanced options
This required renaming the LTO build option. Change-Id: Ibd93e55d37b5226e7b3270d56cf07bf96a780f28
This commit is contained in:
parent
7ea64a315b
commit
200529532b
1 changed files with 32 additions and 23 deletions
45
tools/configure
vendored
45
tools/configure
vendored
|
@ -942,6 +942,24 @@ mipsellinuxcc () {
|
|||
prefixtools "mipsel-rockbox-linux-gnu-"
|
||||
}
|
||||
|
||||
do_bootloader() {
|
||||
appsdir='$(ROOTDIR)/bootloader'
|
||||
apps="bootloader"
|
||||
flash=""
|
||||
if test -n "$boottool"; then
|
||||
tool="$boottool"
|
||||
fi
|
||||
if test -n "$bootoutput"; then
|
||||
output=$bootoutput
|
||||
fi
|
||||
if test -n "$arm_thumb_boot" && test -z "$ARG_ARM_THUMB"; then
|
||||
ARG_ARM_THUMB=1
|
||||
fi
|
||||
extradefines="$extradefines -DBOOTLOADER -ffunction-sections -fdata-sections"
|
||||
bootloader="1"
|
||||
if [ -n "${sysfontbl}" ] ; then sysfont=$sysfontbl ; fi
|
||||
}
|
||||
|
||||
whichadvanced () {
|
||||
atype=`echo "$1" | cut -c 2-`
|
||||
##################################################################
|
||||
|
@ -953,9 +971,9 @@ whichadvanced () {
|
|||
interact=1
|
||||
echo ""
|
||||
printf "Enter your developer options (press only enter when done)\n\
|
||||
(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial,\n\
|
||||
(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (B)ootloader, (P)rofiling, (V)oice, (U)SB Serial,\n\
|
||||
(W)in32 crosscompile, Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, \n\
|
||||
S(m)all C lib, Logf to Ser(i)al port, LTO (B)uild, (E)rror on warnings"
|
||||
S(m)all C lib, Logf to Ser(i)al port, LTO Build(X), (E)rror on warnings"
|
||||
if [ "$modelname" = "iaudiom5" ]; then
|
||||
printf ", (F)M radio MOD"
|
||||
fi
|
||||
|
@ -1014,6 +1032,10 @@ S(m)all C lib, Logf to Ser(i)al port, LTO (B)uild, (E)rror on warnings"
|
|||
echo "Simulator build enabled"
|
||||
simulator="yes"
|
||||
;;
|
||||
[Bb])
|
||||
echo "Bootloader build selected"
|
||||
do_bootloader
|
||||
;;
|
||||
[Pp])
|
||||
if [ "yes" = "$use_debug" ]; then
|
||||
echo "Profiling is incompatible with debug"
|
||||
|
@ -1054,9 +1076,10 @@ S(m)all C lib, Logf to Ser(i)al port, LTO (B)uild, (E)rror on warnings"
|
|||
win32crosscompile="yes"
|
||||
win64="yes"
|
||||
;;
|
||||
[Bb])
|
||||
[Xx])
|
||||
echo "LTO build enabled"
|
||||
LTO_ARG="export USE_LTO=y"
|
||||
# GCCOPTS="$GCCOPTS -flto"
|
||||
;;
|
||||
[Ee])
|
||||
echo "Treating all warnings as errors"
|
||||
|
@ -4351,21 +4374,7 @@ fi
|
|||
echo "sansa eraser build selected"
|
||||
;;
|
||||
[Bb])
|
||||
appsdir='$(ROOTDIR)/bootloader'
|
||||
apps="bootloader"
|
||||
flash=""
|
||||
if test -n "$boottool"; then
|
||||
tool="$boottool"
|
||||
fi
|
||||
if test -n "$bootoutput"; then
|
||||
output=$bootoutput
|
||||
fi
|
||||
if test -n "$arm_thumb_boot" && test -z "$ARG_ARM_THUMB"; then
|
||||
ARG_ARM_THUMB=1
|
||||
fi
|
||||
extradefines="$extradefines -DBOOTLOADER -ffunction-sections -fdata-sections"
|
||||
bootloader="1"
|
||||
if [ -n "${sysfontbl}" ] ; then sysfont=$sysfontbl ; fi
|
||||
do_bootloader
|
||||
echo "Bootloader build selected"
|
||||
;;
|
||||
[Ss])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue