[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Y5f5SQxQRFpH8u2s@bergen.fjasle.eu>
Date: Tue, 13 Dec 2022 05:02:17 +0100
From: Nicolas Schier <nicolas@...sle.eu>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
Palmer Dabbelt <palmer@...osinc.com>,
Albert Ou <aou@...s.berkeley.edu>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...hat.com>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Thomas Gleixner <tglx@...utronix.de>,
Tom Rix <trix@...hat.com>, linux-riscv@...ts.infradead.org,
llvm@...ts.linux.dev, x86@...nel.org
Subject: Re: [PATCH] kbuild: add test-{ge,gt,le,lt} macros
On Sun 11 Dec 2022 11:46:47 GMT, Masahiro Yamada wrote:
> GNU Make 4.4 introduced $(intcmp ...), which is useful to compare two
> integers without forking a new process.
>
> Add test-{ge,gt,le,lt} macros, which work more efficiently with GNU
> Make >= 4.4. For older Make versions, they fall back to the 'test'
> shell command.
>
> The first two parameters to $(intcmp ...) must not be empty. To avoid
> the syntax error, I appended '0' to them. Fortunately, '00' is treated
> as '0'. This is needed because CONFIG options may expand to an empty
> string when the kernel configuration is not included.
>
> Signed-off-by: Masahiro Yamada <masahiroy@...nel.org>
> Acked-by: Palmer Dabbelt <palmer@...osinc.com> # RISC-V
> ---
>
> Changes in v3:
> - Use $(intcmp ...) instead of playing with $(sort ...)
Reviewed-by: Nicolas Schier <nicolas@...sle.eu>
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists