summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2016-07-25 18:42:17 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2016-07-27 13:52:57 +0100
commitc64460cf86c530d8557ff326f7d8d7278f3398f2 (patch)
tree9821e317474e9b7b49aa4890f9a723cb57cc3092
parent7ce981fbd8c97f6882abde26793c2c126a77a54a (diff)
downloadspp-c64460cf86c530d8557ff326f7d8d7278f3398f2.zip
spp-c64460cf86c530d8557ff326f7d8d7278f3398f2.tar.gz
spp-c64460cf86c530d8557ff326f7d8d7278f3398f2.tar.xz
spp: add Makefile to compile DPDK inplace
Usage: make -j -f Makefile.spp This will first compile DPDK and than SPP. RTE_SDK should be set to proper DPDK path. While compiling DPDK test application add test-pmd disabled. Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> --- This is on top of standalone branch.
-rw-r--r--Makefile.spp39
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile.spp b/Makefile.spp
new file mode 100644
index 0000000..ec6bab3
--- /dev/null
+++ b/Makefile.spp
@@ -0,0 +1,39 @@
+# BSD LICENSE
+#
+# Copyright(c) 2016 Intel Corporation. All rights reserved.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+# * Neither the name of Intel Corporation nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+T ?= x86_64-ivshmem-linuxapp-gcc
+
+all:
+ make -C $(RTE_SDK) T=$(T) config
+ sed -ri 's,(RTE_APP_TEST=)y,\1n,' $(RTE_SDK)/$(RTE_TARGET)/.config
+ sed -ri 's,(RTE_TEST_PMD=)y,\1n,' $(RTE_SDK)/$(RTE_TARGET)/.config
+ make -C $(RTE_SDK)
+ make all