diff --git a/tools/configure b/tools/configure index f7ffb77d6d..57d17d0074 100755 --- a/tools/configure +++ b/tools/configure @@ -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,11 +1076,12 @@ 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]) + [Ee]) echo "Treating all warnings as errors" GCCOPTS="$GCCOPTS -Werror" ;; @@ -1658,23 +1681,23 @@ cat <