<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14064</bug_id>
          
          <creation_ts>2020-09-28 06:50:28 +0000</creation_ts>
          <short_desc>Modify kernel.bbclass to allow for easy in-kernel-tree defconfig use</short_desc>
          <delta_ts>2020-09-28 08:31:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>8191</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eduardas Meile">eduardas</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88248</commentid>
    <comment_count>0</comment_count>
    <who name="Eduardas Meile">eduardas</who>
    <bug_when>2020-09-28 06:50:28 +0000</bug_when>
    <thetext>In practice I have found that it would be very convenient to just specify the in-tree defconfig name in the kernel bitbake recipe instead of copying it from kernel source into own layer metadata manually every time it needs to change. Something like this is implemented in Phytec&apos;s custom kconfig class here:

https://git.phytec.de/meta-phytec/tree/classes/kconfig.bbclass?h=dunfell

The variable is INTREE_DEFCONFIG

Also something similar is supposed to work with the kernel-yocto class and KBUILD_DEFCONFIG variable, though I have not been able to make it work properly for my mainline Linux 5.8.5 fork. Anyway, I don&apos;t think such a feature should
be exclusive to kernel-yocto or linux-yocto, but should be available using plain kernel.bbclass</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88249</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2020-09-28 08:31:24 +0000</bug_when>
    <thetext>This isn&apos;t something we can or want to standardize in kernel.bbclass.

There are literally hundreds of users, and use cases for the core kernel.bbclass.

We can&apos;t keep them all happy, so we need to keep things minimal there.

Note: there is an outstanding feature to move the fragment support into a core location and make it optional, at that point, this will be addressed.

Closing this as &quot;won&apos;t implmenent&quot;, since we already have something in bugzilla.

As for KBUILD_DEFCONFIG, it works here on all kernel versions, so you should open a specific bug with reproducing the issue you are seeing.

*** This bug has been marked as a duplicate of bug 8191 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>