lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNASxaJMUAS6vgcDX3jwM9LQj7Lz8RX941FQhrDrtJSt6GA@mail.gmail.com>
Date:   Thu, 31 Mar 2022 00:31:20 +0900
From:   Masahiro Yamada <masahiroy@...nel.org>
To:     Ben Westover <kwestover.kw@...il.com>
Cc:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
        Michal Marek <michal.lkml@...kovi.net>,
        Nick Desaulniers <ndesaulniers@...gle.com>
Subject: Re: [PATCH] riscv: Set SRCARCH to riscv if ARCH is riscv64 or riscv32

On Wed, Mar 30, 2022 at 11:34 PM Ben Westover <kwestover.kw@...il.com> wrote:
>
> When riscv64 or riscv32 are used as the value for ARCH during compilation, like
> in tools that get the ARCH value from uname, set SRCARCH to riscv instead of
> failing because the riscv64 and riscv32 targets don't exist.

Can you refer to the code that really needs this?




>
> Signed-off-by: Ben Westover <kwestover.kw@...il.com>
> ---
>  Makefile | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index c28c5d91e5c8..315c364bf2ba 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -408,6 +408,14 @@ ifeq ($(ARCH),parisc64)
>         SRCARCH := parisc
>  endif
>
> +# Additional ARCH settings for riscv
> +ifeq ($(ARCH),riscv32)
> +       SRCARCH := riscv
> +endif
> +ifeq ($(ARCH),riscv64)
> +       SRCARCH := riscv
> +endif
> +
>  export cross_compiling :=
>  ifneq ($(SRCARCH),$(SUBARCH))
>  cross_compiling := 1
> --
> 2.35.1
>


-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ