From: Aaron Conole Date: Wed, 23 Sep 2015 20:03:36 +0000 (-0400) Subject: vhost: build eventfd_link module against specified kernel X-Git-Tag: spdx-start~8476 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a17cc4f17269936e69680370ad91dc21f21fd6de;p=dpdk.git vhost: build eventfd_link module against specified kernel The vHost eventlink driver is a kernel module that requires a kernel source/build directory to build the ko. Convert the fixed kernel build directory specifier to one which may be user specified on the command-line. Signed-off-by: Aaron Conole --- diff --git a/lib/librte_vhost/eventfd_link/Makefile b/lib/librte_vhost/eventfd_link/Makefile index fc3927bf3b..3140e8bfe6 100644 --- a/lib/librte_vhost/eventfd_link/Makefile +++ b/lib/librte_vhost/eventfd_link/Makefile @@ -29,11 +29,13 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +RTE_KERNELDIR ?= /lib/modules/$(shell uname -r)/build + obj-m += eventfd_link.o all: - make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules + make -C $(RTE_KERNELDIR) M=$(PWD) modules clean: - make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean + make -C $(RTE_KERNELDIR) M=$(PWD) clean