Re: [PATCH 1/3] parisc: Makefile: use the regular compiler to build a native 32-bit vDSO

Helge Deller <[email protected]>
Newsgroups org.kernel.vger.linux-parisc,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Hi Thomas,

On 4/7/26 18:37, Thomas Weißschuh wrote:
> When building a native 32-bit kernel $(CC) the compiler is obviously
> able to compile 32-bit code. There is no need to force the user to
> configure a dedicated 32-bit compiler.
> 
> Use the regular compiler for the 32-bit vDSO when it is sufficient.
> 
> Signed-off-by: Thomas Weißschuh <[email protected]>

This part is quite fragile, especially since the kernel is often also
cross built...
I can add the series to for-next branch of the parisc git tree to see if this
breaks somewhere. (unless you take care of it at another git tree?)

Helge

> ---
>   arch/parisc/Makefile | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
> index 48ae3c79557a..57320e1d8396 100644
> --- a/arch/parisc/Makefile
> +++ b/arch/parisc/Makefile
> @@ -39,6 +39,7 @@ endif
>   
>   export LD_BFD
>   
> +ifdef CONFIG_64BIT
>   # Set default 32 bits cross compilers for vdso.
>   # This means that for 64BIT, both the 64-bit tools and the 32-bit tools
>   # need to be in the path.
> @@ -48,6 +49,9 @@ CROSS32_COMPILE := $(call cc-cross-prefix, \
>   	$(foreach a,$(CC_ARCHES_32), \
>   	$(foreach s,$(CC_SUFFIXES),$(a)-$(s)-)))
>   CROSS32CC := $(CROSS32_COMPILE)gcc
> +else
> +CROSS32CC := $(CC)
> +endif
>   export CROSS32CC
>   
>   # Set default cross compiler for kernel build
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.