From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Subject: [PATCH v2] build: add support for vendor specific ARM cross builds Date: Mon, 22 Jan 2018 18:44:50 +0530 Message-ID: <20180122131450.8855-1-pbhagavatula@caviumnetworks.com> References: <20180119131508.7768-1-pbhagavatula@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain Cc: dev@dpdk.org, Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, bruce.richardson@intel.com, harry.van.haaren@intel.com, herbert.guan@arm.com, hemant.agrawal@nxp.com Return-path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0041.outbound.protection.outlook.com [104.47.37.41]) by dpdk.org (Postfix) with ESMTP id F40C7A48A for ; Mon, 22 Jan 2018 14:15:47 +0100 (CET) In-Reply-To: <20180119131508.7768-1-pbhagavatula@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add various vendor specific cross build targets. This can be verified by using linaro toolchain and running meson build --cross-file config/arm/arch64_armv8__cross In future more cross build targets can be added. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - rename cross file names. - redo machine args selection logic. config/arm/arm64_armv8_linuxapp_gcc | 10 ++++++++++ config/arm/arm64_thunderx_linuxapp_gcc | 13 +++++++++++++ config/arm/meson.build | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 config/arm/arm64_armv8_linuxapp_gcc create mode 100644 config/arm/arm64_thunderx_linuxapp_gcc diff --git a/config/arm/arm64_armv8_linuxapp_gcc b/config/arm/arm64_armv8_linuxapp_gcc new file mode 100644 index 000000000..3b4d3c469 --- /dev/null +++ b/config/arm/arm64_armv8_linuxapp_gcc @@ -0,0 +1,10 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' diff --git a/config/arm/arm64_thunderx_linuxapp_gcc b/config/arm/arm64_thunderx_linuxapp_gcc new file mode 100644 index 000000000..7ff34af74 --- /dev/null +++ b/config/arm/arm64_thunderx_linuxapp_gcc @@ -0,0 +1,13 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x43' diff --git a/config/arm/meson.build b/config/arm/meson.build index 212b94499..a5bfb9610 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -59,6 +59,9 @@ else endif # Set to generic if variable is not found machine = get_variable('impl_' + cmd_output[0], 'generic') + else + impl_id = meson.get_cross_property('implementor_id', 'generic') + machine = get_variable('impl_' + impl_id) endif if machine == 'generic' -- 2.16.0