Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2670205pxp; Tue, 22 Mar 2022 03:46:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybWDTK5Iir7onNsjxPCobyU6aBiJtpt+b+LXTEbqB99xIVytxuxFsDoHL8QbSF8XlhQr5M X-Received: by 2002:a63:4041:0:b0:37f:8077:e0de with SMTP id n62-20020a634041000000b0037f8077e0demr20796681pga.138.1647945969618; 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=Mb3fE6DiWlxlOQR3/WcnyUDEHUFD4B6N7FtFbaBVAON7YyoGDEtalLnuAXfg2gCNHN ur0vezMFw/afHWXytI25dcf0PUa4YUYL8XoSWNz56RnY5zWt53nP4v2djx6cPjuVXy/t HNIJ3YzwUpZXCLDM9CNCfnOM1BFDMLzTNxftc9fto4goAuWPuYKlzx0l36EJ5PHEEgYj sWM2HxHzFMBVI8abg2EhrKqnacE7mP6brtUhQNC+PP5JJSEG6RTqHi/KY+mJ7r2afTuA CAF0hdzolaKiHStJCGbN3gNkNXqk1bBm7gnWjBsW2GQ/n1X0s1hm3KwEfLzNy5niDhtD nKzg== 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; bh=dOhc948YByb3X4njXePU+uM0J2dUUfssn4Dzwq4pjgs=; b=qKhoQze9pmquE+uHofTCdK9YhWNO+gY2asj22JtiZOzQfopg2nOaYUdlIGpd78UV3z h8PEp84RrCnqcogxZ5QmIlb/YzZ/ETq7LUkuqBKlnK/mKTIt0Go/73Xw2XDDWMAR1CDU HtxTiQa3wax2OELp0jqOOf2FR+lcHh71PUz1LvYG23AlPo+E+2+2b+24tvivGsez5BSk LR/odfgfG0aqusHikM9JZHYzsKIiBu7yX4euoCc/zAwZ9C6SacjEnWpH0ybnVcpE/ifX ON+l+KqTZoRk4Zzcm2LPy61EPLkqEnKQQTQeR+BRITB8n/SiuQbmH65TBmllSpGozxxu KHCQ== ARC-Authentication-Results: i=1; mx.google.com; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be3-20020a656e43000000b003816043ee42si5866714pgb.55.2022.03.22.03.45.56; 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; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232494AbiCVJVd (ORCPT + 99 others); Tue, 22 Mar 2022 05:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231328AbiCVJVa (ORCPT ); Tue, 22 Mar 2022 05:21:30 -0400 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D1815C847; Tue, 22 Mar 2022 02:20:02 -0700 (PDT) Received: by mail-wm1-f54.google.com with SMTP id i186so590197wma.3; Tue, 22 Mar 2022 02:20:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=dOhc948YByb3X4njXePU+uM0J2dUUfssn4Dzwq4pjgs=; b=WNNFcHaYWa2cL5HJbbSPwE9d58YSsw4NJVJiV5+moo37We116eMJiaVd65myWQCaCH kItkdg5ny5udVY+ennFhybadikB3MJ/byK1hWqwp9ncP098YDDJ0Ptf3dutQw2zzEjF+ Y1O0v2rjtGF3lhPW1jQVxiGRLHd4tlsrB/Qgp5MKgxH87x7229sUkVD3IJA7xLCQtNsH 3UCqcNFJG18C2erJmI9pIVZa8dOfEKbdASnNDp6rJJGFPhMPqeS9SPXKm/Cm1WEIiLRu aSAQTSgwT4SgT2XndLvZgDfvCkbBetOGIlHOdDBhUusANsO8F1EE8UaQJmNKmO0RDmd/ WuJw== X-Gm-Message-State: AOAM533YdD7+WE9wo0IMXGhYYsK7INKiTKmA3TND91pFIGF1WNjE1zZT t6ybLckRlTtQ3FVROi17OhE= X-Received: by 2002:a05:600c:1c8e:b0:38c:a386:26aa with SMTP id k14-20020a05600c1c8e00b0038ca38626aamr2776405wms.204.1647940801298; Tue, 22 Mar 2022 02:20:01 -0700 (PDT) Received: from [192.168.1.49] (185-219-167-24-static.vivo.cz. [185.219.167.24]) by smtp.gmail.com with ESMTPSA id l15-20020a05600c4f0f00b0038cbdf5221dsm59059wmq.41.2022.03.22.02.20.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Mar 2022 02:20:00 -0700 (PDT) Message-ID: <28696c20-21ad-b0ac-8093-4ce07225fcd8@kernel.org> Date: Tue, 22 Mar 2022 10:19:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: hppa vDSO and compiler (non-)support Content-Language: en-US To: Helge Deller 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> From: Jiri Slaby In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 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=hppa-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=hppa-suse-linux-"? > > Could you please try if this patch fixes it for you? Works like a charm: $ make V=1 O=../a/arch/parisc/ ARCH=parisc -j6 drivers/tty/serial/mux.o ... > hppa-suse-linux-gcc -o drivers/tty/serial/mux.o /home/latest/linux/drivers/tty/serial/mux.c > if hppa-suse-linux-objdump -h drivers/tty/serial/mux.o | ...; fi Thanks. > 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 > > # Set default 32 bits cross compilers for vdso > CC_ARCHES_32 = hppa hppa2.0 hppa1.1 > -CC_SUFFIXES = linux linux-gnu unknown-linux-gnu > +CC_SUFFIXES = linux linux-gnu unknown-linux-gnu suse-linux > CROSS32_COMPILE := $(call cc-cross-prefix, \ > $(foreach a,$(CC_ARCHES_32), \ > $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) > @@ -52,7 +52,7 @@ export CROSS32CC > # Set default cross compiler for kernel build > ifdef cross_compiling > ifeq ($(CROSS_COMPILE),) > - CC_SUFFIXES = linux linux-gnu unknown-linux-gnu > + CC_SUFFIXES = linux linux-gnu unknown-linux-gnu suse-linux > CROSS_COMPILE := $(call cc-cross-prefix, \ > $(foreach a,$(CC_ARCHES), \ > $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) -- -- js suse labs