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 B049B45A1C; Tue, 24 Sep 2024 18:29:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A077E402E2; Tue, 24 Sep 2024 18:29:10 +0200 (CEST) Received: from mail-pl1-f227.google.com (mail-pl1-f227.google.com [209.85.214.227]) by mails.dpdk.org (Postfix) with ESMTP id 6975B40274 for ; Tue, 24 Sep 2024 18:29:09 +0200 (CEST) Received: by mail-pl1-f227.google.com with SMTP id d9443c01a7336-2053616fa36so69794815ad.0 for ; Tue, 24 Sep 2024 09:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1727195348; x=1727800148; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yrCdhSLoXulKk3gSm5z8QBNys3oFa5ulxyE9cFKsJBc=; b=ZIfPoC/CnkaZiBNTvYLOrk4zloISKHot4JFUJ3uzHRF6sLg6gZduRHwdC6fropIFzs vB/NGonEB3lYjZLRZQyRQGoAUFwUoWILsSacTksK6eeNcVpdz+eonT0RllNqNBI1c9ZC 6LncEwJ/5s97/YEVmnZ6a1gNmPe0W3h/NJL7s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727195348; x=1727800148; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yrCdhSLoXulKk3gSm5z8QBNys3oFa5ulxyE9cFKsJBc=; b=O+ag4UzhaxTv53ZZ4GNOVRtn4MHan863TDGa+O22NYUEMXbk3eiBMdfhag1ENLqEmn cHbIiGK9L20ktCu+WsRsdFR5MZIRe4yyiqh9vaOjk2oMSEqSEFLI74NemtQH1M1KwPyY LfWp7KHY/HXUohaZYwTDnb8ZYY4Xg4P0GH1YPIcPhkNnDWANiu7cyV4KXsLfEDFLMpb5 Am1VzKsU9LJDjXZWCcW78lL5S5joFHNGbCg24ptmBVgIa1lWV5ECNsvwQFJQ3Ne9Refs PQ7FIs1jWBBaqvAdjBXRcgc7Coi2VJDQC5QXA2nM8URe75Vc+jqrsu0GInbZ5+hI3u3P +K9A== X-Gm-Message-State: AOJu0YyHmocZTy1VgiQPthanM48KyBABUDfZ58I+I+FXRh9M+y/nD2LC AAAQFgTHA/+woH/JF1pyylwP75oAA1W1L/0OcUr5F9tv5la9mCpdGCS2VuSc8+NB+FhWw2wepSS e+kOvRt/pdMxRfLFuS2q8Ad71bqxXNsNS9u1BXmbSJvbxdJ5r X-Google-Smtp-Source: AGHT+IHTgz7c+Skh53GbGcn5Xc6bF5yOUQLxBeBoh+9w/NjZbO0GUTsSwq/wfp/iPEjbKiaHaEZWLpVfdMjJ X-Received: by 2002:a17:902:e881:b0:205:5005:957b with SMTP id d9443c01a7336-208d84083bfmr232534375ad.37.1727195348577; Tue, 24 Sep 2024 09:29:08 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id d9443c01a7336-20af1850f9fsm666015ad.114.2024.09.24.09.29.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Sep 2024 09:29:08 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::1083]) by postal.iol.unh.edu (Postfix) with ESMTP id 466EC605C351; Tue, 24 Sep 2024 12:29:07 -0400 (EDT) From: jspewock@iol.unh.edu To: paul.szczepanek@arm.com, probb@iol.unh.edu, thomas@monjalon.net, alex.chapman@arm.com, Honnappa.Nagarahalli@arm.com, wathsala.vithanage@arm.com, yoan.picchi@foss.arm.com, Luca.Vizzarro@arm.com, juraj.linkes@pantheon.tech, npratte@iol.unh.edu Cc: dev@dpdk.org, Jeremy Spewock Subject: [PATCH v3 1/2] dts: add symbolic link to dpdk-devbind script Date: Tue, 24 Sep 2024 12:28:41 -0400 Message-ID: <20240924162842.11714-2-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240924162842.11714-1-jspewock@iol.unh.edu> References: <20240812172251.41131-1-jspewock@iol.unh.edu> <20240924162842.11714-1-jspewock@iol.unh.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Jeremy Spewock The devbind script is used throughout DTS to manage drivers on the remote hosts. Currently, the only way to copy this script onto a host is to either copy the entire DPDK directory onto a host, or reach out of the dts directory into its parent DPDK directory to access the script. The first is undesirable if the host doesn't require any other DPDK tools since you would be copying extra unneeded information and the second is undesirable since it enforces the assumption that DTS is being run from within the DPDK directory. To solve this issue a symbolic link is added which links the devbind script from the parent into the DTS directory. Since this file is not part of DTS and therefore is not expected to follow DTS formatting rules, it is excluded from the DTS formatting script. Signed-off-by: Jeremy Spewock --- devtools/dts-check-format.sh | 9 +++++---- dts/dpdk-devbind.py | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) create mode 120000 dts/dpdk-devbind.py diff --git a/devtools/dts-check-format.sh b/devtools/dts-check-format.sh index 3f43e17e88..adc199d34e 100755 --- a/devtools/dts-check-format.sh +++ b/devtools/dts-check-format.sh @@ -13,6 +13,7 @@ usage() { format=true lint=true typecheck=true +ignore="dpdk-devbind.py" # Comments after args serve as documentation; must be present while getopts "hflt" arg; do @@ -54,14 +55,14 @@ if $format; then heading "Formatting in $directory/" if command -v black > /dev/null; then echo "Formatting code with black:" - black . + black --exclude "$ignore" . else echo "black is not installed, not formatting" errors=$((errors + 1)) fi if command -v isort > /dev/null; then echo "Sorting imports with isort:" - isort . + isort --skip "$ignore" . else echo "isort is not installed, not sorting imports" errors=$((errors + 1)) @@ -90,7 +91,7 @@ if $lint; then fi heading "Linting in $directory/" if command -v pylama > /dev/null; then - pylama . + pylama --skip "$ignore" . errors=$((errors + $?)) else echo "pylama not found, unable to run linter" @@ -104,7 +105,7 @@ if $typecheck; then fi heading "Checking types in $directory/" if command -v mypy > /dev/null; then - mypy . + mypy --exclude "$ignore" . errors=$((errors + $?)) else echo "mypy not found, unable to check types" diff --git a/dts/dpdk-devbind.py b/dts/dpdk-devbind.py new file mode 120000 index 0000000000..9d042fad14 --- /dev/null +++ b/dts/dpdk-devbind.py @@ -0,0 +1 @@ +../usertools/dpdk-devbind.py \ No newline at end of file -- 2.46.0