summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-11-18 08:30:01 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-11-18 08:50:05 -0500
commit7c87467ba4d6f6fabca5b167e1233d4cca1671ca (patch)
tree35dda6d0ba129551fc5ee997e46106545852a91b /tools/configure
parent20774d88b5dfbd1f01817c889f787d4ab6ebf76c (diff)
configure: Add prompt for USB Serial into the advanced mode
And explicitly disable USB_ENABLE_SERIAL when HAVE_USBSTACK is not define Change-Id: Ieb4176b02a60eb1b9db81f0b8c69403898a76ca1
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure14
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/configure b/tools/configure
index b8e495a908..36e951e4d2 100755
--- a/tools/configure
+++ b/tools/configure
@@ -919,7 +919,7 @@ 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, (W)in32 crosscompile,\n\
+(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial, (W)in32 crosscompile,\n\
Win(6)4 crosscompile, (T)est plugins, S(m)all C lib, Logf to Ser(i)al port:"
if [ "$modelname" = "iaudiom5" ]; then
printf ", (F)M radio MOD"
@@ -999,6 +999,11 @@ Win(6)4 crosscompile, (T)est plugins, S(m)all C lib, Logf to Ser(i)al port:"
echo "RTC functions enabled (DS1339/DS3231)"
fi
;;
+ [Uu])
+ echo "USB Serial support enabled"
+ use_usb_serial="#define USB_ENABLE_SERIAL"
+ logf="yes"
+ ;;
[Ww])
echo "Enabling Windows cross-compiling (32-bit)"
win32crosscompile="yes"
@@ -4660,14 +4665,11 @@ ${use_logf_serial}
/* Define this to record a chart with timings for the stages of boot */
${use_bootchart}
-/* optional define for a backlight modded Ondio */
-${have_backlight}
-
/* optional define for FM radio mod for iAudio M5 */
${have_fmradio_in}
-/* optional define for ATA poweroff on Player */
-${have_ata_poweroff}
+/* optional define for USB Serial */
+${use_usb_serial}
/* optional defines for RTC mod for h1x0 */
${config_rtc}