From patchwork Mon Jun 25 02:49:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gavin Hu X-Patchwork-Id: 41434 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AE5CA5B38; Mon, 25 Jun 2018 04:49:26 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 41E9056A3 for ; Mon, 25 Jun 2018 04:49:25 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 39B657A9; Sun, 24 Jun 2018 19:49:24 -0700 (PDT) Received: from net-debian.shanghai.arm.com (net-debian.shanghai.arm.com [10.169.36.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 969DE3F59C; Sun, 24 Jun 2018 19:49:23 -0700 (PDT) From: Gavin Hu To: dev@dpdk.org Cc: nd@arm.com, gavin.hu@arm.com Date: Mon, 25 Jun 2018 10:49:07 +0800 Message-Id: <20180625024913.17219-1-gavin.hu@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180619103657.19186-1-gavin.hu@arm.com> References: <20180619103657.19186-1-gavin.hu@arm.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v13 0/6] Fix the cross compiling errors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 1. Pre-v5 of this patch set(two patches) is to fix the GNU Makefile based cross compiling errors and add a guiding doc for this. 2. v6 add 5 more new patches to cover meson cross fixes 3. v7 Some minor changes to address the comments: a) trim the commit message b) at the start of the script, test ninja or ninja-build and use it to work out the command to work out. c) use host gcc and clang for the general v8a only to avoid overkill, and use gcc for others. 4. v8 drop one of the new patch as it a similar fix was already upstreamed 5. v9 some minor changes to address the comments, as well some commit message refined. a) move if clause out of the loop for a better program structure. b) echo the correct ninja command actually used. 6. v10 Fix the whitespace issues. 7. v11 Shorten the command to a single line with all hardcoded values in order to be shorter and more readable. 8. v12 Fix the following issues: a) return directly instead exiting with an error, if cross gcc is missing, meaning the cross compiling tests are skipped. b) move the check for cross gcc presence ahead to cover the clang case c) remove host-gcc from the build dir for brevity 9. v13 Fix the indention issue and merge lines to make the html doc more readable Gavin Hu (4): build: fix the meson build warning devtools: fix the missing ninja command error build: fix the meson cross compile error devtools: expand meson cross compiling test coverage gavin hu (2): mk: fix makefile based cross build errors doc: add a guide doc for cross compiling from x86 buildtools/pmdinfogen/Makefile | 2 +- config/arm/arm64_thunderx_linuxapp_gcc | 1 + config/meson.build | 3 +- devtools/test-meson-builds.sh | 31 +++-- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 132 +++++++++++++++++++++ doc/guides/linux_gsg/index.rst | 1 + drivers/meson.build | 3 + examples/meson.build | 4 + lib/meson.build | 4 + mk/toolchain/gcc/rte.toolchain-compat.mk | 5 + mk/toolchain/gcc/rte.vars.mk | 9 ++ test/test/meson.build | 7 +- 12 files changed, 191 insertions(+), 11 deletions(-) create mode 100644 doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst