From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 39DB7A0579; Fri, 9 Apr 2021 10:55:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E64B5141416; Fri, 9 Apr 2021 10:55:14 +0200 (CEST) Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by mails.dpdk.org (Postfix) with ESMTP id BAC39141411 for ; Fri, 9 Apr 2021 10:55:13 +0200 (CEST) Received: by mail-io1-f50.google.com with SMTP id z136so5129145iof.10 for ; Fri, 09 Apr 2021 01:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=OG1rTpFQIpyryVGkqamQB9P8HKGX12z8UUHz12cegug=; b=da+efwPvpTUcQqt6s57Gma7AADudiQ1kLThue5UfzKpHrppI5GO56q4FSmC42hvf5y eVUgSXaK/gOaVtU0Pi4/xXkmGeicM2vRPMgKMBS0LpNZEdxgOcn1+TD9NdDLpEHMTNZ1 OCB3G+1vwzQ+M+CbtL2E+XEzjNuDyrSbRM8n2n4XaAinZh167QN0exZcMTJoBFSc4cFD YX8A1cS8fBOvTkrlaSnj47vbUVht3XOCSHE1osZgqqaWkyA9UvUNtWTVH6wDOiB01dDW 8vOGX2oT1RA/uDnCDdnclj3Xqa2e4q6vf65pIHXrNzvYzEdbumf4y4E2NN/4NaA05kox EzBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=OG1rTpFQIpyryVGkqamQB9P8HKGX12z8UUHz12cegug=; b=ZxJF7b/Hws7Am2L3tI+d7yN15a3pShUPvKdbY+wIxfy/08kk3ot90fvjXFCub3KsJA Ms0Y+7YKtqSEa85ACPJ+1Tlyupu9Kjf7h0euG2lB7KrE82PoWg/y7t6IIDX7Zh5GGp+J WUwUdQfK51sXyqrLBkBPceDVMx6FuL4zXmhJ/Y16bBYVsWdxt+9wmMTUUhRvXaNOtaWX cmzCAn/vq/1rdk/4T1fMwnBLijjlIp3vAnL2LQ4DyMeye4TqPoOdMbr5KtbPtfr2wv09 SKQZxfWa6f3xAPUHpP2EAbLkelrTO1pZB1g+jFr9kvZK2gIYd227VTSmWymlvIGVrA7C v9Tw== X-Gm-Message-State: AOAM532R38h/OeqStu+tFkSdQF0W6wi6Vn3M4nV5vblQriyslYkiUxz+ TbjaItAPDTe97cV8HlQUPMlsxthbwspa1/ab1E0= X-Google-Smtp-Source: ABdhPJzI0hOzStCBuVQNSBa5wnNSoRkbgExEEiWCXpiT4tb+B28HKBpVLHB89EeFTEBDWgvNLRQZkQoxqOi9df9lhs0= X-Received: by 2002:a05:6602:2d95:: with SMTP id k21mr10485713iow.123.1617958513050; Fri, 09 Apr 2021 01:55:13 -0700 (PDT) MIME-Version: 1.0 References: <1617950146-7307-1-git-send-email-juraj.linkes@pantheon.tech> <1617957679-7751-1-git-send-email-juraj.linkes@pantheon.tech> In-Reply-To: <1617957679-7751-1-git-send-email-juraj.linkes@pantheon.tech> From: Jerin Jacob Date: Fri, 9 Apr 2021 14:24:57 +0530 Message-ID: To: =?UTF-8?Q?Juraj_Linke=C5=A1?= Cc: "Richardson, Bruce" , "Ruifeng Wang (Arm Technology China)" , Honnappa Nagarahalli , Phil Yang , Vimal Chungath , Dharmik Thakkar , Hemant Agrawal , Ajit Khaparde , Ferruh Yigit , aboyer@pensando.io, dpdk-dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v19 0/3] Arm build options rework X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" On Fri, Apr 9, 2021 at 2:11 PM Juraj Linke=C5=A1 wrote: > > The current way of specifying Arm configuration options is insufficient > since we can't identify the SoC we're building for from the MIDR > information. For example, we can't distinguish between N1SDP, Graviton2 > or Ampere Altra. > > We also want to be able to enable/disable which drivers are built > without user input. This is useful when building: > 1. on an SoC that is slow and we want to build only what is necessary > without the user having to check which libraries they have installed > 2. a cross build on a fast aarch64 machine but with target SoC which > differs in capabilities or libraries. > This is achieved by specifying the drivers in SoC configuration. > > The current implementation adds/supports the following: > * x86 -> aarch64 cross build with added config options/enabled or > disabled drivers/libs > * aarch64 -> aarch64 builds for a different SoCs using meson -Dplatform > option or using a cross file > > v16: > Only three commits remaining - updated the cover letter. > Renamed the 'soc' meson option to 'platform'. > Added the support for enabling a particular set of drivers. > Aligned enabling and disabling with the command line option so that > wildcards can be used. > > v17: > Removed unnecessary comments in "build: disable/enable drivers in Arm > builds". Also always enabled two drivers which break the build if > disabled. > > v18: > Rebased. > > v19: > Updated 3/3 with more up to date MAX_LCORE and MAX_NUMA_NODES for > neoverse-n1. There are other SoC target addition patches are blocked by this series. This series looks good to me. Request to merge this before RC1. Tested for octeontx2/Thunderx. Series-Tested-by: Jerin Jacob > > Juraj Linke=C5=A1 (3): > build: disable/enable drivers in Arm builds > build: add 'platform' meson option and Arm SoC config > config: fix Arm implementer and its SoCs > > config/arm/arm64_armada_linux_gcc | 6 +- > config/arm/arm64_armv8_linux_clang_ubuntu1804 | 3 +- > config/arm/arm64_armv8_linux_gcc | 5 +- > config/arm/arm64_bluefield_linux_gcc | 6 +- > config/arm/arm64_dpaa_linux_gcc | 6 +- > config/arm/arm64_emag_linux_gcc | 5 +- > config/arm/arm64_graviton2_linux_gcc | 6 +- > config/arm/arm64_n1sdp_linux_gcc | 6 +- > config/arm/arm64_n2_linux_gcc | 6 +- > config/arm/arm64_octeontx2_linux_gcc | 6 +- > config/arm/arm64_stingray_linux_gcc | 6 +- > config/arm/arm64_thunderx2_linux_gcc | 5 +- > config/arm/arm64_thunderxt88_linux_gcc | 5 +- > config/arm/meson.build | 180 +++++++++++++++--- > .../linux_gsg/cross_build_dpdk_for_arm64.rst | 76 +++----- > drivers/meson.build | 49 ++++- > meson.build | 2 + > meson_options.txt | 4 + > 18 files changed, 242 insertions(+), 140 deletions(-) > > -- > 2.20.1 >