Commit ab9e12f651d9211aa0d3c9b9e579c38bd8704054

Authored by Alex Kiernan
Committed by Tom Rini
1 parent e21c03be6d

spl: disk: usb: Add dependencies to sprintf/strto*

If SPL serial support is disabled nothing brings in sprintf, snprintf
or simple_strtoul:

  env/built-in.o: In function `regex_callback':
  env/attr.c:128: undefined reference to `sprintf'
  disk/built-in.o: In function `blk_get_device_by_str':
  disk/part.c:386: undefined reference to `simple_strtoul'
  disk/part.c:395: undefined reference to `simple_strtoul'
  disk/built-in.o: In function `blk_get_device_part_str':
  disk/part.c:522: undefined reference to `simple_strtoul'
  disk/built-in.o: In function `part_set_generic_name':
  disk/part.c:704: undefined reference to `sprintf'
  drivers/built-in.o: In function `init_peripheral_ep':
  drivers/usb/musb-new/musb_gadget.c:1826: undefined reference to `sprintf'
  drivers/built-in.o: In function `musb_core_init':
  drivers/usb/musb-new/musb_core.c:1451: undefined reference to `snprintf'

Add those dependencies here.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>

Showing 2 changed files with 8 additions and 0 deletions Side-by-side Diff

... ... @@ -4,6 +4,10 @@
4 4 config PARTITIONS
5 5 bool "Enable Partition Labels (disklabels) support"
6 6 default y
  7 + select SPL_SPRINTF if SPL
  8 + select TPL_SPRINTF if TPL
  9 + select SPL_STRTO if SPL
  10 + select TPL_STRTO if TPL
7 11 help
8 12 Partition Labels (disklabels) Supported:
9 13 Zero or more of the following:
drivers/usb/musb-new/Kconfig
... ... @@ -5,12 +5,16 @@
5 5  
6 6 config USB_MUSB_HOST
7 7 bool "MUSB host mode support"
  8 + select SPL_SPRINTF if SPL
  9 + select TPL_SPRINTF if TPL
8 10 help
9 11 Enables the MUSB USB dual-role controller in host mode.
10 12  
11 13 config USB_MUSB_GADGET
12 14 bool "MUSB gadget mode support"
13 15 select USB_GADGET_DUALSPEED
  16 + select SPL_SPRINTF if SPL
  17 + select TPL_SPRINTF if TPL
14 18 help
15 19 Enables the MUSB USB dual-role controller in gadget mode.
16 20