Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2852561rwb; Fri, 20 Jan 2023 08:08:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXu8jh+VdgPnSfG+DKtX0tc44OB9o+eyXNY8rLz/1ee4o5rXOmA7Fusg2uhN2kaK2ieKbGAc X-Received: by 2002:a17:906:fb09:b0:859:aca8:fe4d with SMTP id lz9-20020a170906fb0900b00859aca8fe4dmr11343798ejb.46.1674230909236; Fri, 20 Jan 2023 08:08:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674230909; cv=none; d=google.com; s=arc-20160816; b=ovTfgydZNzWbqT+wDmNb3PekRpii+NNxpN0FFbd0K9kakpXnuEAfvqNrdHIjMvv2F7 MOdZcHwEDYl5ZhNaCiqMN3FSEtgcsqx1FjX4WO6R4cXLOJytH7s+hREy8Hr9yQTPnFAE sFvwiG2o+oDP5xOto/e52CdY4aFs+TxGngS3jN8IkUBkyCwdpUDPaKQxHq4hvNp9H8zW J/TWATvZ6TJYXi/c+C5Hb3rc0wPjyqCpfyMb+yzXuduHDwsim6bXHTyx3LQH2Y6LqaDw i6LuoAsWWmXS6zdWk2HDntR5OE3Nhl1HZJwlKuhL1260/h2Xo9dlB+F0Qh+8RuJWWzwa OoNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter:secumail-id:dkim-signature; bh=C7HrnI5K8lMVKwfpvR2iIg1M1ljeou+P3mCJSMAG91Q=; b=a3dMof17bEDINfw1ATt5stVrQnLgOcrMI20Echr2dmoFegObThkCxYI4tTnPy6Ly+r XMJpHf1aPRWZl5DSeSQQjKFIo+sz4qnLU5E0pw8iBqvym0jydj4knLJe4+YU32mXp/6V IlrHwuuq3dmnI/KshkawSKpPfUCnskl/cFMXZeHMyR8Fcq5O/dr1NqXz8GiIN/1mXC+l XRAA2GyH0YhtVgDy2aCHqGoSeldKNpWGScxYsT5c2lCZhyFZqSfMafv3LgDX7WGP272T hUxjBT1epDQMvkoD4/43Mwouh1MpiwkzvK4Oattv5oureYWmZ1NC8INfBwvnkoOEPYgz ryrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kalray.eu header.s=sec-sig-email header.b=kW7THbef; dkim=pass header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=WDWoyVMb; 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=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk34-20020a1709077fa200b008779c9c6ba1si2553475ejc.43.2023.01.20.08.08.16; Fri, 20 Jan 2023 08:08:29 -0800 (PST) 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=@kalray.eu header.s=sec-sig-email header.b=kW7THbef; dkim=pass header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=WDWoyVMb; 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=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230394AbjATPDt (ORCPT + 49 others); Fri, 20 Jan 2023 10:03:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230391AbjATPDr (ORCPT ); Fri, 20 Jan 2023 10:03:47 -0500 Received: from fx303.security-mail.net (mxout.security-mail.net [85.31.212.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02729A83AE for ; Fri, 20 Jan 2023 07:03:44 -0800 (PST) Received: from localhost (fx303.security-mail.net [127.0.0.1]) by fx303.security-mail.net (Postfix) with ESMTP id 79EA130F7DB for ; Fri, 20 Jan 2023 16:03:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalray.eu; s=sec-sig-email; t=1674227023; bh=UZzOxuculcf7mxi4XmJ6gsSDrAJaXvR6pX1yVHvffJs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=kW7THbefwaBqq3E4MyuQwmr90ax0hQkfpZy6Np3+KLY3cc++QhhhKVSBM30a+UOn3 oVqxEdH813kxvM5hlQNOTi/eFMG7llCjnSgPz33v8ttiDqA7igP87DRmjQ5TQyl3qe Cuf5U3fBQ82LLZmM8yVtNzEzjGSKIOEazPF0sfpI= Received: from fx303 (fx303.security-mail.net [127.0.0.1]) by fx303.security-mail.net (Postfix) with ESMTP id 3221030F720; Fri, 20 Jan 2023 16:03:43 +0100 (CET) Received: from zimbra2.kalray.eu (unknown [217.181.231.53]) by fx303.security-mail.net (Postfix) with ESMTPS id 7CF1230F79F; Fri, 20 Jan 2023 16:03:42 +0100 (CET) Received: from zimbra2.kalray.eu (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTPS id 5696027E043A; Fri, 20 Jan 2023 16:03:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 36BE627E0437; Fri, 20 Jan 2023 16:03:42 +0100 (CET) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9zSUTNBWOY1C; Fri, 20 Jan 2023 16:03:42 +0100 (CET) Received: from tellis.lin.mbt.kalray.eu (unknown [192.168.36.206]) by zimbra2.kalray.eu (Postfix) with ESMTPSA id D59A827E0430; Fri, 20 Jan 2023 16:03:41 +0100 (CET) X-Virus-Scanned: E-securemail Secumail-id: <7f21.63caad4e.7b828.0> DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu 36BE627E0437 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1674227022; bh=C7HrnI5K8lMVKwfpvR2iIg1M1ljeou+P3mCJSMAG91Q=; h=Date:From:To:Message-ID:MIME-Version; b=WDWoyVMbIMPbJepmJq7lETaMqJi8dXSis3WDlHnimStL/D6LcNyVKEyhwC0exaLEa /yI1hmzBWA0vpQxL61VK4pLGSFjwDaBXqRRCN+CNJkpmnVhmZT4IznmM53SL6OKcDp hoqf7NRBZhx1q/JOV6km7TyZQI9nicecKIciSZ5I= Date: Fri, 20 Jan 2023 16:03:40 +0100 From: Jules Maselbas To: Arnd Bergmann Cc: Yann Sionneau , Jonathan Corbet , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , "Eric W. Biederman" , Kees Cook , Oleg Nesterov , Ingo Molnar , Waiman Long , Aneesh Kumar , Andrew Morton , Nicholas Piggin , Paul Moore , Eric Paris , Christian Brauner , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guillaume Thouvenin , Clement Leger , Vincent Chardon , Marc =?utf-8?b?UG91bGhpw6hz?= , Julian Vetter , Samuel Jones , Ashley Lesdalons , Thomas Costis , Marius Gligor , Jonathan Borne , Julien Villette , Luc Michel , Louis Morhet , Julien Hascoet , Jean-Christophe Pince , Guillaume Missonnier , Alex Michon , Huacai Chen , WANG Xuerui , Shaokun Zhang , John Garry , Guangbin Huang , Bharat Bhushan , Bibo Mao , Atish Patra , "Jason A . Donenfeld" , Qi Liu , Jiaxun Yang , Catalin Marinas , Mark Brown , Janosch Frank , Alexey Dobriyan , Benjamin Mugnier , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mm@kvack.org, Linux-Arch , linux-audit@redhat.com, linux-riscv@lists.infradead.org, bpf@vger.kernel.org Subject: Re: [RFC PATCH v2 09/31] kvx: Add build infrastructure Message-ID: <20230120150340.GA5952@tellis.lin.mbt.kalray.eu> References: <20230120141002.2442-1-ysionneau@kalray.eu> <20230120141002.2442-10-ysionneau@kalray.eu> <20230120145316.GA4155@tellis.lin.mbt.kalray.eu> <9965e2d1-bae8-4ce7-911c-783c772e9ff1@app.fastmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <9965e2d1-bae8-4ce7-911c-783c772e9ff1@app.fastmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ALTERMIMEV2_out: done X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Fri, Jan 20, 2023 at 04:01:11PM +0100, Arnd Bergmann wrote: > On Fri, Jan 20, 2023, at 15:53, Jules Maselbas wrote: > > On Fri, Jan 20, 2023 at 03:39:22PM +0100, Arnd Bergmann wrote: > >> On Fri, Jan 20, 2023, at 15:09, Yann Sionneau wrote: > >> > - Fix clean target raising an error from gcc (LIBGCC) > >> > >> I had not noticed this on v1 but: > >> > >> > +# Link with libgcc to get __div* builtins. > >> > +LIBGCC := $(shell $(CC) $(DEFAULT_OPTS) --print-libgcc-file-name) > >> > >> It's better to copy the bits of libgcc that you actually need > >> than to include the whole thing. The kernel is in a weird > > It was initialy using KCONFIG_CFLAGS which do not contains valid options > > when invoking the clean target. > > > > I am not exactly sure what's needed by gcc for --print-libgcc-file-name, > > my guess is that only the -march option matters, I will double check > > internally with compiler peoples. > > > >> state that is neither freestanding nor the normal libc based > >> environment, so we generally want full control over what is > >> used. This is particularly important for 32-bit architectures > >> that do not want the 64-bit division, but there are probably > >> enough other cases as well. > > To clarify: I meant you should not include libgcc.a at all but > add the minimum set of required files as arch/kvx/lib/*.S. Thanks for clarifying :) -- Jules