[Buildroot] Interesting circular dependency, how to solve?

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Jul 6 18:20:05 UTC 2016


Hello,

On Wed, 6 Jul 2016 17:54:01 +0000, ANDY KENNEDY wrote:

> >  - When cryptodev-linux is enabled, OpenSSL will depend on it to use
> >    crypto accelerators supported in the kernel via cryptodev-linux.  
> 
> If I understand you correctly, this builds TWO things, right?
> 
> If this is the case, make it separate packages to build the
> kernel module then the userspace package.

It builds a kernel module, so it has to depend on "linux", and it
installs cryptodev.h, which OpenSSL needs. I am not sure splitting this
package into two is really a good idea, though it would indeed solve
the problem: all what OpenSSL needs at build time is the cryptodev.h
header file. The kernel module can be built separately, and is only at
runtime.

So, yes, one possibility is to break cryptodev-linux into two packages.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list