Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/104987/?format=api
http://patchwork.dpdk.org/api/patches/104987/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1638875109-5544-2-git-send-email-juraj.linkes@pantheon.tech/", "project": { "id": 1, "url": "http://patchwork.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": "<1638875109-5544-2-git-send-email-juraj.linkes@pantheon.tech>", "list_archive_url": "https://inbox.dpdk.org/dev/1638875109-5544-2-git-send-email-juraj.linkes@pantheon.tech", "date": "2021-12-07T11:05:06", "name": "[v2,1/4] doc: arm64 cross build CFLAGS/LDFLAGS alternatives", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "c531cbf6a3ba8ca14eed1fdf78f1e0684b6a9c03", "submitter": { "id": 1626, "url": "http://patchwork.dpdk.org/api/people/1626/?format=api", "name": "Juraj Linkeš", "email": "juraj.linkes@pantheon.tech" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1638875109-5544-2-git-send-email-juraj.linkes@pantheon.tech/mbox/", "series": [ { "id": 20884, "url": "http://patchwork.dpdk.org/api/series/20884/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20884", "date": "2021-12-07T11:05:05", "name": "arm64 cross docs improvements/fixes", "version": 2, "mbox": "http://patchwork.dpdk.org/series/20884/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/104987/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/104987/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 558BBA0093;\n\tTue, 7 Dec 2021 12:05:19 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C269F41C3D;\n\tTue, 7 Dec 2021 12:05:14 +0100 (CET)", "from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20])\n by mails.dpdk.org (Postfix) with ESMTP id 256484114F\n for <dev@dpdk.org>; Tue, 7 Dec 2021 12:05:13 +0100 (CET)", "from localhost (localhost [127.0.0.1])\n by lb.pantheon.sk (Postfix) with ESMTP id BFD471342BB;\n Tue, 7 Dec 2021 12:05:11 +0100 (CET)", "from lb.pantheon.sk ([127.0.0.1])\n by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id G1tr_ZwJrklL; Tue, 7 Dec 2021 12:05:10 +0100 (CET)", "from service-node1.lab.pantheon.local (unknown [46.229.239.141])\n by lb.pantheon.sk (Postfix) with ESMTP id 376E91342B6;\n Tue, 7 Dec 2021 12:05:10 +0100 (CET)" ], "X-Virus-Scanned": "amavisd-new at siecit.sk", "From": "=?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>", "To": "thomas@monjalon.net, david.marchand@redhat.com,\n Honnappa.Nagarahalli@arm.com, Ruifeng.Wang@arm.com, ferruh.yigit@intel.com,\n jerinjacobk@gmail.com", "Cc": "dev@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>", "Subject": "[PATCH v2 1/4] doc: arm64 cross build CFLAGS/LDFLAGS alternatives", "Date": "Tue, 7 Dec 2021 12:05:06 +0100", "Message-Id": "<1638875109-5544-2-git-send-email-juraj.linkes@pantheon.tech>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1638875109-5544-1-git-send-email-juraj.linkes@pantheon.tech>", "References": "<1637229656-21612-1-git-send-email-juraj.linkes@pantheon.tech>\n <1638875109-5544-1-git-send-email-juraj.linkes@pantheon.tech>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Remove CFLAGS and LDFLAGS since Meson doesn't support them well enough.\nAdd Meson alternatives: -Dc_args and -Dc_link_args on the command line\nand in cross files.\n\nSigned-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>\n---\n .../linux_gsg/cross_build_dpdk_for_arm64.rst | 25 ++++++++++++++++---\n 1 file changed, 21 insertions(+), 4 deletions(-)", "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\nindex d59af58235..51075bd4a9 100644\n--- a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst\n+++ b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst\n@@ -98,10 +98,6 @@ For aarch32::\n Augment the GNU toolchain with NUMA support\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n-.. note::\n-\n- This way is optional, an alternative is to use extra CFLAGS and LDFLAGS.\n-\n Copy the NUMA header files and lib to the cross compiler's directories:\n \n .. code-block:: console\n@@ -110,6 +106,27 @@ Copy the NUMA header files and lib to the cross compiler's directories:\n cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/lib/gcc/aarch64-none-linux-gnu/9.2.1/\n cp <numa_install_dir>/lib/libnuma.so <cross_install_dir>/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/lib/gcc/aarch64-none-linux-gnu/9.2.1/\n \n+.. note::\n+\n+ Using LDFLAGS and CFLAGS is not a viable alternative to copying the files.\n+ The Meson docs say it is not recommended, as there are many caveats to their\n+ use with Meson, especially when rebuilding the project. A viable alternative\n+ would be to use the ``c_args`` and ``c_link_args`` options with Meson 0.51.0\n+ and higher:\n+\n+.. code-block:: console\n+\n+ -Dc_args=-I<numa_install_dir>/include -Dc_link_args=-L<numa_install_dir>/lib\n+\n+ For Meson versions lower than 0.51.0, the ``c_args`` and ``c_link_args``\n+ options don't apply to cross compilation. However, the compiler/linker flags\n+ may be added to cross files under [properties]:\n+\n+.. code-block:: console\n+\n+ c_args = ['-I<numa_install_dir>/include']\n+ c_link_args = ['-L<numa_install_dir>/lib']\n+\n Cross Compiling DPDK with GNU toolchain using Meson\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n", "prefixes": [ "v2", "1/4" ] }{ "id": 104987, "url": "