diff -Nru dpdk-2.0.0/debian/changelog dpdk-2.0.0/debian/changelog --- dpdk-2.0.0/debian/changelog 2015-12-10 05:23:53.000000000 -0500 +++ dpdk-2.0.0/debian/changelog 2016-01-27 12:09:37.000000000 -0500 @@ -1,3 +1,13 @@ +dpdk (2.0.0-0ubuntu4) UNRELEASED; urgency=medium + + * d/p/ppc64-dpdk.patch, d/control: + Fixed some ppc64 definitions and copied + defconfig_ppc_64-power8-linuxapp-gcc to + defconfig_ppc64le-native-linuxapp-gcc since that is the file searched + during the build. Also added ppc64el to Architectures. + + -- Fernando Seiti Furusato Wed, 27 Jan 2016 12:07:52 -0500 + dpdk (2.0.0-0ubuntu3) xenial; urgency=medium * Only generate HTML documentation, easing backports to 14.04 and diff -Nru dpdk-2.0.0/debian/control dpdk-2.0.0/debian/control --- dpdk-2.0.0/debian/control 2015-12-10 05:09:23.000000000 -0500 +++ dpdk-2.0.0/debian/control 2016-01-27 12:07:49.000000000 -0500 @@ -13,7 +13,7 @@ Package: dpdk Section: devel -Architecture: amd64 i386 +Architecture: amd64 i386 ppc64el Depends: ${shlibs:Depends}, libdpdk0 (= ${binary:Version}), ${misc:Depends}, ${python:Depends}, lsb-base (>= 3.2-14) Description: Data Plane Development Kit (runtime) @@ -23,7 +23,7 @@ Package: dpdk-dev Section: devel -Architecture: amd64 i386 +Architecture: amd64 i386 ppc64el Depends: libdpdk0 (= ${binary:Version}), ${misc:Depends} Description: Data Plane Development Kit (development files) DPDK is a set of libraries for fast packet processing. Applications run @@ -41,7 +41,7 @@ This package contains the complete set of documentation and guides. Package: libdpdk0 -Architecture: amd64 i386 +Architecture: amd64 i386 ppc64el Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} @@ -53,7 +53,7 @@ Package: libdpdk-dev Section: libdevel -Architecture: amd64 i386 +Architecture: amd64 i386 ppc64el Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, libdpdk0 (= ${binary:Version}) diff -Nru dpdk-2.0.0/debian/patches/ppc64-dpdk.patch dpdk-2.0.0/debian/patches/ppc64-dpdk.patch --- dpdk-2.0.0/debian/patches/ppc64-dpdk.patch 1969-12-31 19:00:00.000000000 -0500 +++ dpdk-2.0.0/debian/patches/ppc64-dpdk.patch 2016-01-27 11:54:31.000000000 -0500 @@ -0,0 +1,108 @@ +Description: + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . + dpdk (2.0.0-0ubuntu3) xenial; urgency=medium + . + * Only generate HTML documentation, easing backports to 14.04 and + reducing the time to build and size of the -doc package (LP: #1524700). +Author: James Page +Bug-Ubuntu: https://bugs.launchpad.net/bugs/1524700 + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: https://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +Index: dpdk-2.0.0/mk/machine/default/rte.vars.mk +=================================================================== +--- dpdk-2.0.0.orig/mk/machine/default/rte.vars.mk ++++ dpdk-2.0.0/mk/machine/default/rte.vars.mk +@@ -55,4 +55,8 @@ + # CPU_LDFLAGS = + # CPU_ASFLAGS = + +-MACHINE_CFLAGS += -march=core2 ++ifeq (ppc64le,$(shell uname -m)) ++ MACHINE_CFLAGS += -mcpu=power8 ++else ++ MACHINE_CFLAGS += -march=core2 ++endif +Index: dpdk-2.0.0/config/defconfig_ppc64le-native-linuxapp-gcc +=================================================================== +--- /dev/null ++++ dpdk-2.0.0/config/defconfig_ppc64le-native-linuxapp-gcc +@@ -0,0 +1,62 @@ ++# BSD LICENSE ++# ++# Copyright (C) IBM Corporation 2014. ++# ++# 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 IBM 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. ++ ++#include "common_linuxapp" ++ ++CONFIG_RTE_MACHINE="power8" ++ ++CONFIG_RTE_ARCH="ppc_64" ++CONFIG_RTE_ARCH_PPC_64=y ++CONFIG_RTE_ARCH_64=y ++ ++CONFIG_RTE_TOOLCHAIN="gcc" ++CONFIG_RTE_TOOLCHAIN_GCC=y ++ ++CONFIG_RTE_LIBNAME="powerpc_dpdk" ++ ++# Note: Power doesn't have this support ++CONFIG_RTE_LIBRTE_EAL_VMWARE_TSC_MAP_SUPPORT=n ++ ++# Note: Initially, all of the PMD drivers compilation are turned off on Power ++# Will turn on them only after the successful testing on Power ++CONFIG_RTE_LIBRTE_IXGBE_PMD=n ++CONFIG_RTE_LIBRTE_I40E_PMD=n ++CONFIG_RTE_LIBRTE_VIRTIO_PMD=n ++CONFIG_RTE_LIBRTE_VMXNET3_PMD=n ++CONFIG_RTE_LIBRTE_PMD_BOND=n ++CONFIG_RTE_LIBRTE_ENIC_PMD=n ++ ++# This following libraries are not available on Power. So they're turned off. ++CONFIG_RTE_LIBRTE_LPM=n ++CONFIG_RTE_LIBRTE_ACL=n ++CONFIG_RTE_LIBRTE_SCHED=n ++CONFIG_RTE_LIBRTE_PORT=n ++CONFIG_RTE_LIBRTE_TABLE=n ++CONFIG_RTE_LIBRTE_PIPELINE=n diff -Nru dpdk-2.0.0/debian/patches/series dpdk-2.0.0/debian/patches/series --- dpdk-2.0.0/debian/patches/series 2015-12-10 05:09:23.000000000 -0500 +++ dpdk-2.0.0/debian/patches/series 2016-01-27 11:54:31.000000000 -0500 @@ -2,3 +2,4 @@ ubuntu-fix-libname.patch ubuntu-combined-shared-lib-abiversion.patch ubuntu-fix-gcc5-ftbs.patch +ppc64-dpdk.patch