<br><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 30, 2012 at 2:50 PM, McClintock Matthew-B29882 <span dir="ltr">&lt;<a href="mailto:B29882@freescale.com" target="_blank">B29882@freescale.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>On Thu, Oct 18, 2012 at 8:33 AM, Bruce Ashfield<br>

&lt;<a href="mailto:bruce.ashfield@gmail.com" target="_blank">bruce.ashfield@gmail.com</a>&gt; wrote:<br>
&gt; On Thu, Oct 18, 2012 at 5:57 AM, Yashpal Dutta<br>
&gt; &lt;<a href="mailto:yashpal.dutta@freescale.com" target="_blank">yashpal.dutta@freescale.com</a>&gt; wrote:<br>
&gt;&gt; This is a /dev/crypto device driver, equivalent to those in OpenBSD or FreeBSD.<br>
&gt;&gt; The main idea is to access of existing ciphers in kernel space from userspace,<br>
&gt;&gt; thus enabling re-use of a hardware implementation of a cipher.<br>
&gt;<br>
&gt; I always use OCF for an overlapping set of functionality. To make this external<br>
&gt; module gracefully deal with a situation such as this, maybe a check for OCF<br>
&gt; in the kernel config ?<br>
&gt;<br>
&gt; The same thing could be said about having a kernel with this functionality<br>
&gt; already integrated (I have several of those as well).<br>
&gt;<br>
&gt; That&#39;s a more general question about what&#39;s the best way to gracefully deal<br>
&gt; with out of tree modules detecting that they are being built against a kernel<br>
&gt; that already has the functionality merged. The easy answer is that<br>
&gt; it&#39;s something<br>
&gt; the distro maintainer needs to know, and manage, and maybe that&#39;s the<br>
&gt; final answer. But I&#39;m more wondering about this with respect to<br>
&gt; inter-operability<br>
&gt; of layers, if something in a layer depends/rdepends on this module, it will be<br>
&gt; pulled in, and won&#39;t that limit the mix/match/stacking of the various layers ?<br>
&gt;<br>
&gt; I added Richard for comment on the above.<br>
&gt;<br>
&gt; But that of course raises the question, why should this be in oe-core versus<br>
&gt; something like OCF ? This is definitely simpler, but OCF has it&#39;s use cases and<br>
&gt; advantages as well, that are an overlapping set of functionality.<br>
&gt;<br>
&gt; I don&#39;t have all the answers, just plenty of questions :)<br>
<br>
</div></div>I&#39;m not overly familiar with OCF. Does this just RCONFLICT with ocf-linux?<br></blockquote><div><br></div><div>I missed this yesterday, sorry about that. gmail just left this in the thread and</div><div>not in my inbox .. but anyway.</div>

<div><br></div><div>I only see parts ocf in oe-core, but maybe I&#39;m just not understanding what the</div><div>recipe is doing (are you seeing more) ? i.e. ocf-linux is buried under the </div><div>open-ssl recipe, and really looks to be just providing headers. </div>

<div><br></div><div>I&#39;m doing some builds now to learn more .. which I just did .. and from what I <br></div><div>can see, it is just the headers, which isn&#39;t all that useful without the kernel</div><div>underpinning. </div>
<div><br></div><div><div>OCF does definitely accelerate openssl when properly used in both the kernel and</div><div>userspace, but I&#39;m not seeing the full offload kernel framework anywhere.</div></div><div><br></div><div>
I wonder if anyone actually uses it :)</div>
<div><br></div><div>But yes AFAIC, if you had a full OCF, you need these to conflict, since they&#39;ll both </div><div>try and enable/provide cryptodev.</div><div><br></div><div>Bruce</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<span><font color="#888888"><br>
-M<br>
</font></span><div><div><br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Bruce<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Signed-off-by: Yashpal Dutta &lt;<a href="mailto:yashpal.dutta@freescale.com" target="_blank">yashpal.dutta@freescale.com</a>&gt;<br>
&gt;&gt; ---<br>
&gt;&gt;  meta/recipes-kernel/cryptodev/<a href="http://cryptodev_1.5.bb" target="_blank">cryptodev_1.5.bb</a>     |   18 +++++++++++++<br>
&gt;&gt;  .../cryptodev/files/makefile_fixup.patch           |   26 ++++++++++++++++++++<br>
&gt;&gt;  2 files changed, 44 insertions(+), 0 deletions(-)<br>
&gt;&gt;  create mode 100644 meta/recipes-kernel/cryptodev/<a href="http://cryptodev_1.5.bb" target="_blank">cryptodev_1.5.bb</a><br>
&gt;&gt;  create mode 100644 meta/recipes-kernel/cryptodev/files/makefile_fixup.patch<br>
&gt;&gt;<br>
&gt;&gt; diff --git a/meta/recipes-kernel/cryptodev/<a href="http://cryptodev_1.5.bb" target="_blank">cryptodev_1.5.bb</a> b/meta/recipes-kernel/cryptodev/<a href="http://cryptodev_1.5.bb" target="_blank">cryptodev_1.5.bb</a><br>


&gt;&gt; new file mode 100644<br>
&gt;&gt; index 0000000..5125710<br>
&gt;&gt; --- /dev/null<br>
&gt;&gt; +++ b/meta/recipes-kernel/cryptodev/<a href="http://cryptodev_1.5.bb" target="_blank">cryptodev_1.5.bb</a><br>
&gt;&gt; @@ -0,0 +1,18 @@<br>
&gt;&gt; +SECTION = &quot;devel&quot;<br>
&gt;&gt; +SUMMARY = &quot;Linux Cryptodev KERNEL MODULE&quot;<br>
&gt;&gt; +DESCRIPTION = &quot;The Cryptodev package contains the kernel /dev/crypto module&quot;<br>
&gt;&gt; +LICENSE = &quot;GPLv2&quot;<br>
&gt;&gt; +LIC_FILES_CHKSUM = &quot;file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263&quot;<br>
&gt;&gt; +<br>
&gt;&gt; +DEPENDS = &quot;virtual/kernel&quot;<br>
&gt;&gt; +<br>
&gt;&gt; +inherit module<br>
&gt;&gt; +<br>
&gt;&gt; +SRCREV = &quot;1c24a0aa996630518d47826a2e3fea129ea094c7&quot;<br>
&gt;&gt; +<br>
&gt;&gt; +SRC_URI = &quot;git://<a href="http://repo.or.cz/cryptodev-linux.git;protocol=git" target="_blank">repo.or.cz/cryptodev-linux.git;protocol=git</a> \<br>
&gt;&gt; +         file://makefile_fixup.patch&quot;<br>
&gt;&gt; +<br>
&gt;&gt; +EXTRA_OEMAKE=&#39;KERNEL_DIR=&quot;${STAGING_KERNEL_DIR}&quot; PREFIX=&quot;${D}&quot;&#39;<br>
&gt;&gt; +<br>
&gt;&gt; +S = &quot;${WORKDIR}/git&quot;<br>
&gt;&gt; diff --git a/meta/recipes-kernel/cryptodev/files/makefile_fixup.patch b/meta/recipes-kernel/cryptodev/files/makefile_fixup.patch<br>
&gt;&gt; new file mode 100644<br>
&gt;&gt; index 0000000..323aacd<br>
&gt;&gt; --- /dev/null<br>
&gt;&gt; +++ b/meta/recipes-kernel/cryptodev/files/makefile_fixup.patch<br>
&gt;&gt; @@ -0,0 +1,26 @@<br>
&gt;&gt; +diff --git a/Makefile b/Makefile<br>
&gt;&gt; +index 2be8825..b36d68c 100644<br>
&gt;&gt; +--- a/Makefile<br>
&gt;&gt; ++++ b/Makefile<br>
&gt;&gt; +@@ -1,6 +1,7 @@<br>
&gt;&gt; + KBUILD_CFLAGS += -I$(src)<br>
&gt;&gt; + KERNEL_DIR = /lib/modules/$(shell uname -r)/build<br>
&gt;&gt; + VERSION = 1.5<br>
&gt;&gt; ++PREFIX =<br>
&gt;&gt; +<br>
&gt;&gt; + cryptodev-objs = ioctl.o main.o cryptlib.o authenc.o zc.o util.o<br>
&gt;&gt; +<br>
&gt;&gt; +@@ -12,10 +13,10 @@ build: version.h<br>
&gt;&gt; + version.h: Makefile<br>
&gt;&gt; +       @echo &quot;#define VERSION \&quot;$(VERSION)\&quot;&quot; &gt; version.h<br>
&gt;&gt; +<br>
&gt;&gt; +-install:<br>
&gt;&gt; ++modules_install:<br>
&gt;&gt; +       make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install<br>
&gt;&gt; +-      @echo &quot;Installing cryptodev.h in /usr/include/crypto ...&quot;<br>
&gt;&gt; +-      @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h<br>
&gt;&gt; ++      @echo &quot;Installing cryptodev.h in $(PREFIX)/usr/include/crypto ...&quot;<br>
&gt;&gt; ++      @install -D crypto/cryptodev.h $(PREFIX)/usr/include/crypto/cryptodev.h<br>
&gt;&gt; +<br>
&gt;&gt; + clean:<br>
&gt;&gt; +       make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean<br>
&gt;&gt; --<br>
&gt;&gt; 1.7.0.4<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Openembedded-core mailing list<br>
&gt;&gt; <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
&gt;&gt; <a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core" target="_blank">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; &quot;Thou shalt not follow the NULL pointer, for chaos and madness await<br>
&gt; thee at its end&quot;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core" target="_blank">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>&quot;Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end&quot;<br>
</div>