# Rebuilding patched kernel

**URL:** https://forum.legato.io/t/rebuilding-patched-kernel/2878
**Category:** Uncategorized
**Created:** [December 17, 2017, 9:40pm UTC](https://forum.legato.io/t/rebuilding-patched-kernel/2878 "2017-12-17T21:40:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![outbackdingo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/outbackdingo/32/293_2.png) [@outbackdingo](https://forum.legato.io/u/outbackdingo)
#### Post date: [December 17, 2017, 9:40pm UTC](https://forum.legato.io/t/rebuilding-patched-kernel/2878/1 "2017-12-17T21:40:34Z")

</div>

Ive gotten the Legato-Dist-Source-mdm9x15-SWI9X15Y\_07.12.09.00.tar.bz2 and extracted it…

trying to remember this properly, I need to patch the kernel and run make menuconfig

so i would patch the sources in yocto/kernel

and run  
cd …/build\_bin/  
bitbake linux-yocto -c kernel\_configme -f

bitbake linux-yocto -c menuconfig

which brings up the terminal with the ncurses menuconfig

however i dont see the options added from the patched kernel that i need…

refresh my memory… what did i miss?

---

<div class="post-metadata">

### Author: ![JordanZhao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jordanzhao/32/789_2.png) [@JordanZhao](https://forum.legato.io/u/JordanZhao)
#### Post date: [December 18, 2017, 8:42am UTC](https://forum.legato.io/t/rebuilding-patched-kernel/2878/2 "2017-12-18T08:42:25Z")

</div>

Can you be more specific about what you have done on kernel source code?  
Did you add any bbappend file?  
You may refer to [Yocto Project Linux Kernel Development Manual](http://www.yoctoproject.org/docs/1.7.2/kernel-dev/kernel-dev.html) website for how to add patches.

---

<div class="post-metadata">

### Author: ![outbackdingo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/outbackdingo/32/293_2.png) [@outbackdingo](https://forum.legato.io/u/outbackdingo)
#### Post date: [December 18, 2017, 11:34am UTC](https://forum.legato.io/t/rebuilding-patched-kernel/2878/3 "2017-12-18T11:34:12Z")

</div>

right, just applying two patches and updating the kernel config variables and recompile. Yupp the doc will help refresh my memory on custom kernel patches, i think the mistake was applying the patches in yocto/kernel and not in the proper location of the build tree. ill work to bitbake config the patches to be added

---

<div class="post-metadata">

### Author: ![outbackdingo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/outbackdingo/32/293_2.png) [@outbackdingo](https://forum.legato.io/u/outbackdingo)
#### Post date: [December 18, 2017, 11:58am UTC](https://forum.legato.io/t/rebuilding-patched-kernel/2878/4 "2017-12-18T11:58:19Z")

</div>

more specifically… right now the mangOH\_green is running

Linux swi-mdm9x15 3.14.29ltsi-961ca71325\_ab5094eade #2 PREEMPT Thu Apr 27 02:17:10 PDT 2017 armv7l GNU/Linux

so im simply trying to locate the sources, add 2 patches and some configuration variables to the kernel .config and rebuild the flashable image… basically duplicating the sierra image for a green\_wp85  
with my patches applied. so maybe i should be asking how to do this, and get the proper input.

Ive worked with yocto before and know it well…
