From patchwork Tue Oct 27 14:25:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 8076 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 0503C5682; Tue, 27 Oct 2015 15:25:13 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 438FC567C for ; Tue, 27 Oct 2015 15:25:11 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 27 Oct 2015 07:25:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,205,1444719600"; d="scan'208";a="820534291" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 27 Oct 2015 07:25:08 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t9REP8hE032736; Tue, 27 Oct 2015 14:25:08 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id t9REP7Bt008546; Tue, 27 Oct 2015 14:25:07 GMT Received: (from bricha3@localhost) by sivswdev01.ir.intel.com with id t9REP7am008542; Tue, 27 Oct 2015 14:25:07 GMT From: Bruce Richardson To: mario.alfredo.c.arevalo@intel.com, dev@dpdk.org Date: Tue, 27 Oct 2015 14:25:05 +0000 Message-Id: <1445955906-8505-2-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1445955906-8505-1-git-send-email-bruce.richardson@intel.com> References: <6594B51DBE477C48AAE23675314E6C460F1B8B6E@fmsmsx107.amr.corp.intel.com> <1445955906-8505-1-git-send-email-bruce.richardson@intel.com> Subject: [dpdk-dev] [RFC-PATCH 1/2] gen-build-mk: add "make install" option to build dir 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add in a "make install" command to the makefile for a DPDK build directory. Once inside the directory, make and make install will behave as normal for opensource packages, compiling and installing in the filesystem the DPDK code. Signed-off-by: Bruce Richardson --- scripts/gen-build-mk.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/gen-build-mk.sh b/scripts/gen-build-mk.sh index 5c12813..2387cf6 100755 --- a/scripts/gen-build-mk.sh +++ b/scripts/gen-build-mk.sh @@ -36,6 +36,9 @@ # $1: path of project src root # $2: path of build dir (can be relative to $1) +if [ -z "$RTE_PREFIX" ] ; then + RTE_PREFIX=/usr/local +fi echo "# Automatically generated by gen-build-mk.sh" echo echo "ifdef O" @@ -46,8 +49,18 @@ echo "endif" echo echo "MAKEFLAGS += --no-print-directory" echo +echo "INSTALL = install -v" +echo echo "all:" echo " @\$(MAKE) -C $1 O=$2" echo +echo "install:" +echo " @\$(INSTALL) -d $RTE_PREFIX/lib/dpdk $RTE_PREFIX/include/dpdk" +echo " @\$(INSTALL) -d $RTE_PREFIX/include/dpdk/exec-env $RTE_PREFIX/include/dpdk/generic" +echo " @\$(INSTALL) lib/* $RTE_PREFIX/lib/dpdk" +echo " @\$(INSTALL) include/*.h $RTE_PREFIX/include/dpdk" +echo " @\$(INSTALL) include/exec-env/*.h $RTE_PREFIX/include/dpdk/exec-env" +echo " @\$(INSTALL) include/generic/*.h $RTE_PREFIX/include/dpdk/generic" +echo echo "%::" echo " @\$(MAKE) -C $1 O=$2 \$@"