From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 840C58E81 for ; Wed, 2 Dec 2015 04:59:25 +0100 (CET) Received: by wmww144 with SMTP id w144so198616897wmw.1 for ; Tue, 01 Dec 2015 19:59:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eoGx5zGseQedVkT8+uTgVvzv1WF4WjMvEbPpTieoUnk=; b=uI6bq8UePpc41aZqyIX+RvRsyhfHa5c7mEBgXmtfvDUUlNJKvtZozs+7TOG5wjSVey kC4mtR5ApAyj2phevpwGrFeXX6974C1UaufY5ogDH9PljaI/XpDY6jaMYLcHYDkC4TRv e6O27my3jdB8il23OHHxZvSfsAUqKpJO/OrVrLnwcCTqJ43/KAaKOVRjkVoFIkb4jRL0 phfqSIKMA9Y/e7760/ZR5RWQxQD8uK1ypDdozz0fKP7QpBpBoInp33cTMvFe8Sj9+Xo6 h7l5BqZ2Z/3MaZDBwa4W7zDoOpZ2HheDEWlWiZQdTJ9bOx1UCLgMOaM0HSke046bpJzS G2uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eoGx5zGseQedVkT8+uTgVvzv1WF4WjMvEbPpTieoUnk=; b=PTACXaSwhWE+2GbUtlVr0QLN/qwa+sXVgCQW/V2sTQu8Frt7ZYwRnFcFWEQVGDp/ox polZt+561S/fup5pS3OeXpQDn2F8pdGAwS1DPPExUOuA+WHtbSekE2T4jpCDDkg5W5NE Nn9/X0xboOseX3paRFGU16ssHpK7s7Gp0PCY7WccR3oBJnjAZTtC7PsiQgJqWPGgRglo 3i0w2Ebc4RNK4jzPFG2PbNjlp3UfwY1nXtsbm6mCt/l4+me+RECAru+koUW5owgxEPtN xTUGQj/om9BCt1ZH1cbA/eXXrYYqt+ZvMCnEX+BOGu1WcMry8HjzygSo7VRBumwy4yWf H7Gg== X-Gm-Message-State: ALoCoQmA5ght7GW3R1hzTuJx/773ptmekOQGP9IkyctDshECUa+EilEEaJkVj2+vi8VDuc7m6k7X X-Received: by 10.194.240.67 with SMTP id vy3mr1517554wjc.168.1449028765434; Tue, 01 Dec 2015 19:59:25 -0800 (PST) Received: from XPS13.ibrowse.com ([93.158.52.3]) by smtp.gmail.com with ESMTPSA id h5sm783942wjz.21.2015.12.01.19.59.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Dec 2015 19:59:24 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 2 Dec 2015 04:57:52 +0100 Message-Id: <1449028676-19232-7-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.5.2 In-Reply-To: <1449028676-19232-1-git-send-email-thomas.monjalon@6wind.com> References: <1449028676-19232-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 06/10] mk: install kernel modules X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2015 03:59:25 -0000 Add kernel modules to "make install". Nothing is done if there is no kernel module compiled. On native Linux, this path is suggested: kerneldir=/lib/modules/$(uname -r)/extra/dpdk Suggested-by: Mario Carrillo Signed-off-by: Thomas Monjalon --- mk/rte.sdkinstall.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 5585974..46253ff 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -36,6 +36,7 @@ BUILD_DIR := $O prefix ?= /usr/local exec_prefix ?= $(prefix) +kerneldir ?= $(exec_prefix)/kmod bindir ?= $(exec_prefix)/bin libdir ?= $(exec_prefix)/lib includedir ?= $(prefix)/include/dpdk @@ -89,6 +90,7 @@ ifeq '$(DESTDIR)$(if $T,,+)' '' else @echo ================== Installing $(DESTDIR)$(prefix)/ $(Q)$(MAKE) O=$(BUILD_DIR) install-runtime + $(Q)$(MAKE) O=$(BUILD_DIR) install-kmod $(Q)$(MAKE) O=$(BUILD_DIR) install-sdk @echo Installation in $(DESTDIR)$(prefix)/ complete endif @@ -105,6 +107,12 @@ install-runtime: $(Q)$(call rte_mkdir, $(DESTDIR)$(datadir)) $(Q)cp -a $(RTE_SDK)/tools $(DESTDIR)$(datadir) +install-kmod: +ifneq '$(wildcard $O/kmod/*)' '' + $(Q)$(call rte_mkdir, $(DESTDIR)$(kerneldir)) + $(Q)cp -a $O/kmod/* $(DESTDIR)$(kerneldir) +endif + install-sdk: $(Q)$(call rte_mkdir, $(DESTDIR)$(includedir)) $(Q)tar -chf - -C $O include | \ -- 2.5.2