get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/41177/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 41177,
    "url": "https://patches.dpdk.org/api/patches/41177/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180615102143.12778-3-gavin.hu@arm.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20180615102143.12778-3-gavin.hu@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180615102143.12778-3-gavin.hu@arm.com",
    "date": "2018-06-15T10:21:39",
    "name": "[v10,2/6] doc: add a guide doc for cross compiling from x86",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d685d5ef7a60aefd95c399fd9118163770092019",
    "submitter": {
        "id": 1018,
        "url": "https://patches.dpdk.org/api/people/1018/?format=api",
        "name": "Gavin Hu",
        "email": "gavin.hu@arm.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180615102143.12778-3-gavin.hu@arm.com/mbox/",
    "series": [
        {
            "id": 141,
            "url": "https://patches.dpdk.org/api/series/141/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=141",
            "date": "2018-06-15T10:21:37",
            "name": "Fix the cross compiling errors",
            "version": 10,
            "mbox": "https://patches.dpdk.org/series/141/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/41177/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/41177/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1799C1D73B;\n\tFri, 15 Jun 2018 12:22:02 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.101.70])\n\tby dpdk.org (Postfix) with ESMTP id D51DB1D70E\n\tfor <dev@dpdk.org>; Fri, 15 Jun 2018 12:21:55 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B20B15B2;\n\tFri, 15 Jun 2018 03:21:55 -0700 (PDT)",
            "from net-debian.shanghai.arm.com (net-debian.shanghai.arm.com\n\t[10.169.36.53])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\tA02FE3F557; Fri, 15 Jun 2018 03:21:54 -0700 (PDT)"
        ],
        "From": "Gavin Hu <gavin.hu@arm.com>",
        "To": "dev@dpdk.org",
        "Cc": "nd@arm.com,\n\tgavin.hu@arm.com",
        "Date": "Fri, 15 Jun 2018 18:21:39 +0800",
        "Message-Id": "<20180615102143.12778-3-gavin.hu@arm.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20180615102143.12778-1-gavin.hu@arm.com>",
        "References": "<20180615092605.12043-1-gavin.hu@arm.com>\n\t<20180615102143.12778-1-gavin.hu@arm.com>",
        "Subject": "[dpdk-dev] [PATCH v10 2/6] doc: add a guide doc for cross compiling\n\tfrom x86",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: gavin hu <gavin.hu@arm.com>\n\nThis is the guide for cross compiling ARM64 DPDK from X86 hosts.\n\nSigned-off-by: Gavin Hu <gavin.hu@arm.com>\nReviewed-by: Steve Capper <Steve.Capper@arm.com>\nReviewed-by: Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>\nAcked-by: Marko Kovacevic <marko.kovacevic@intel.com>\n---\n .../linux_gsg/cross_build_dpdk_for_arm64.rst       | 137 +++++++++++++++++++++\n doc/guides/linux_gsg/index.rst                     |   1 +\n 2 files changed, 138 insertions(+)\n create mode 100644 doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst",
    "diff": "diff --git a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst\nnew file mode 100644\nindex 000000000..551f0aef8\n--- /dev/null\n+++ b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst\n@@ -0,0 +1,137 @@\n+..  SPDX-License-Identifier: BSD-3-Clause\n+    Copyright(c) 2018 ARM Corporation.\n+\n+Cross compile DPDK for ARM64\n+============================\n+This chapter describes how to cross compile DPDK for ARM64 from x86 build hosts.\n+\n+.. note::\n+\n+   Whilst it is recommended to natively build DPDK on ARM64 (just\n+   like with x86), it is also possible to cross-build DPDK for ARM64. An\n+   ARM64 cross compile GNU toolchain is used for this.\n+\n+Obtain the cross tool chain\n+---------------------------\n+The latest cross compile tool chain can be downloaded from:\n+https://releases.linaro.org/components/toolchain/binaries/latest/aarch64-linux-gnu/.\n+Following is the step to get the version 7.2.1, latest one at the time of this writing.\n+\n+.. code-block:: console\n+\n+   wget https://releases.linaro.org/components/toolchain/binaries/latest/\n+   aarch64-linux-gnu/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz\n+\n+Unzip and add into the PATH\n+---------------------------\n+\n+.. code-block:: console\n+\n+   tar -xvf gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz\n+   export PATH=$PATH:<cross_install_dir>/gcc-linaro-7.2.1-2017.11-x86_64\n+   _aarch64-linux-gnu/bin\n+\n+.. note::\n+\n+   For the host requirements and other info, refer to the release note section:\n+   https://releases.linaro.org/components/toolchain/binaries/latest/\n+\n+Getting the prerequisite library\n+--------------------------------\n+\n+NUMA is required by most modern machines, not needed for non-NUMA architectures.\n+\n+.. note::\n+\n+   For compiling the NUMA lib, run libtool --version to ensure the libtool version >= 2.2,\n+   otherwise the compilation will fail with errors.\n+\n+.. code-block:: console\n+\n+   git clone https://github.com/numactl/numactl.git\n+   cd numactl\n+   git checkout v2.0.11 -b v2.0.11\n+   ./autogen.sh\n+   autoconf -i\n+   ./configure --host=x86_64 CC=aarch64-linux-gnu-gcc prefix=<numa install dir>\n+   make install\n+\n+The numa header files and lib file is generated in the include and lib folder respectively under <numa install dir>.\n+\n+.. _argment_the_cross_toolcain_with_numa_support:\n+\n+Augment the cross toolchain with NUMA support\n+---------------------------------------------\n+\n+.. note::\n+\n+   This way is optional, an alternative is to use extra CFLAGS and LDFLAGS, depicted in :ref:`configure_and_cross_compile_dpdk_build` below.\n+\n+Copy the NUMA header files to the cross compiler's include directory:\n+\n+.. code-block:: console\n+\n+   cp <numa_install_dir>/include/numa*.h <cross_install_dir>/gcc-linaro-7.2.1-2017.11\n+   -x86_64_aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/\n+   cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-linaro-7.2.1-2017.11\n+   -x86_64_aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/7.2.1/\n+\n+.. _configure_and_cross_compile_dpdk_build:\n+\n+Configure and cross compile DPDK Build\n+--------------------------------------\n+To configure a build, choose one of the target configurations, like arm64-dpaa2-linuxapp-gcc and arm64-thunderx-linuxapp-gcc.\n+\n+.. code-block:: console\n+\n+   make config T=arm64-armv8a-linuxapp-gcc\n+\n+To cross-compile, without compiling the kernel modules, use the following command:\n+\n+.. code-block:: console\n+\n+   make -j CROSS=aarch64-linux-gnu- CONFIG_RTE_KNI_KMOD=n CONFIG_RTE_EAL_IGB_UIO=n\n+\n+To cross-compile, including the kernel modules, the kernel source tree needs to be specified by setting\n+RTE_KERNELDIR:\n+\n+.. code-block:: console\n+\n+   make -j CROSS=aarch64-linux-gnu- RTE_KERNELDIR=<kernel_src_rootdir>\n+   CROSS_COMPILE=aarch64-linux-gnu-\n+\n+To compile for non-NUMA targets, without compiling the kernel modules, use the following command:\n+\n+.. code-block:: console\n+\n+   make -j CROSS=aarch64-linux-gnu- CONFIG_RTE_KNI_KMOD=n CONFIG_RTE_EAL_IGB_UIO=n\n+   CONFIG_RTE_LIBRTE_VHOST_NUMA=n CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n\n+\n+.. note::\n+\n+   1. EXTRA_CFLAGS and EXTRA_LDFLAGS should be added to include the NUMA headers and link the library respectively,\n+   if the above step :ref:`argment_the_cross_toolcain_with_numa_support` was skipped therefore the toolchain was not\n+   argmented with NUMA support.\n+\n+   2. \"-isystem <numa_install_dir>/include\" should be add to EXTRA_CFLAGS, otherwise the numa.h file will get a lot of compiling\n+   errors of Werror=cast-qual, Werror=strict-prototypes and Werror=old-style-definition.\n+\n+   An example is given below:\n+\n+   .. code-block:: console\n+\n+      make -j CROSS=aarch64-linux-gnu- CONFIG_RTE_KNI_KMOD=n CONFIG_RTE_EAL_IGB_UIO=n\n+      EXTRA_CFLAGS=\"-isystem <numa_install_dir>/include\" EXTRA_LDFLAGS=\n+      \"-L<numa_install_dir>/lib -lnuma\"\n+\n+Meson Cross Compiling DPDK\n+--------------------------\n+\n+To cross-compile DPDK on a desired target machine we can use the following\n+command::\n+\n+\tmeson cross-build --cross-file <target_machine_configuration>\n+\n+For example if the target machine is arm64 we can use the following\n+command::\n+\tmeson arm-build --cross-file config/arm/arm64_armv8_linuxapp_gcc\ndiff --git a/doc/guides/linux_gsg/index.rst b/doc/guides/linux_gsg/index.rst\nindex 2a7bdfe92..077f93023 100644\n--- a/doc/guides/linux_gsg/index.rst\n+++ b/doc/guides/linux_gsg/index.rst\n@@ -13,6 +13,7 @@ Getting Started Guide for Linux\n     intro\n     sys_reqs\n     build_dpdk\n+    cross_build_dpdk_for_arm64\n     linux_drivers\n     build_sample_apps\n     enable_func\n",
    "prefixes": [
        "v10",
        "2/6"
    ]
}