From bfdedbd5a3ba7e6fdc036d212253aa55c9062211 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Wed, 20 Jan 2016 09:11:55 -0500 Subject: PowerPC64-be arch support. Qemu ("qppc") platform support. Change-Id: Ib0a05f9d1b08bacef09f6d7c101391737031ee0d Signed-off-by: Dave Barach --- build-data/packages/vlib-api-no-dpdk.mk | 6 ++++++ build-data/packages/vlib-no-dpdk.mk | 5 +++++ build-data/packages/vnet-no-dpdk.mk | 26 +++++++++++++++++++++++ build-data/packages/vpp-api-test-no-dpdk.mk | 30 ++++++++++++++++++++++++++ build-data/packages/vpp-no-dpdk.mk | 33 +++++++++++++++++++++++++++++ build-data/platforms/qppc.mk | 23 ++++++++++++++++++++ 6 files changed, 123 insertions(+) create mode 100644 build-data/packages/vlib-api-no-dpdk.mk create mode 100644 build-data/packages/vlib-no-dpdk.mk create mode 100644 build-data/packages/vnet-no-dpdk.mk create mode 100644 build-data/packages/vpp-api-test-no-dpdk.mk create mode 100644 build-data/packages/vpp-no-dpdk.mk create mode 100644 build-data/platforms/qppc.mk (limited to 'build-data') diff --git a/build-data/packages/vlib-api-no-dpdk.mk b/build-data/packages/vlib-api-no-dpdk.mk new file mode 100644 index 00000000000..031cc1980c5 --- /dev/null +++ b/build-data/packages/vlib-api-no-dpdk.mk @@ -0,0 +1,6 @@ +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 new file mode 100644 index 00000000000..f3869c5d8e4 --- /dev/null +++ b/build-data/packages/vlib-no-dpdk.mk @@ -0,0 +1,5 @@ +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 new file mode 100644 index 00000000000..ccbd490b334 --- /dev/null +++ b/build-data/packages/vnet-no-dpdk.mk @@ -0,0 +1,26 @@ +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 new file mode 100644 index 00000000000..b511f2caf9b --- /dev/null +++ b/build-data/packages/vpp-api-test-no-dpdk.mk @@ -0,0 +1,30 @@ +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 = --with-q-platform=$(PLATFORM) \ + --with-q-plugin-prefix=$(MU_BUILD_ROOT_DIR)/packages-$(PLATFORM) + +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 new file mode 100644 index 00000000000..f509bdf399f --- /dev/null +++ b/build-data/packages/vpp-no-dpdk.mk @@ -0,0 +1,33 @@ +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 = --with-q-platform=$(PLATFORM) \ + --with-q-plugin-prefix=$(MU_BUILD_ROOT_DIR)/packages-$(PLATFORM) + +# 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 new file mode 100644 index 00000000000..fe0f8683f23 --- /dev/null +++ b/build-data/platforms/qppc.mk @@ -0,0 +1,23 @@ +# Qemu "p-series" powerpc64 + +qppc_arch = powerpc64 + +qppc_root_packages = vppinfra openssl vlib-no-dpdk vlib-api-no-dpdk vnet-no-dpdk svm \ + vpp-no-dpdk vpp-api-test-no-dpdk + +vpp_configure_args_qppc = +vnet-no-dpdk_configure_args_qppc = # nothing +vlib-no-dpdk_configure_args_qppc = --with-pre-data=128 + +qppc_march=powerpc64 + +# native tool chain additions for this platform +qppc_native_tools = vppapigen vppversion + +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_TAG_CFLAGS = -g -O2 -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec +qppc_TAG_LDFLAGS = -g -O2 -DCLIB_LOG2_CACHE_LINE_BYTES=6 -maltivec + + -- cgit 1.2.3-korg