On 05/22/2012 10:41 AM, chrbruno wrote:
Thanks for your reply,

in fact, I use the virtual/kernel as a target
I don't know what name to provide for "YourModule"
The module I work on is driver/media/video/em28xx but "em28xx" is not
recognized as a target by bitbake

when I run a bitbake -c clean virtual/kernel, it removes all the kernel
and module sources (the source code I want to modify)

I think I will dig into the OE documentation !
or another approach would be to get the .config/patches from angstrom
tree, and compile a pure kernel using the classical "linux" method

Best Regards,
Chris


Le 22/05/2012 18:10, Don deJuan a écrit :
On 05/22/2012 06:08 AM, Gyorgy Kovesdi wrote:
On 2012 May 22 12:56:49 chrbruno wrote:
Hello (I'm new to angstrom),
I'm working on a kernel module on Beagleboard / Angstrom but I can't
find a way to modify and recompile it
I had similar problem: if you compile something like this:
$> bitbake your-module
then executing
$> bitbake your-module -c clean
theoretically would be enough for recompile it next time. But i found
this is not enough in
some cases (e.g. for kernel modules), i don't know why.
Try to clean the state cache this way:
$> rm build/sstate-cache/*your-module*
Hope this helps

K. Gy.


_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


I could be wrong here but I believe if you use
bitbake -c cleansstate YourModule
Is the better way to clean the package. I was having issues just using
clean and no long do when I do the cleansstate.

HTH

_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

When you are done modifying your code could you not just run
bitbake -f -c compile virtual/kernel ?
I have not messed with kernel modules other than changing the config. By doing the -f -c compile , if I am correct should only force a compile of virtual/kernel again leaving the modifications in place. Hopefully a bitbake/OE master will chime in the actual proper commands to do exactly what you wish.
HTH

_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to