Re: [PATCH] ARM: multi_v7_defconfig: make USB_DWC3 as a module instead of built-in

From: Roger Quadros
Date: Tue Apr 04 2023 - 11:09:17 EST




On 04/04/2023 16:08, Arnd Bergmann wrote:
> On Tue, Apr 4, 2023, at 14:59, Roger Quadros wrote:
>> On 04/04/2023 15:14, Arnd Bergmann wrote:
>>> On Tue, Apr 4, 2023, at 13:46, Roger Quadros wrote:
>>> That seems really high, so I had a look at what's going on.
>>
>> It was based on the configuration we are using at TI.
>>
>> (as built-in)
>>
>> $ size vmlinux
>> text data bss dec hex filename
>> 14616949 5285870 491776 20394595 1373263 vmlinux
>> $ ls -l vmlinux
>> -rwxrwxr-x 1 roger roger 120866544 Apr 4 15:54 vmlinux
>>
>> (as module)
>>
>> $ size vmlinux
>> text data bss dec hex filename
>> 14550571 5258106 491776 20300453 135c2a5 vmlinux
>> $ ls -l vmlinux
>> -rwxrwxr-x 1 roger roger 120324528 Apr 4 15:52 vmlinux
>>
>>
>> $ diff built-in-config module-config
>> 5547c5547
>> < CONFIG_USB_XHCI_PLATFORM=y
>> ---
>>> CONFIG_USB_XHCI_PLATFORM=m
>> 5614c5614
>> < CONFIG_USB_DWC3=y
>> ---
>>> CONFIG_USB_DWC3=m
>
> Ok, so the size difference here is only 94KB, presumably
> because have the non-TI variants as well as debugfs and/or
> gadget mode disabled. For the file size, my guess is that
> you have CONFIG_DEBUG_INFO enabled in your config, which

That's right.

> drastically increases the size of the vmlinux file, but
> not the in-memory size, or the size of the stripped and
> compressed zImage.

Image file diff is ~128K.
Image.gz diff is ~33K.

--
cheers,
-roger