Using openembedded with externally built kernel
I have a platform with a very barebones BSP that builds and patches a 2.6 kernel using a whole lot of shell scripts and patch files. Integrating this build process into a .bb file is too complicated at the moment.
Since cross compiling all packages I need is a nightmare to do manually, I wonder if I can get OE to use the prebuilt kernel along with its kernel modules and headers instead of trying to build a new kernel. Ideally, I would just tell it where the kernel headers are, where the uImage is, and where the modules are. I imagine this as some kind of kernel .bb file setting things up to not actually build anything.
My question is: is this possible? All I could find was about external toolchains and external kernel modules.
Carlos
On Wed, Mar 12, 2014 at 10:48 AM, Carlos Rafael Giani <[email protected]
Quoted 14 lines
wrote:
I have a platform with a very barebones BSP that builds and patches a 2.6 kernel using a whole lot of shell scripts and patch files. Integrating this build process into a .bb file is too complicated at the moment.
Since cross compiling all packages I need is a nightmare to do manually, I wonder if I can get OE to use the prebuilt kernel along with its kernel modules and headers instead of trying to build a new kernel. Ideally, I would just tell it where the kernel headers are, where the uImage is, and where the modules are. I imagine this as some kind of kernel .bb file setting things up to not actually build anything.
Quoted 3 lines
My question is: is this possible? All I could find was about external toolchains and external kernel modules.
I believe that you have to wright your own recipe with custom do_compile, do_install etc functions.
Abraços,
--
*dS
Diego Sueiro
Administrador do Embarcados www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>
/*long live rock 'n roll*/
Quoted 15 lines · Diego Sueiro
On Wed, Mar 12, 2014 at 10:48 AM, Carlos Rafael Giani <[email protected]
Quoted 14 lines
wrote:
I have a platform with a very barebones BSP that builds and patches a 2.6 kernel using a whole lot of shell scripts and patch files. Integrating this build process into a .bb file is too complicated at the moment.
Since cross compiling all packages I need is a nightmare to do manually, I wonder if I can get OE to use the prebuilt kernel along with its kernel modules and headers instead of trying to build a new kernel. Ideally, I would just tell it where the kernel headers are, where the uImage is, and where the modules are. I imagine this as some kind of kernel .bb file setting things up to not actually build anything.
Quoted 6 lines
Quoted 3 lines
My question is: is this possible? All I could find was about external toolchains and external kernel modules.
I believe that you have to wright your own recipe with custom
do_compile,do_installetc functions.
Write a recipe that "installs" the pre-built kernel and a tarball of modules and commit the binary kernel and modules into the bsp layer. Yeah, this is hacky, but does give you some repeatibility.
Philip
Quoted 14 lines
Abraços,
--
*dS
Diego SueiroAdministrador do Embarcados www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>
/*long live rock 'n roll*/