[PATCH 1/3] kernel: Add a new config option to remove command line parsing

2015-04-01 Thread Iulia Manda
This patch introduces CONFIG_CMDLINE_PARSE option which conditionally compiles the support for parsing kernel command line arguments. The corresponding functions that actually do the parsing will be compiled out. This is used when no parameters will be specified neither at compile time nor at

[PATCH 3/3] init: Set initcall_debug to a default value

2015-04-01 Thread Iulia Manda
Test the previously implemented macros on initcall_debug parameter, after setting CONFIG_CMDLINE_PARSE to 'n'. This change is a first example for how knowing the values of kernel parameters at build time can allow GCC constant folding and result in an actually relevant decrease in size. Other

[PATCH 2/3] linux: Add macros that define and declare a core_param variable

2015-04-01 Thread Iulia Manda
This patch introduces two macros for kernel command line arguments subsequently defined as core parameters: * DECLARE_CORE_PARAM - declares an extern variable in case CMDLINE_PARSE is set. In the other case it will make the variable a static constant asigned with a default value to enable constant