1) Cryptodev-linux being a linux kernel module require a build target for
   module_install and not for install.
2) Some cross-compiler target need installation of module to different directory
than host's module directory path. PREFIX allow to override default module 
installation path.

Signed-off-by: Yashpal Dutta <yashpal.du...@freescale.com>
---
Hi,

The patch is based on cryptodev-linux-1.5 tag and is tested with openembedded 
based recipe.

Regards
Yashpal

 Makefile |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
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
-- 
1.7.0.4



_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel

Reply via email to