Wednesday, March 16, 2011

Configuring/Rebuilding kernel

. ~/.oe/environment-2008

(From Koen):

The defconfig is stored in
recipes/linux/linux-omap-//defconfig

What I usually do is:

1) bitbake virtual/kernel -c configure
2) cd tmp/work/foo/bar/git ; make menuconfig

(in my case, appears to be ~/beagleboard/angstromtoolchain/setup-scripts/build/tmp-angstrom_2008_1/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r100+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git$ make menuconfig)

3) cp .config
/OE/openembedded/recipes/linux/linux-omap-//defconfig
4) bitbake bitbake virtual/kernel -c compile -f ; bitbake virtual/kernel -c
deploy
5) goto 2)

Step 3 is there to ensure that my changes don't get lost when cleaning the
recipe.


then:

$ bitbake -c compile -f virtual/kernel

Sources:

http://groups.google.com/group/beagleboard/browse_thread/thread/22e77334e3774245

http://groups.google.com/group/beagleboard/browse_thread/thread/5252f87b4fcefd41/99ee235b209fd7fc
http://groups.google.com/group/beagleboard/browse_thread/thread/5089ba5af44e7b0d

1 comment:

  1. Just out of interest, how long did "bitbake virtual/kernel" take?

    ReplyDelete