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 8481F458CA; Mon, 2 Sep 2024 08:30:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 78C3B40430; Mon, 2 Sep 2024 08:29:58 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 1A70240430 for ; Mon, 2 Sep 2024 08:29:55 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 482664BR007605 for ; Sun, 1 Sep 2024 23:29:55 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=X XoUhw7Q1MnzJVzPwQdgPBIcu03FW3Et37XarH+wGOc=; b=L32ROazN6u7L9AXdA wHrs7GtLjyG4VC9Ypla0aZy8HkQExbEDiFI+41QUmu/CWd5pucIZxFgHF1i2Shr2 qMl8EW+505JVQHBzzA91sUiQzj2io4bzKqF0AYisSIfvFKYCL+3XF0UtN6X8Fvlb lZL2v633ht8jPQL/fXAKQKicd6UFXBC5PmgIRg/8wAuQGWeYOi05Mu6OjumRrDD0 Wk4yqPQp1j2eaEzjgpsRt3Sx/LTs/UCfqYGN9kOW9kMWDyX4nqvUqqVrL27I68Hn FQ36gBOyS/ezB9ioWoRH0vZCHkXhRcl6dk8r1IedBQ7pFZLjdL1IgIQY8/dLGON4 O+B4A== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 41d7sxg24v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 01 Sep 2024 23:29:54 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 1 Sep 2024 23:29:53 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Sun, 1 Sep 2024 23:29:53 -0700 Received: from localhost.localdomain (unknown [10.29.52.211]) by maili.marvell.com (Postfix) with ESMTP id A82773F70B6; Sun, 1 Sep 2024 23:29:51 -0700 (PDT) From: Harman Kalra To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: Subject: [PATCH 1/5] common/cnxk: define platform configuration Date: Mon, 2 Sep 2024 11:59:36 +0530 Message-ID: <20240902062940.182273-2-hkalra@marvell.com> X-Mailer: git-send-email 2.46.0.469.g4590f2e941 In-Reply-To: <20240902062940.182273-1-hkalra@marvell.com> References: <20240902062940.182273-1-hkalra@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Ndtf6F_ZwO8J-BQYWVmPzhzz5ooSikHf X-Proofpoint-ORIG-GUID: Ndtf6F_ZwO8J-BQYWVmPzhzz5ooSikHf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-09-01_06,2024-08-30_01,2024-05-17_01 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 Defining compile time platform configuration to discrimate among different SOCs. Signed-off-by: Harman Kalra --- drivers/common/cnxk/meson.build | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/common/cnxk/meson.build b/drivers/common/cnxk/meson.build index e0e4600989..dc2ddf1f20 100644 --- a/drivers/common/cnxk/meson.build +++ b/drivers/common/cnxk/meson.build @@ -91,6 +91,19 @@ sources += files('cnxk_telemetry_bphy.c', 'cnxk_telemetry_sso.c', ) +if meson.is_cross_build() + soc_type = meson.get_cross_property('platform', '') +else + soc_type = platform +endif +if soc_type == 'cn9k' + dpdk_conf.set('ROC_PLATFORM_CN9K', 1) +elif soc_type == 'cn10k' + dpdk_conf.set('ROC_PLATFORM_CN10K', 1) +elif soc_type == 'cn20k' + dpdk_conf.set('ROC_PLATFORM_CN20K', 1) +endif + deps += ['bus_pci', 'net', 'telemetry'] require_iova_in_mbuf = false -- 2.25.1