Skip to content

Clean up CONFIG_SYS_{CBSIZE, PBSIZE, MAXARGS, BARGSIZE} definitions

Tom Rini u-boot 1 version New

Get series with b4
b4 am 20170825011219.GH2827@bill-the-cat

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8include/config_fallbacks.h: add default for CONFIG_SYS_CBSIZE+0 -00 replies
1/8include/config_fallbacks.h: add default for CONFIG_SYS_CBSIZE+0 -00 replies
2/8include/configs: remove CONFIG_SYS_CBSIZE when the default value is used+0 -00 replies
2/8include/configs: remove CONFIG_SYS_CBSIZE when the default value is used+0 -00 replies
3/8include/config_fallbacks.h: change fallback for CONFIG_SYS_PBSIZE+0 -00 replies
3/8include/config_fallbacks.h: change fallback for CONFIG_SYS_PBSIZE+0 -00 replies
4/8include/configs: drop default definitions of CONFIG_SYS_PBSIZE+0 -00 replies
4/8include/configs: drop default definitions of CONFIG_SYS_PBSIZE+0 -00 replies
5/8include/config_fallbacks.h: add default for CONFIG_SYS_MAXARGS+0 -00 replies
5/8include/config_fallbacks.h: add default for CONFIG_SYS_MAXARGS+0 -00 replies
6/8include/configs: drop default definitions of CONFIG_SYS_MAXARGS+0 -00 replies
6/8include/configs: drop default definitions of CONFIG_SYS_MAXARGS+0 -00 replies
7/8include/configs: remove default values of CONFIG_SYS_BARGSIZE+0 -00 replies
7/8include/configs: remove default values of CONFIG_SYS_BARGSIZE+0 -00 replies
8/8include/configs: remove numerous CONFIG_SYS_BARGSIZE definitions+0 -00 replies
8/8include/configs: remove numerous CONFIG_SYS_BARGSIZE definitions+0 -00 replies

Reviews trailers per patch

All 16 patches have a Reviewed-by or Acked-by.

PatchTom Rini
1/8R-b
1/8R-b
2/8R-b
2/8R-b
3/8R-b
3/8R-b
4/8R-b
4/8R-b
5/8R-b
5/8R-b
6/8R-b
6/8R-b
7/8R-b
7/8R-b
8/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/8] Clean up CONFIG_SYS_{CBSIZE, PBSIZE, MAXARGS, BARGSIZE} definitions
Quoted 28 lines · Thomas Petazzoni

Hello,

Quoted 7 lines · Wolfgang Denk
Quoted 4 lines

In this patch series, I propose to have U-Boot define some sane defaults for those 4 configuration options, and cleanup all the board configuration files that were using the default values. This leads to the removal of 1300+ lines.

Would it not be even easier (and less code) to move these definitions to Kconfig settings?

I believe this patch series is a step in that direction. With this patch series applied, we can now clearly identify which boards have custom values for CONFIG_SYS_{CBSIZE, PBSIZE, MAXARGS, BARGSIZE}, and therefore more easily move these from the .h files to defconfig files.

Unless of course we decide that having such custom values
in .h/defconfig is useless, and we want to drop them entirely. As I said in my cover letter, I really don't see why a board configuration file (be it a .h or a defconfig) should specify the maximum number of command arguments or the maximum size of the Linux kernel command line. The choice for such values is totally independent from the HW, but rather tied to the specific use of a given board. For the same board, most people will find the default value to be OK, some people will need a larger number of command arguments or a bigger Linux kernel command line.

Quoted 1 line

Let me know what your preference is.

Thanks for doing this. What I think we should do is migrate these to Kconfig with the fallback values as the 'vanilla' default and use moveconfig.py -I min2 to see if there's other cases where it's a SoC thing or similar where other non-default small values were used in order to reduce the overall footprint.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170824/485d1a9c/attachment.sig>