summaryrefslogtreecommitdiffstats
path: root/build-data
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 /build-data
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>
Diffstat (limited to 'build-data')
-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
6 files changed, 22 insertions, 109 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 031cc198..00000000
--- 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 f3869c5d..00000000
--- 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 ccbd490b..00000000
--- 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 7aab11c3..00000000
--- 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 81f3f75a..00000000
--- 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 fe0f8683..3206928b 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