Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2670204pxp; Tue, 22 Mar 2022 03:46:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe2EdwYa/X59iDg7je8JGNqMb948K1CMb4AqFz3P69ji5fDv+kBHHiM5ulD+X18i+MV9Kn X-Received: by 2002:a65:4845:0:b0:325:c147:146d with SMTP id i5-20020a654845000000b00325c147146dmr21962285pgs.140.1647945969657; Tue, 22 Mar 2022 03:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647945969; cv=none; d=google.com; s=arc-20160816; b=VvNNt94SxHB4L/RN3JiWJpWuepwFl0D7ZzfwkpadSvKViefY/Qea81JmXQ5rH4BpOi fBih+3zNWrfgT197vWfkRZRNPNzHmGcfe3EDao5F6CrzMxkBaRTkmfWjAlQzxq1+D6db kbCVMlHe+zWWMD15rkB00ykSh0bHy49y/uNiviRuEJkNyOQkbEb1i6Pb3LoH84BV8iwa GEdZIZ28cJGvxI79HNhP6fdLjT16/9S0k2X5waJX5DekGkWtdUycWzGBITFuw2clo6UZ TrWed2GmgdNtSWcNwJ1sp2FgOZHtxTzhaO4y4UY8JcPIJAzy6Pl34vfitzBe/SzJRmc+ YDog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1wN67HX2N9TL5KJKzjVuC341Ns0Ydj5PenlLPykx6fA=; b=Zw2rAbJS6eBj0sUrFXeUE2QlzFx+556SkmTW2aGtO+irWanO5CaGM3iDwg8GG7R7Ha WcCXuUoJsyfakR3mbu4uOK+f432T3ZZJEWePm1jvTvfe3fjG4ydqkli7TIdlpRFtPUiv N9Yxg6wgo8iXjEkF/gVqI0lsfibW4cIQdt6xLNrMrD6QpYSDMFd040jT8ff9XOrFwSva cBMBJhM0IjmiUmHm5hJyVGy9le3X9igN2INf7yTfKU7HRkUxjoXSyoFcUPfbDolyS3JL z4fJ27PoqZ2OGHERu2urEyu0/2xkCCRt8xerkNnvcrLg+CB7CWZ1kPRgQcjDae+rfRDc W/Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Iw0tcIFD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a170902ee1100b0015416a66ff0si11279212plb.145.2022.03.22.03.45.57; Tue, 22 Mar 2022 03:46:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Iw0tcIFD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232678AbiCVJoN (ORCPT + 99 others); Tue, 22 Mar 2022 05:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbiCVJoL (ORCPT ); Tue, 22 Mar 2022 05:44:11 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F2837EA27; Tue, 22 Mar 2022 02:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1647942156; bh=1wN67HX2N9TL5KJKzjVuC341Ns0Ydj5PenlLPykx6fA=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=Iw0tcIFDp8ZFlHuBGdWx3EjC9swr6x3VB9RaiWMQ92tx8AsAxp4u0lQ29NgGwBUPZ CDK7e0wieOuFbrxu4C2g/rHAd4g7SKNS50QIboas9QmvKk+uJclJX7OxV9rXcJrLha ihqEHRZPGTJZThJ9EAvepxEt+qjEFbyqAVVq3R5o= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.191.132]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N7i8O-1oAguH34Og-014iL1; Tue, 22 Mar 2022 10:42:35 +0100 Message-ID: <812d4a38-8cb1-a7be-c504-87d095aea883@gmx.de> Date: Tue, 22 Mar 2022 10:42:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: hppa vDSO and compiler (non-)support Content-Language: en-US To: Jiri Slaby Cc: linux-parisc@vger.kernel.org, Linux kernel mailing list , =?UTF-8?Q?Martin_Li=c5=a1ka?= , Andreas Schwab References: <2e1f3e41-7097-e68d-d312-9319ad62565c@gmx.de> <28696c20-21ad-b0ac-8093-4ce07225fcd8@kernel.org> From: Helge Deller In-Reply-To: <28696c20-21ad-b0ac-8093-4ce07225fcd8@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:xIPTjJcE1zkdbS5QqNnxY9gM7vcXO8QMTyYcuZIoo6jY+519Rkv RzTRUnAg2b7xZ0a81TWkC2eT+5KBFVrrOtCTghQWRyPmp0Ae0DoajjJGQri00OrpeuLVzuS bRZ5nUj6K096f5KSPOoC21r3xvDBEjXGpBX5Jg8lgmznYq6Vx8nw9Ao04YzO9iz6zaKaTJt Du+muGIpDO4gWg4LjdSr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ys4 xebQ9jwb1kk6WVuY97ecIEPqiKVgkStnjlwycsISqS63lof7Fz6mew5Jg2+2jgCXG5gi01Xv1 l1hhDQTAnLUyvs= X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/22/22 10:19, Jiri Slaby wrote: > Hello, > > On 21. 03. 22, 19:51, Helge Deller wrote: >> * Jiri Slaby : >>> On 09. 03. 22, 6:48, Jiri Slaby wrote: >>>> On 08. 03. 22, 15:51, Helge Deller wrote: >>>>> On 3/8/22 12:06, Jiri Slaby wrote: >>>>>> since the "parisc: Add vDSO support" commit, I can no longer >>>>>> cross-build a hppa kernel. I see two issues: >>>>>> >>>>>> 1) CROSS32_COMPILE detection doesn't work here, as openSUSE >>>>>> provides hppa-suse-linux-* binaries. It's easy to overcome by >>>>>> "CROSS32_COMPILE=3Dhppa-suse-linux-" >>>>> >>>> ... >>>>> Would it make sense to add the detection for SUSE too? >>> >>> So, could 1) be fixed on the Kconfig side? Or should I (people running= SUSE) >>> use "CROSS32_COMPILE=3Dhppa-suse-linux-"? >> >> Could you please try if this patch fixes it for you? > > Works like a charm: > $ make V=3D1 O=3D../a/arch/parisc/ ARCH=3Dparisc -j6 drivers/tty/serial/= mux.o > ... >>=C2=A0 hppa-suse-linux-gcc -o drivers/tty/serial/mux.o /= home/latest/linux/drivers/tty/serial/mux.c >>=C2=A0 if hppa-suse-linux-objdump -h drivers/tty/serial/mux.o | ...; fi > > Thanks. Great! I've queued up a patch in for-next... Helge > >> diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile >> index 2a9387a93592..7583fc39ab2d 100644 >> --- a/arch/parisc/Makefile >> +++ b/arch/parisc/Makefile >> @@ -42,7 +42,7 @@ export LD_BFD >> >> =C2=A0 # Set default 32 bits cross compilers for vdso >> =C2=A0 CC_ARCHES_32 =3D hppa hppa2.0 hppa1.1 >> -CC_SUFFIXES=C2=A0 =3D linux linux-gnu unknown-linux-gnu >> +CC_SUFFIXES=C2=A0 =3D linux linux-gnu unknown-linux-gnu suse-linux >> =C2=A0 CROSS32_COMPILE :=3D $(call cc-cross-prefix, \ >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $(foreach a,$(CC_ARCHES_32), \ >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) >> @@ -52,7 +52,7 @@ export CROSS32CC >> =C2=A0 # Set default cross compiler for kernel build >> =C2=A0 ifdef cross_compiling >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ifeq ($(CROSS_COMPILE),) >> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CC_SUFFIXES =3D linux linux= -gnu unknown-linux-gnu >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CC_SUFFIXES =3D linux linux= -gnu unknown-linux-gnu suse-linux >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CROSS_COMPILE := =3D $(call cc-cross-prefix, \ >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 $(foreach a,$(CC_ARCHES), \ >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) >