From: Namhyung Kim <namhyung@kernel.org>
To: Yicong Yang <yangyicong@huawei.com>
Cc: acme@kernel.org, peterz@infradead.org, irogers@google.com,
mark.rutland@arm.com, alexander.shishkin@linux.intel.com,
jolsa@kernel.org, linux-perf-users@vger.kernel.org,
yangyicong@hisilicon.com, hejunhao3@huawei.com,
linuxarm@huawei.com, Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Subject: Re: [PATCH] perf build: Make minimal shellcheck version to v0.6.0
Date: Tue, 23 Jan 2024 17:01:20 -0800 [thread overview]
Message-ID: <CAM9d7cjnQONuhh0B91p-rbu7g2of9q=OFH9Fipsit3GQCo8zBw@mail.gmail.com> (raw)
In-Reply-To: <20240122080406.28678-1-yangyicong@huawei.com>
Adding Athira to CC.
Thanks,
Namhyung
On Mon, Jan 22, 2024 at 12:08 AM Yicong Yang <yangyicong@huawei.com> wrote:
>
> From: Yicong Yang <yangyicong@hisilicon.com>
>
> perf build failed due to the shellcheck on my machine (v0.4.6 on Ubuntu
> 18.04.1 LTS) doesn't support -a/--check-sourced and -S/--severity option.
> These two options are introduced in shellcheck v0.4.7 and v0.6.0
> respectively. So restrict the minimal version of shellcheck to v0.6.0.
>
> Fixes: b809fc656e76 ("perf build: Shellcheck support for OUTPUT directory")
> Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
> ---
> tools/perf/Makefile.perf | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
> index 27e7c478880f..f8774a9b1377 100644
> --- a/tools/perf/Makefile.perf
> +++ b/tools/perf/Makefile.perf
> @@ -236,6 +236,16 @@ else
> SHELLCHECK := $(shell which shellcheck 2> /dev/null)
> endif
>
> +# shellcheck is using in tools/perf/tests/Build with option -a/--check-sourced (
> +# introduced in v0.4.7) and -S/--severity (introduced in v0.6.0). So make the
> +# minimal shellcheck version as v0.6.0.
> +ifneq ($(SHELLCHECK),)
> + ifeq ($(shell expr $(shell $(SHELLCHECK) --version | grep version: | \
> + sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \< 060), 1)
> + SHELLCHECK :=
> + endif
> +endif
> +
> export srctree OUTPUT RM CC CXX LD AR CFLAGS CXXFLAGS V BISON FLEX AWK
> export HOSTCC HOSTLD HOSTAR HOSTCFLAGS SHELLCHECK
>
> --
> 2.24.0
>
prev parent reply other threads:[~2024-01-24 1:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-22 8:04 [PATCH] perf build: Make minimal shellcheck version to v0.6.0 Yicong Yang
2024-01-23 16:04 ` Ian Rogers
2024-01-26 14:26 ` Arnaldo Carvalho de Melo
2024-01-24 1:01 ` Namhyung Kim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM9d7cjnQONuhh0B91p-rbu7g2of9q=OFH9Fipsit3GQCo8zBw@mail.gmail.com' \
--to=namhyung@kernel.org \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=atrajeev@linux.vnet.ibm.com \
--cc=hejunhao3@huawei.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=mark.rutland@arm.com \
--cc=peterz@infradead.org \
--cc=yangyicong@hisilicon.com \
--cc=yangyicong@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).