From 9c95cca95ac4a091b20034014a4ca4fff5a2c01c Mon Sep 17 00:00:00 2001 From: Yashpal Dutta Date: Wed, 28 Nov 2012 16:24:51 +0545 Subject: [PATCH] Updated the install target for cryptodev module 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 Signed-off-by: Nikos Mavrogiannopoulos --- Makefile | 7 ++++--- 1 file 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 -- 2.11.4.GIT