UPSTREAM: 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. Change-Id: I3512dc53bc93a556aee250d98d1a5977d9e2a537 Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit ab9e12f651d9211aa0d3c9b9e579c38bd8704054)
This commit is contained in:
parent
088d8eb9be
commit
310695f3d2
|
|
@ -4,6 +4,10 @@ menu "Partition Types"
|
||||||
config PARTITIONS
|
config PARTITIONS
|
||||||
bool "Enable Partition Labels (disklabels) support"
|
bool "Enable Partition Labels (disklabels) support"
|
||||||
default y
|
default y
|
||||||
|
select SPL_SPRINTF if SPL
|
||||||
|
select TPL_SPRINTF if TPL
|
||||||
|
select SPL_STRTO if SPL
|
||||||
|
select TPL_STRTO if TPL
|
||||||
help
|
help
|
||||||
Partition Labels (disklabels) Supported:
|
Partition Labels (disklabels) Supported:
|
||||||
Zero or more of the following:
|
Zero or more of the following:
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,16 @@ comment "MUSB Controller Driver"
|
||||||
|
|
||||||
config USB_MUSB_HOST
|
config USB_MUSB_HOST
|
||||||
bool "MUSB host mode support"
|
bool "MUSB host mode support"
|
||||||
|
select SPL_SPRINTF if SPL
|
||||||
|
select TPL_SPRINTF if TPL
|
||||||
help
|
help
|
||||||
Enables the MUSB USB dual-role controller in host mode.
|
Enables the MUSB USB dual-role controller in host mode.
|
||||||
|
|
||||||
config USB_MUSB_GADGET
|
config USB_MUSB_GADGET
|
||||||
bool "MUSB gadget mode support"
|
bool "MUSB gadget mode support"
|
||||||
select USB_GADGET_DUALSPEED
|
select USB_GADGET_DUALSPEED
|
||||||
|
select SPL_SPRINTF if SPL
|
||||||
|
select TPL_SPRINTF if TPL
|
||||||
help
|
help
|
||||||
Enables the MUSB USB dual-role controller in gadget mode.
|
Enables the MUSB USB dual-role controller in gadget mode.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue