summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-02-26 13:46:57 +0100
committerDamjan Marion <damarion@cisco.com>2016-02-26 19:48:10 +0100
commit308fb98220633e29c7cd7f54e9d7d64ef3f066f8 (patch)
treec139ee831c08957412d1a792d5c580801c9e1061
parente936bbe5945ca3c0f522f6c0abdfbdaa407bcb84 (diff)
Update PowerPC (qppc) platform to build with Ubuntu cross-tools
Standard Ubuntu PowerPC toolchain can be installed with: apt-get install crossbuild-essential-powerpc And code can be built with: make PLATFORM=qppc TAG=qppc ... Change-Id: I247355fc89fd61aedb8693156e84c454ca86eb75 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--build-data/packages/vlib-api-no-dpdk.mk6
-rw-r--r--build-data/packages/vlib-no-dpdk.mk5
-rw-r--r--build-data/packages/vnet-no-dpdk.mk26
-rw-r--r--build-data/packages/vpp-api-test-no-dpdk.mk29
-rw-r--r--build-data/packages/vpp-no-dpdk.mk32
-rw-r--r--build-data/platforms/qppc.mk33
-rw-r--r--vpp/vnet/main.c26
7 files changed, 22 insertions, 135 deletions
diff --git a/build-data/packages/vlib-api-no-dpdk.mk b/build-data/packages/vlib-api-no-dpdk.mk
deleted file mode 100644
index 031cc1980c5..00000000000
--- a/build-data/packages/vlib-api-no-dpdk.mk
+++ /dev/null
@@ -1,6 +0,0 @@
-vlib-api-no-dpdk_source = vlib-api
-
-vlib-api-no-dpdk_configure_depend = vppinfra-install svm-install vlib-no-dpdk-install
-
-vlib-api-no-dpdk_CPPFLAGS = $(call installed_includes_fn, vppinfra svm vlib-no-dpdk)
-vlib-api-no-dpdk_LDFLAGS = $(call installed_libs_fn, vppinfra svm vlib-no-dpdk)
diff --git a/build-data/packages/vlib-no-dpdk.mk b/build-data/packages/vlib-no-dpdk.mk
deleted file mode 100644
index f3869c5d8e4..00000000000
--- a/build-data/packages/vlib-no-dpdk.mk
+++ /dev/null
@@ -1,5 +0,0 @@
-vlib-no-dpdk_source = vlib
-vlib-no-dpdk_configure_depend = vppinfra-install
-
-vlib-no-dpdk_CPPFLAGS = $(call installed_includes_fn, vppinfra)
-vlib-no-dpdk_LDFLAGS = $(call installed_libs_fn, vppinfra)
diff --git a/build-data/packages/vnet-no-dpdk.mk b/build-data/packages/vnet-no-dpdk.mk
deleted file mode 100644
index ccbd490b334..00000000000
--- a/build-data/packages/vnet-no-dpdk.mk
+++ /dev/null
@@ -1,26 +0,0 @@
-vnet-no-dpdk_source = vnet
-
-vnet-no-dpdk_configure_depend = \
- vppinfra-install \
- svm-install \
- openssl-install \
- vlib-api-no-dpdk-install \
- vlib-no-dpdk-install
-
-vnet-no-dpdk_CPPFLAGS = $(call installed_includes_fn, \
- vppinfra \
- openssl \
- svm \
- vlib-no-dpdk \
- vlib-api-no-dpdk)
-
-vnet-no-dpdk_LDFLAGS = $(call installed_libs_fn, \
- vppinfra \
- openssl \
- svm \
- vlib-no-dpdk \
- vlib-api-no-dpdk)
-
-# Platform dependent configure flags
-vnet-no-dpdk_configure_args += $(vnet-no-dpdk_configure_args_$(PLATFORM))
-
diff --git a/build-data/packages/vpp-api-test-no-dpdk.mk b/build-data/packages/vpp-api-test-no-dpdk.mk
deleted file mode 100644
index 7aab11c3a46..00000000000
--- a/build-data/packages/vpp-api-test-no-dpdk.mk
+++ /dev/null
@@ -1,29 +0,0 @@
-vpp-api-test-no-dpdk_source = vpp-api-test
-
-vpp-api-test-no-dpdk_configure_depend = \
- vppinfra-install \
- svm-install \
- vlib-api-no-dpdk-install \
- vlib-no-dpdk-install \
- vnet-no-dpdk-install \
- vpp-no-dpdk-install
-
-#
-vpp-api-test-no-dpdk_configure_args =
-
-vpp-api-test-no-dpdk_CPPFLAGS = $(call installed_includes_fn, \
- vppinfra \
- svm \
- vlib-no-dpdk \
- vlib-api-no-dpdk \
- vnet-no-dpdk \
- vpp-no-dpdk)
-
-vpp-api-test-no-dpdk_LDFLAGS = $(call installed_libs_fn, \
- vppinfra \
- svm \
- vlib-no-dpdk \
- vlib-api-no-dpdk \
- vnet-no-dpdk \
- vpp-no-dpdk)
-
diff --git a/build-data/packages/vpp-no-dpdk.mk b/build-data/packages/vpp-no-dpdk.mk
deleted file mode 100644
index 81f3f75a100..00000000000
--- a/build-data/packages/vpp-no-dpdk.mk
+++ /dev/null
@@ -1,32 +0,0 @@
-vpp-no-dpdk_source = vpp
-
-vpp-no-dpdk_configure_depend = \
- vppinfra-install \
- openssl-install \
- svm-install \
- vlib-api-no-dpdk-install \
- vlib-no-dpdk-install \
- vnet-no-dpdk-install
-
-#
-vpp-no-dpdk_configure_args =
-
-# Platform dependent configure flags
-vpp-no-dpdk_configure_args += $(vpp-no-dpdk_configure_args_$(PLATFORM))
-
-
-vpp-no-dpdk_CPPFLAGS = $(call installed_includes_fn, \
- vppinfra \
- openssl \
- svm \
- vlib-no-dpdk \
- vlib-api-no-dpdk \
- vnet-no-dpdk)
-
-vpp-no-dpdk_LDFLAGS = $(call installed_libs_fn, \
- vppinfra \
- openssl \
- svm \
- vlib-no-dpdk \
- vlib-api-no-dpdk \
- vnet-no-dpdk)
diff --git a/build-data/platforms/qppc.mk b/build-data/platforms/qppc.mk
index fe0f8683f23..3206928b507 100644
--- a/build-data/platforms/qppc.mk
+++ b/build-data/platforms/qppc.mk
@@ -1,23 +1,34 @@
# Qemu "p-series" powerpc64
-qppc_arch = powerpc64
+qppc_os = linux-gnu
-qppc_root_packages = vppinfra openssl vlib-no-dpdk vlib-api-no-dpdk vnet-no-dpdk svm \
- vpp-no-dpdk vpp-api-test-no-dpdk
+qppc_cross_ldflags = \
+ -Wl,--dynamic-linker=/lib64/ld64.so.1
-vpp_configure_args_qppc =
-vnet-no-dpdk_configure_args_qppc = # nothing
-vlib-no-dpdk_configure_args_qppc = --with-pre-data=128
+qppc_arch = powerpc
+
+qppc_root_packages = vppinfra vlib vlib-api vnet svm \
+ vpp vpp-api-test
+
+vnet_configure_args_qppc = \
+ --without-ipsec --without-vcgn --without-ipv6sr
+
+vpp_configure_args_qppc = \
+ --without-ipsec --without-vcgn --without-ipv6sr
+
+vlib_configure_args_qppc = --with-pre-data=128
qppc_march=powerpc64
# native tool chain additions for this platform
-qppc_native_tools = vppapigen vppversion
+qppc_native_tools = vppapigen
+
+qppc_uses_dpdk = no
-qppc_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec
-qppc_debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec
+qppc_debug_TAG_CFLAGS = -m64 -g -O0 -DCLIB_DEBUG -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec
+qppc_debug_TAG_LDFLAGS = -m64 -g -O0 -DCLIB_DEBUG -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec
-qppc_TAG_CFLAGS = -g -O2 -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec
-qppc_TAG_LDFLAGS = -g -O2 -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec
+qppc_TAG_CFLAGS = -m64 -g -O2 -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec
+qppc_TAG_LDFLAGS = -m64 -g -O2 -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec
diff --git a/vpp/vnet/main.c b/vpp/vnet/main.c
index 08e8813fd5e..290b5c03f32 100644
--- a/vpp/vnet/main.c
+++ b/vpp/vnet/main.c
@@ -268,32 +268,6 @@ u32 vlib_app_num_thread_stacks_needed (void)
* messages!
*/
-#if IPV6SR == 0
-#define foreach_ipv6_sr_stub_node \
-_(ipsec-output, ipsec_output)
-#else
-#define foreach_ipv6_sr_stub_node
-#endif
-
-#define _(n,m) \
-static uword \
-m##_node_fn (vlib_main_t *vm, \
- vlib_node_runtime_t *node, \
- vlib_frame_t *frame) \
-{ \
- clib_warning("unimplemented, leaking buffers..."); \
- return 0; \
-} \
- \
-VLIB_REGISTER_NODE(m##_node) = { \
- .function = m##_node_fn, \
- .name = #n, \
- .vector_size = sizeof(u32), \
- .type = VLIB_NODE_TYPE_INTERNAL, \
-};
-foreach_ipv6_sr_stub_node;
-#undef _
-
#if CLIB_DEBUG > 0
static clib_error_t *