<?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>5574</bug_id>
          
          <creation_ts>2013-11-20 11:56:41 +0000</creation_ts>
          <short_desc>Add kernel configuration check mechanism</short_desc>
          <delta_ts>2026-07-09 15:50:58 +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>core</component>
          <version>1.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>   </status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>akuster</cc>
    
    <cc>dmitriy.korovkin</cc>
    
    <cc>dvhart</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>otavio</cc>
    
    <cc>paulg</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>winfried_mb2</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>38924</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-11-20 11:56:41 +0000</bug_when>
    <thetext>Some recipes build software that needs a particular version of the kernel (or newer) or particular kernel configuration options enabled; good examples are systemd and udev. It would be nice if the build system could allow the recipe to specify these requirements and then we could check and report a sensible error if they are not satisfied; currently you can omit important options from the kernel configuration and the result will be a non-booting image, often with no clear indicator as to what went wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38996</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-11-21 15:50:06 +0000</bug_when>
    <thetext>Version testing is very seriously discouraged by folks like Greg KH, encouraging people instead to be testing for particular features. Can we do this via CONFIG_* testing instead?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38997</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-11-21 15:51:06 +0000</bug_when>
    <thetext>This is especially important for things like LTSI kernels where features from future kernels can be backported and the version test would return false failures.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53960</commentid>
    <comment_count>3</comment_count>
    <who name="Winfried">winfried_mb2</who>
    <bug_when>2015-09-11 09:35:27 +0000</bug_when>
    <thetext>I think this is an important feature to have. 
I just spent two days trying to figure out why systemd didn&apos;t work properly. In the end it was a missing CONFIG_FHANDLE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56372</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-11-10 19:31:36 +0000</bug_when>
    <thetext>FWIW what Darren says above makes sense, we ought to be looking at the configuration not the version; I&apos;ve modified the title to match.

Another important place we should be checking this just occurred to me today - IMAGE_FSTYPES; it&apos;s no good building a kernel with btrfs disabled at the same time as you build an image that you&apos;re going to use as your root filesystem and formatting it as btrfs. Hopefully we should be able to add a check for that using this same mechanism (or at least part of it).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66169</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-09-14 23:50:53 +0000</bug_when>
    <thetext>Bruce was strongly against this when I proposed it as an RFC:

  https://patchwork.openembedded.org/patch/121933/

I&apos;ll re-evaluate what&apos;s been done in the recent kernel config handling changes during the 2.3 timeframe and work out how to proceed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77558</commentid>
    <comment_count>6</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-10-12 23:30:17 +0000</bug_when>
    <thetext>some input.

The use case I have is for qa tests that are in the meta-qa layer. If I add the automount test for example, it has kernel config dependences for ext2/3/4 and more. It would be nice to have a &quot;WARN&quot; at compile time if the kernel configs this test needs are not set or provide a method to set them. I am aware of KERNEL_FEATURES_append but that seems to only work with yocto-kernel-cache, it would be nice to extend this beyond the yocto kernels. ( yes a separate discussion)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106149</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-07-09 15:50:58 +0000</bug_when>
    <thetext>Dmitriy, A &apos;future&apos; enhancement that you may be interested in later this year.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>