[OE-core] [PATCH] kernel: do verbose builds

Ross Burton ross.burton at intel.com
Mon Sep 16 20:27:24 UTC 2019


On 16/09/2019 14:18, Bruce Ashfield wrote:
> On Mon, Sep 16, 2019 at 8:41 AM Ross Burton <ross.burton at intel.com> wrote:
>>
>> Pass V=1 to kernel builds so that the compile log is more useful if it all goes
>> wrong.
>>
>> Signed-off-by: Ross Burton <ross.burton at intel.com>
>> ---
>>   meta/classes/kernel.bbclass | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index ebcb79a5286..9d2e1e476d4 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -324,7 +324,7 @@ kernel_do_compile() {
>>          fi
>>          cc_extra=$(get_cc_option)
>>          for typeformake in ${KERNEL_IMAGETYPE_FOR_MAKE} ; do
>> -               oe_runmake ${typeformake} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} $use_alternate_initrd
>> +               oe_runmake ${typeformake} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} V=1 $use_alternate_initrd
> 
> Personally, I wouldn't want this on all the time. Most of what V=1
> provides, I never use for debugging and it just clutters the logs.
> 
> Can't this be triggered off a packageconfig-like setting for those
> that want it ?

If you object then I guess it's easy enough to add it to 
KERNEL_EXTRA_ARGS or something when required.  I only did this because I 
was chasing that build paths thing and needed the full build log, and 
typically we enable the full build log so it's there if required.

Ross


More information about the Openembedded-core mailing list