[meta-freescale] [PATCH 7/9] cryptodev kernel module recipe

Otavio Salvador otavio at ossystems.com.br
Thu Dec 6 06:23:32 PST 2012


On Thu, Dec 6, 2012 at 12:10 PM, <b28495 at freescale.com> wrote:

> From: Yashpal Dutta <yashpal.dutta at freescale.com>
>
> This is a /dev/crypto device driver, equivalent to those in OpenBSD or
> FreeBSD.
> The main idea is to access of existing ciphers in kernel space from
> userspace,
> thus enabling re-use of a hardware implementation of a cipher.
>
> Signed-off-by: Yashpal Dutta <yashpal.dutta at freescale.com>
> Signed-off-by: Zhenhua Luo <b19537 at freescale.com>
>

...

+index 2be8825..b36d68c 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -1,6 +1,7 @@
> + KBUILD_CFLAGS += -I$(src)
> + KERNEL_DIR = /lib/modules/$(shell uname -r)/build
> + VERSION = 1.5
> ++PREFIX =
> +
> + cryptodev-objs = ioctl.o main.o cryptlib.o authenc.o zc.o util.o
> +
> +@@ -12,10 +13,10 @@ build: version.h
> + version.h: Makefile
> +       @echo "#define VERSION \"$(VERSION)\"" > version.h
> +
> +-install:
> ++modules_install:
> +       make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install
> +-      @echo "Installing cryptodev.h in /usr/include/crypto ..."
> +-      @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h
> ++      @echo "Installing cryptodev.h in $(PREFIX)/usr/include/crypto ..."
> ++      @install -D crypto/cryptodev.h
> $(PREFIX)/usr/include/crypto/cryptodev.h
> +
> + clean:
> +       make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean
>

You mixed PREFIX and DESTDIR meaning.

The PREFIX should be passed by make, defaulting to ${prefix} and DESTDIR to
${D}.

So install would be:

install -D crypto/cryptodev.h $(DESTDIR)$(PREFIX)/include/crypto/cryptodev.h

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio at ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20121206/f1166e0b/attachment.html>


More information about the meta-freescale mailing list