title: kernel customisation using menuconfig with Yocto
body: <p>Hope you all are doing well</p>
  <p>I'm working with the Yocto project having <strong>dunfell</strong> branch
  As a hardware perspective, I'm using STM32MP1dk1 board with <strong>meta-st-stm32mp</strong> layers</p>
  <p>My ultimate goal is to generate the custom image via enabling some drivers using menuconfig
  Now, <strong>the problem is, after menuconfig it's successfully generating the image but unfortunately, in custom image I'm unable to find the loadable kernel modules!</strong></p>
  <p>This is what I'm doing</p>
  <ol>
  <li>Manually set the required drivers by using menuconfig GUI tool</li>
  </ol>
  <pre><code>  bitbake -c menuconfig virtual/kernel
  </code></pre>
  <p>2.Generate the default configuration</p>
  <pre><code>bitbake -c savedefconfig virtual/kernel
  </code></pre>
  <ul>
  <li>also verified the drivers, which I have set in to the menuconfiig</li>
  <li>drivers exist in defconfig</li>
  </ul>
  <ol start="3">
  <li>copy defconfig in to the custom-layer</li>
  </ol>
  <pre><code>  /meta-customer/recipes-kernel/linux/files/
  </code></pre>
  <ol start="4">
  <li>Updated linux-stm32mp_%.bbappend asper the default configuration</li>
  </ol>
  <pre><code>FILESEXTRAPATHS_prepend := &quot;${THISDIR}:${THISDIR}/files:&quot;
  
  SRC_URI += &quot;\
                 file://0001-stm32mp157a-dk1-i2c-add-dts.patch \
                 file://0002-stm32mp157a-dk1-add-ltdc-dts.patch\
                 file://defconfig\
  &quot;
  # Applying the default configuration
  
  
  KERNEL_DEFCONFIG_stm32mp1 = &quot;defconfig&quot;
  
  </code></pre>
  <ol start="5">
  <li>Updated locakl.conf to load the module automatically during the boot</li>
  </ol>
  <pre><code>
  # Adding kernel modules for the USB WiFi drivers
  
  IMAGE_INSTALL += &quot;kernel-module-r8188eu \
                    linux-firmware-rtl8188 \
                    dhcp-client \
                    iw \
                    wpa-supplicant \
                    wireless-regdb-static&quot;
  
  # Autoload WiFi driver on boot
  KERNEL_MODULE_AUTOLOAD += &quot;r8188eu&quot;
  
  
  </code></pre>
  <ol start="6">
  <li>Then i done bake the image</li>
  </ol>
  <pre><code>bitbake core-image-minimal
  </code></pre>
  <p>Problem statement :</p>
  <ol>
  <li><p>During the building of the image, I can find the logs to build the modules, which I'd set erlear !</p>
  </li>
  <li><p>core-image-minimal.menifest seems not updated, as i verified using grep &quot;modules which i set&quot;</p>
  </li>
  <li><p>After flashing the image on sd card &amp; booting on ab board /lib directory missing all loadable modules!</p>
  </li>
  <li><p>Even, wpa-supplicant is not working, which i have installed with image</p>
  </li>
  </ol>
  <p>Guys, can you advice what's baking wrong here!
  All comments &amp; suggestions welcome</p>
  <p>Thanks,
  Mahendra Sondagar</p>