Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2067781ybe; Tue, 3 Sep 2019 07:33:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSNf4WbPAmyQX8iyx102htMG3T5mMXxRpGWV6+RcGzYa5959jkbjtn7cFg4e8NDJy1aF0z X-Received: by 2002:a63:f907:: with SMTP id h7mr30704682pgi.418.1567521191067; Tue, 03 Sep 2019 07:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567521191; cv=none; d=google.com; s=arc-20160816; b=DYYJ/XHjutMeYr4120zYilfQIOIuSE2BOob593eSiu79XR9G2WRkAXiLttXUCahAyA 9ptjmxOSqV+r4Zg/ATliid9ISE+8URrjHWWD31CMYJvzwDvHesKD9mVawqfMvS1mdcXH r87QyK4kSflw9trJrjIJWnN+Bb91rTyo9pQ/WMcswax5CYqfU4n2bNR03FkIWdONUMgd WTkgvlmgzyoa+OCSEOBUBCLlzMjlWPcx5tORwugWygTrFw9FkVrACYusVH1G61oxAMRo U3C8Tq1DHOuNYNGaBoZvOtHVZwQKMv/lhp7rs1lJ/TRKMEwTotzLkN4RGh/adXfbv9I+ 56kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=peXU42EyKwQnnz8I8342mhS/H7burl4NL19/9YgGjD0=; b=HvZHNlbavnGlPcQhA5PTbbpcKGog1YgUXDYH53sk/kcPIOsuub1+e6bYN9AfntsPd5 BBEhKn7jNrX7s6t3ucZeFjC6t6ytCQm3y6yn4W6+EwfmJxUEy5MfaAbXwyrNjxgoSpps l68CVc1cDRc98RkY3xtGHQTGh8qSFn6KuReh6tQuy2iBNegO1xO6eY2gus0+cmjirQyJ LOVVBv/Y939JpBNACeffutHfAkrTBJBswPNgCvMyGk3eRlSp3FaPllMiPPP67MaeiRUz LaLDnzlRicra547a128GgNK7gBy5c7dhtdR/TMutqPOVXWJPk0cp+eOv2iSESTWGWBXB ORiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=To2J9hU4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f30si7757509pjd.59.2019.09.03.07.32.55; Tue, 03 Sep 2019 07:33:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=To2J9hU4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729556AbfICOb7 (ORCPT + 99 others); Tue, 3 Sep 2019 10:31:59 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:17012 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727107AbfICOb6 (ORCPT ); Tue, 3 Sep 2019 10:31:58 -0400 Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x83EVtVI008834 for ; Tue, 3 Sep 2019 23:31:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x83EVtVI008834 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567521116; bh=peXU42EyKwQnnz8I8342mhS/H7burl4NL19/9YgGjD0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=To2J9hU4oq963etpjneGoIRkK8muL4ge1eFeFd+JOKSAJyIFu3eQLEfFuPe/7fCfD T6Ev74+Bkwbd1zwYdlvOP/d2NpKZCY+Hzd8zQD1nzMEigbEsphDDV/eIrwuyVYscvM j0A2ou96yem5vS0c3y30DGhGUicO2XSK2Rst8fxojqelE7n4rTVQBy1a5c0h8ImzIr rGlQg/N9hc6wngoGrFAX16cLhWEnalbrkeA0kX3OCEtSbM1PYQQre9cTthEKjkO2A7 ECX/HlIMqBK/5owGmVEGMlrjUp2m2wbc6DhoPmskMp4Gs9OBrMAgV/SpAdK3DsI0ri PBR0ztSiH6jAA== X-Nifty-SrcIP: [209.85.222.53] Received: by mail-ua1-f53.google.com with SMTP id n13so5548575uap.9 for ; Tue, 03 Sep 2019 07:31:55 -0700 (PDT) X-Gm-Message-State: APjAAAWoMQbXdaMTiosmZ7GQYXkAyPtz+/ZmXHykP1frurHNeKOb1v8k 2c5rafJMhSZ5V8vbvKnw5gtv2hGqusewGgIjOTY= X-Received: by 2002:a9f:2213:: with SMTP id 19mr4944903uad.25.1567521114572; Tue, 03 Sep 2019 07:31:54 -0700 (PDT) MIME-Version: 1.0 References: <20190821092658.32764-1-yamada.masahiro@socionext.com> <20190826113526.GA23425@infradead.org> <20190830155322.GA30046@infradead.org> <20190902074256.GA754@infradead.org> In-Reply-To: <20190902074256.GA754@infradead.org> From: Masahiro Yamada Date: Tue, 3 Sep 2019 23:31:18 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: add arch/riscv/Kbuild To: Christoph Hellwig Cc: Albert Ou , Palmer Dabbelt , Linux Kernel Mailing List , Paul Walmsley , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 2, 2019 at 4:42 PM Christoph Hellwig wrote: > > On Sat, Aug 31, 2019 at 10:04:53PM +0900, Masahiro Yamada wrote: > > Kbuild support two file names, "Makefile" and "Kbuild" > > for describing obj-y, obj-m, etc. > > I I think I full understand> > > > Similarly, arch/$(SRCARCH)/Makefile is very special > > in that it is included from the top-level Makefile, > > and specify arch-specific compiler flags etc. > > > > We can use arch/$(SRCARCH)/Kbuild > > to specify obj-y, obj-m. > > The top-level Makefile does not need to know > > the directory structure under arch/$(SRCARCH)/. > > > > This is logical separation. > > But only if we document this specific split and eventually stop allowing > to build objects from arch/$(SRCARCH)/Makefile. I like this idea, but it would change the link order (i.e. probe order) For example, I want move all drivers-y in arch/x86/Makefile to arch/x86/Kbuild. I do not know how much we care about the probe order. > And in my perfect world > we'd eventually phase out the magic arch/$(SRCARCH)/Makefile entire=C5=80= y. > In addition to the normal Kbuild file we'd then have say (names entirely > made up and probably not the best idea) > > arch/$(SRCARCH)/flags.mk to set the various compiler flags and co > arch/$(SRCARCH)/targets.mk for extra arch-specific targets I am not sure whether this split is a good idea. What is the problem with having the single arch-Makefile? --=20 Best Regards Masahiro Yamada