summaryrefslogtreecommitdiff
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
parent20774d88b5dfbd1f01817c889f787d4ab6ebf76c (diff)
downloadrockbox-7c87467ba4d6f6fabca5b167e1233d4cca1671ca.tar.gz
rockbox-7c87467ba4d6f6fabca5b167e1233d4cca1671ca.zip
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
-rw-r--r--firmware/logf.c2
-rwxr-xr-xtools/configure14
2 files changed, 10 insertions, 6 deletions
diff --git a/firmware/logf.c b/firmware/logf.c
index 3f9bd36112..11ffa4e15c 100644
--- a/firmware/logf.c
+++ b/firmware/logf.c
@@ -43,6 +43,8 @@
43#ifdef HAVE_USBSTACK 43#ifdef HAVE_USBSTACK
44#include "usb_core.h" 44#include "usb_core.h"
45#include "usbstack/usb_serial.h" 45#include "usbstack/usb_serial.h"
46#else
47#undef USB_ENABLE_SERIAL
46#endif 48#endif
47 49
48#ifdef ROCKBOX_HAS_LOGDISKF 50#ifdef ROCKBOX_HAS_LOGDISKF
diff --git a/tools/configure b/tools/configure
index b8e495a908..36e951e4d2 100755
--- a/tools/configure
+++ b/tools/configure
@@ -919,7 +919,7 @@ whichadvanced () {
919 interact=1 919 interact=1
920 echo "" 920 echo ""
921 printf "Enter your developer options (press only enter when done)\n\ 921 printf "Enter your developer options (press only enter when done)\n\
922(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile,\n\ 922(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial, (W)in32 crosscompile,\n\
923Win(6)4 crosscompile, (T)est plugins, S(m)all C lib, Logf to Ser(i)al port:" 923Win(6)4 crosscompile, (T)est plugins, S(m)all C lib, Logf to Ser(i)al port:"
924 if [ "$modelname" = "iaudiom5" ]; then 924 if [ "$modelname" = "iaudiom5" ]; then
925 printf ", (F)M radio MOD" 925 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:"
999 echo "RTC functions enabled (DS1339/DS3231)" 999 echo "RTC functions enabled (DS1339/DS3231)"
1000 fi 1000 fi
1001 ;; 1001 ;;
1002 [Uu])
1003 echo "USB Serial support enabled"
1004 use_usb_serial="#define USB_ENABLE_SERIAL"
1005 logf="yes"
1006 ;;
1002 [Ww]) 1007 [Ww])
1003 echo "Enabling Windows cross-compiling (32-bit)" 1008 echo "Enabling Windows cross-compiling (32-bit)"
1004 win32crosscompile="yes" 1009 win32crosscompile="yes"
@@ -4660,14 +4665,11 @@ ${use_logf_serial}
4660/* Define this to record a chart with timings for the stages of boot */ 4665/* Define this to record a chart with timings for the stages of boot */
4661${use_bootchart} 4666${use_bootchart}
4662 4667
4663/* optional define for a backlight modded Ondio */
4664${have_backlight}
4665
4666/* optional define for FM radio mod for iAudio M5 */ 4668/* optional define for FM radio mod for iAudio M5 */
4667${have_fmradio_in} 4669${have_fmradio_in}
4668 4670
4669/* optional define for ATA poweroff on Player */ 4671/* optional define for USB Serial */
4670${have_ata_poweroff} 4672${use_usb_serial}
4671 4673
4672/* optional defines for RTC mod for h1x0 */ 4674/* optional defines for RTC mod for h1x0 */
4673${config_rtc} 4675${config_rtc}