From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87283C47089 for ; Wed, 26 May 2021 14:33:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 66B2C6113D for ; Wed, 26 May 2021 14:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234746AbhEZOet (ORCPT ); Wed, 26 May 2021 10:34:49 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:20173 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234416AbhEZOes (ORCPT ); Wed, 26 May 2021 10:34:48 -0400 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 14QEX0hZ030416; Wed, 26 May 2021 23:33:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 14QEX0hZ030416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1622039581; bh=K2JBpUyGmknhlRJpT71wl4Baxz8GsbPi2HBWhe0fUJY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cnmXS+DqWdAPC0p8MNIg0X+ZuRBIktoOUUR+EQB4vPPRCGwGVlLjEGNDw3EmAqZlv xlyoU4qIgALC1L++WZgyjKMXDzp+GxzDeYEL0F6IhJRd7Rpw2XWDIFJ8o7cQRW8BJc 58bmB0Jh48QslQPtKIaufL8A/fujJ7UQngW2AlQLs93Fom+msv11CPKYfc9S8R6atG 3OOPiA7jJYoMBhNmRyZsxR2MDGv0EVvIwT7A7e7yI9l8/pHrO3j3QQFOzjOgPaV2AN D3pbKwvq9+nlzItRdCDnwVjN2eBR7ykeJ5nQmYRfOW40+I524Aqu+Vsx77vDiJBmu1 zIUzibiWGcAvw== X-Nifty-SrcIP: [209.85.214.181] Received: by mail-pl1-f181.google.com with SMTP id d20so700064pls.13; Wed, 26 May 2021 07:33:00 -0700 (PDT) X-Gm-Message-State: AOAM530GOUOKnQj3QL/c4ZQ46GiqErhr0ztzPNR1/JAnM+d4jhe3s5UJ GuU5kapvCyfdDuHaoVR2HnibyZ/eo5oliR92Jac= X-Google-Smtp-Source: ABdhPJw/7i4Yr5Lur94Y0RHgLFU9NY7pValTqlXUvZTdqsgLwd6wmbbeeFmUfP1tSYkLq/bZEryNx1br7CSMU1EHLow= X-Received: by 2002:a17:902:541:b029:f0:3187:409b with SMTP id 59-20020a1709020541b02900f03187409bmr36247746plf.47.1622039579510; Wed, 26 May 2021 07:32:59 -0700 (PDT) MIME-Version: 1.0 References: <20210512075729.60291-1-masahiroy@kernel.org> In-Reply-To: <20210512075729.60291-1-masahiroy@kernel.org> From: Masahiro Yamada Date: Wed, 26 May 2021 23:32:22 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild To: Linux Kbuild mailing list Cc: Albert Ou , Anton Ivanov , Benjamin Herrenschmidt , Borislav Petkov , Brian Cain , Catalin Marinas , Chris Zankel , Christian Borntraeger , "David S. Miller" , Greentime Hu , Guo Ren , "H. Peter Anvin" , Heiko Carstens , Helge Deller , Ingo Molnar , Ivan Kokshaysky , "James E.J. Bottomley" , Jeff Dike , Jonas Bonn , Ley Foon Tan , Matt Turner , Max Filippov , Michael Ellerman , Michal Marek , Michal Simek , Nick Hu , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , Rich Felker , Richard Henderson , Richard Weinberger , Russell King , Stafford Horne , Stefan Kristiansson , Thomas Bogendoerfer , Thomas Gleixner , Vasily Gorbik , Vincent Chen , Vineet Gupta , Will Deacon , Yoshinori Sato , linux-alpha@vger.kernel.org, linux-arm-kernel , linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , Parisc List , "open list:SIFIVE DRIVERS" , linux-s390 , Linux-sh list , arcml , linux-um@lists.infradead.org, "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , openrisc@lists.librecores.org, sparclinux , "moderated list:H8/300 ARCHITECTURE" , X86 ML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org On Wed, May 12, 2021 at 5:00 PM Masahiro Yamada wrote: > > arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can > use the obj-y syntax. > > Add an empty file if it is missing in arch/$(SRCARCH)/. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Makefile | 2 +- > arch/alpha/Kbuild | 1 + > arch/arc/Makefile | 3 --- > arch/arm/Makefile | 1 - > arch/arm64/Makefile | 1 - > arch/csky/Kbuild | 1 + > arch/h8300/Kbuild | 1 + > arch/hexagon/Kbuild | 1 + > arch/ia64/Kbuild | 1 + > arch/microblaze/Kbuild | 1 + > arch/mips/Makefile | 3 --- > arch/nds32/Kbuild | 1 + > arch/nios2/Kbuild | 1 + > arch/openrisc/Makefile | 1 - > arch/parisc/Kbuild | 1 + > arch/powerpc/Makefile | 3 --- > arch/riscv/Makefile | 1 - > arch/s390/Makefile | 3 --- > arch/sh/Kbuild | 1 + > arch/sparc/Makefile | 3 --- > arch/um/Kbuild | 1 + > arch/x86/Makefile | 3 --- > arch/xtensa/Kbuild | 1 + > 23 files changed, 13 insertions(+), 23 deletions(-) > create mode 100644 arch/alpha/Kbuild > create mode 100644 arch/csky/Kbuild > create mode 100644 arch/h8300/Kbuild > create mode 100644 arch/hexagon/Kbuild > create mode 100644 arch/ia64/Kbuild > create mode 100644 arch/microblaze/Kbuild > create mode 100644 arch/nds32/Kbuild > create mode 100644 arch/nios2/Kbuild > create mode 100644 arch/parisc/Kbuild > create mode 100644 arch/sh/Kbuild > create mode 100644 arch/um/Kbuild > create mode 100644 arch/xtensa/Kbuild > > diff --git a/Makefile b/Makefile > index 15b6476d0f89..7df040b1b023 100644 > --- a/Makefile > +++ b/Makefile > @@ -658,7 +658,7 @@ endif > > ifeq ($(KBUILD_EXTMOD),) > # Objects we will link into vmlinux / subdirs we need to visit > -core-y := init/ usr/ > +core-y := init/ usr/ arch/$(SRCARCH)/ > drivers-y := drivers/ sound/ > drivers-$(CONFIG_SAMPLES) += samples/ > drivers-$(CONFIG_NET) += net/ > diff --git a/arch/alpha/Kbuild b/arch/alpha/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/alpha/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/arc/Makefile b/arch/arc/Makefile > index 4392c9c189c4..3e6d4b84797f 100644 > --- a/arch/arc/Makefile > +++ b/arch/arc/Makefile > @@ -85,9 +85,6 @@ KBUILD_LDFLAGS += $(ldflags-y) > > head-y := arch/arc/kernel/head.o > > -# See arch/arc/Kbuild for content of core part of the kernel > -core-y += arch/arc/ > - > # w/o this dtb won't embed into kernel binary > core-y += arch/arc/boot/dts/ > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 415c3514573a..173da685a52e 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -252,7 +252,6 @@ endif > > export TEXT_OFFSET GZFLAGS MMUEXT > > -core-y += arch/arm/ > # If we have a machine-specific directory, then include it in the build. > core-y += $(machdirs) $(platdirs) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index 7ef44478560d..b73c151f3a53 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -149,7 +149,6 @@ KBUILD_CFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_CPPFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_AFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > > -core-y += arch/arm64/ > libs-y := arch/arm64/lib/ $(libs-y) > libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a > > diff --git a/arch/csky/Kbuild b/arch/csky/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/csky/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/h8300/Kbuild b/arch/h8300/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/h8300/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/hexagon/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/ia64/Kbuild b/arch/ia64/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/ia64/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/microblaze/Kbuild b/arch/microblaze/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/microblaze/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/mips/Makefile b/arch/mips/Makefile > index 258234c35a09..4e942b7ef022 100644 > --- a/arch/mips/Makefile > +++ b/arch/mips/Makefile > @@ -332,9 +332,6 @@ head-y := arch/mips/kernel/head.o > libs-y += arch/mips/lib/ > libs-$(CONFIG_MIPS_FP_SUPPORT) += arch/mips/math-emu/ > > -# See arch/mips/Kbuild for content of core part of the kernel > -core-y += arch/mips/ > - > drivers-y += arch/mips/crypto/ > > # suspend and hibernation support > diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nds32/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/nios2/Kbuild b/arch/nios2/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nios2/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile > index 410e7abfac69..c52de526e518 100644 > --- a/arch/openrisc/Makefile > +++ b/arch/openrisc/Makefile > @@ -42,7 +42,6 @@ endif > > head-y := arch/openrisc/kernel/head.o > > -core-y += arch/openrisc/ > libs-y += $(LIBGCC) > > PHONY += vmlinux.bin > diff --git a/arch/parisc/Kbuild b/arch/parisc/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/parisc/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 3212d076ac6a..af669aa75b73 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -267,9 +267,6 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o > head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o > head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o > > -# See arch/powerpc/Kbuild for content of core part of the kernel > -core-y += arch/powerpc/ > - > # Default to zImage, override when needed > all: zImage > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 3eb9590a0775..c5f359540862 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -90,7 +90,6 @@ endif > > head-y := arch/riscv/kernel/head.o > > -core-y += arch/riscv/ > core-$(CONFIG_RISCV_ERRATA_ALTERNATIVE) += arch/riscv/errata/ > > libs-y += arch/riscv/lib/ > diff --git a/arch/s390/Makefile b/arch/s390/Makefile > index e443ed9947bd..37b61645694c 100644 > --- a/arch/s390/Makefile > +++ b/arch/s390/Makefile > @@ -128,9 +128,6 @@ OBJCOPYFLAGS := -O binary > > head-y := arch/s390/kernel/head64.o > > -# See arch/s390/Kbuild for content of core part of the kernel > -core-y += arch/s390/ > - > libs-y += arch/s390/lib/ > drivers-y += drivers/s390/ > > diff --git a/arch/sh/Kbuild b/arch/sh/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/sh/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile > index bee99e65fe23..4e65245bc755 100644 > --- a/arch/sparc/Makefile > +++ b/arch/sparc/Makefile > @@ -58,9 +58,6 @@ endif > > head-y := arch/sparc/kernel/head_$(BITS).o > > -# See arch/sparc/Kbuild for the core part of the kernel > -core-y += arch/sparc/ > - > libs-y += arch/sparc/prom/ > libs-y += arch/sparc/lib/ > > diff --git a/arch/um/Kbuild b/arch/um/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/um/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index c77c5d8a7b3e..4307bf48ec53 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -239,9 +239,6 @@ head-y += arch/x86/kernel/platform-quirks.o > > libs-y += arch/x86/lib/ > > -# See arch/x86/Kbuild for content of core part of the kernel > -core-y += arch/x86/ > - > # drivers-y are linked after core-y > drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ > drivers-$(CONFIG_PCI) += arch/x86/pci/ > diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/xtensa/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > -- > 2.27.0 > -- Best Regards Masahiro Yamada From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3314AC47088 for ; Wed, 26 May 2021 15:44:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF72561028 for ; Wed, 26 May 2021 15:44:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF72561028 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=50IuIJVCmRoInxTAfkicmh67l1HMqfGg/QaY/0IZg8A=; b=Eg06FK2OyQ/DFk OuueJOFFEOXshdfaNddvjlsmQumMr1457nDAxAkdrljqxatZEWhJAP2KOfYjD4clB80nu4pswDD25 DEYBZP3mHO8Cazl7jv2c1JTLmHznnlFPwU0PgOST90johmydKLAGs828jCg4jROKV1xYK2FGwvI4E o+KfPP9xXF61jlrMttVOLIQdVURN+0uungHHGd3Wgbh1wgsi2vo/E62MK2xlaFhC1/TQDDbOCAc1P Q3GBNh8ALobX2DuNjafuztmQHrtHBDv4b2iW2fUkgr80XHUi1cH5vjCnoCxh8f1JqcR81brIh948X o+nQtE0L9y2zKe9VDEEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1llvh9-00FSym-42; Wed, 26 May 2021 15:43:43 +0000 Received: from conssluserg-02.nifty.com ([210.131.2.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1llubS-00EvQW-Af; Wed, 26 May 2021 14:33:48 +0000 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 14QEXAIR002409; Wed, 26 May 2021 23:33:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 14QEXAIR002409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1622039591; bh=K2JBpUyGmknhlRJpT71wl4Baxz8GsbPi2HBWhe0fUJY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ILDEYKAiQK7B/4DimCTAOYnjsseKaQ1dPgHn31xY8h3UVsgF/C7B6zWQmVjH4DP6F olANctJrD67l+/JOS4RenYe29C9FcSpo3p19WInjceJtm3q4jZ+tOVFx7rzXm0pelz Cu7tqYo3umjioF9yqhM2tldSoriFEyiAouaRsE3BDOLnL3LjJZ8cyof+rwzb/MB95d UIvpJn8LgJIIXLkq4NiDzePLpjORdoXJwZyrpQwd/BerQ4zV0kIWg9SzODezFH+CLy kCJvtezc0vhOkZuzBYkTfq1UYCae6GaKIgVtapxKLnrmmk4MJxIBY3vsXmimQjGLT+ 03l46pK1oQfkQ== X-Nifty-SrcIP: [209.85.214.173] Received: by mail-pl1-f173.google.com with SMTP id u7so714746plq.4; Wed, 26 May 2021 07:33:11 -0700 (PDT) X-Gm-Message-State: AOAM530JSgtq3rr6gFfRPujs3i+vK391Fookfq+t0xw0zFEoU0bDQU9R +Z0erR0cVkItKdFQ88RvJgZccO7XJXhqM8862K4= X-Google-Smtp-Source: ABdhPJw/7i4Yr5Lur94Y0RHgLFU9NY7pValTqlXUvZTdqsgLwd6wmbbeeFmUfP1tSYkLq/bZEryNx1br7CSMU1EHLow= X-Received: by 2002:a17:902:541:b029:f0:3187:409b with SMTP id 59-20020a1709020541b02900f03187409bmr36247746plf.47.1622039579510; Wed, 26 May 2021 07:32:59 -0700 (PDT) MIME-Version: 1.0 References: <20210512075729.60291-1-masahiroy@kernel.org> In-Reply-To: <20210512075729.60291-1-masahiroy@kernel.org> From: Masahiro Yamada Date: Wed, 26 May 2021 23:32:22 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild To: Linux Kbuild mailing list Cc: Albert Ou , Anton Ivanov , Benjamin Herrenschmidt , Borislav Petkov , Brian Cain , Catalin Marinas , Chris Zankel , Christian Borntraeger , "David S. Miller" , Greentime Hu , Guo Ren , "H. Peter Anvin" , Heiko Carstens , Helge Deller , Ingo Molnar , Ivan Kokshaysky , "James E.J. Bottomley" , Jeff Dike , Jonas Bonn , Ley Foon Tan , Matt Turner , Max Filippov , Michael Ellerman , Michal Marek , Michal Simek , Nick Hu , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , Rich Felker , Richard Henderson , Richard Weinberger , Russell King , Stafford Horne , Stefan Kristiansson , Thomas Bogendoerfer , Thomas Gleixner , Vasily Gorbik , Vincent Chen , Vineet Gupta , Will Deacon , Yoshinori Sato , linux-alpha@vger.kernel.org, linux-arm-kernel , linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , Parisc List , "open list:SIFIVE DRIVERS" , linux-s390 , Linux-sh list , arcml , linux-um@lists.infradead.org, "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , openrisc@lists.librecores.org, sparclinux , "moderated list:H8/300 ARCHITECTURE" , X86 ML X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210526_073346_614317_18B2C63F X-CRM114-Status: GOOD ( 24.64 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Wed, May 12, 2021 at 5:00 PM Masahiro Yamada wrote: > > arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can > use the obj-y syntax. > > Add an empty file if it is missing in arch/$(SRCARCH)/. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Makefile | 2 +- > arch/alpha/Kbuild | 1 + > arch/arc/Makefile | 3 --- > arch/arm/Makefile | 1 - > arch/arm64/Makefile | 1 - > arch/csky/Kbuild | 1 + > arch/h8300/Kbuild | 1 + > arch/hexagon/Kbuild | 1 + > arch/ia64/Kbuild | 1 + > arch/microblaze/Kbuild | 1 + > arch/mips/Makefile | 3 --- > arch/nds32/Kbuild | 1 + > arch/nios2/Kbuild | 1 + > arch/openrisc/Makefile | 1 - > arch/parisc/Kbuild | 1 + > arch/powerpc/Makefile | 3 --- > arch/riscv/Makefile | 1 - > arch/s390/Makefile | 3 --- > arch/sh/Kbuild | 1 + > arch/sparc/Makefile | 3 --- > arch/um/Kbuild | 1 + > arch/x86/Makefile | 3 --- > arch/xtensa/Kbuild | 1 + > 23 files changed, 13 insertions(+), 23 deletions(-) > create mode 100644 arch/alpha/Kbuild > create mode 100644 arch/csky/Kbuild > create mode 100644 arch/h8300/Kbuild > create mode 100644 arch/hexagon/Kbuild > create mode 100644 arch/ia64/Kbuild > create mode 100644 arch/microblaze/Kbuild > create mode 100644 arch/nds32/Kbuild > create mode 100644 arch/nios2/Kbuild > create mode 100644 arch/parisc/Kbuild > create mode 100644 arch/sh/Kbuild > create mode 100644 arch/um/Kbuild > create mode 100644 arch/xtensa/Kbuild > > diff --git a/Makefile b/Makefile > index 15b6476d0f89..7df040b1b023 100644 > --- a/Makefile > +++ b/Makefile > @@ -658,7 +658,7 @@ endif > > ifeq ($(KBUILD_EXTMOD),) > # Objects we will link into vmlinux / subdirs we need to visit > -core-y := init/ usr/ > +core-y := init/ usr/ arch/$(SRCARCH)/ > drivers-y := drivers/ sound/ > drivers-$(CONFIG_SAMPLES) += samples/ > drivers-$(CONFIG_NET) += net/ > diff --git a/arch/alpha/Kbuild b/arch/alpha/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/alpha/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/arc/Makefile b/arch/arc/Makefile > index 4392c9c189c4..3e6d4b84797f 100644 > --- a/arch/arc/Makefile > +++ b/arch/arc/Makefile > @@ -85,9 +85,6 @@ KBUILD_LDFLAGS += $(ldflags-y) > > head-y := arch/arc/kernel/head.o > > -# See arch/arc/Kbuild for content of core part of the kernel > -core-y += arch/arc/ > - > # w/o this dtb won't embed into kernel binary > core-y += arch/arc/boot/dts/ > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 415c3514573a..173da685a52e 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -252,7 +252,6 @@ endif > > export TEXT_OFFSET GZFLAGS MMUEXT > > -core-y += arch/arm/ > # If we have a machine-specific directory, then include it in the build. > core-y += $(machdirs) $(platdirs) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index 7ef44478560d..b73c151f3a53 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -149,7 +149,6 @@ KBUILD_CFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_CPPFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_AFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > > -core-y += arch/arm64/ > libs-y := arch/arm64/lib/ $(libs-y) > libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a > > diff --git a/arch/csky/Kbuild b/arch/csky/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/csky/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/h8300/Kbuild b/arch/h8300/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/h8300/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/hexagon/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/ia64/Kbuild b/arch/ia64/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/ia64/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/microblaze/Kbuild b/arch/microblaze/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/microblaze/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/mips/Makefile b/arch/mips/Makefile > index 258234c35a09..4e942b7ef022 100644 > --- a/arch/mips/Makefile > +++ b/arch/mips/Makefile > @@ -332,9 +332,6 @@ head-y := arch/mips/kernel/head.o > libs-y += arch/mips/lib/ > libs-$(CONFIG_MIPS_FP_SUPPORT) += arch/mips/math-emu/ > > -# See arch/mips/Kbuild for content of core part of the kernel > -core-y += arch/mips/ > - > drivers-y += arch/mips/crypto/ > > # suspend and hibernation support > diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nds32/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/nios2/Kbuild b/arch/nios2/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nios2/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile > index 410e7abfac69..c52de526e518 100644 > --- a/arch/openrisc/Makefile > +++ b/arch/openrisc/Makefile > @@ -42,7 +42,6 @@ endif > > head-y := arch/openrisc/kernel/head.o > > -core-y += arch/openrisc/ > libs-y += $(LIBGCC) > > PHONY += vmlinux.bin > diff --git a/arch/parisc/Kbuild b/arch/parisc/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/parisc/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 3212d076ac6a..af669aa75b73 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -267,9 +267,6 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o > head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o > head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o > > -# See arch/powerpc/Kbuild for content of core part of the kernel > -core-y += arch/powerpc/ > - > # Default to zImage, override when needed > all: zImage > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 3eb9590a0775..c5f359540862 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -90,7 +90,6 @@ endif > > head-y := arch/riscv/kernel/head.o > > -core-y += arch/riscv/ > core-$(CONFIG_RISCV_ERRATA_ALTERNATIVE) += arch/riscv/errata/ > > libs-y += arch/riscv/lib/ > diff --git a/arch/s390/Makefile b/arch/s390/Makefile > index e443ed9947bd..37b61645694c 100644 > --- a/arch/s390/Makefile > +++ b/arch/s390/Makefile > @@ -128,9 +128,6 @@ OBJCOPYFLAGS := -O binary > > head-y := arch/s390/kernel/head64.o > > -# See arch/s390/Kbuild for content of core part of the kernel > -core-y += arch/s390/ > - > libs-y += arch/s390/lib/ > drivers-y += drivers/s390/ > > diff --git a/arch/sh/Kbuild b/arch/sh/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/sh/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile > index bee99e65fe23..4e65245bc755 100644 > --- a/arch/sparc/Makefile > +++ b/arch/sparc/Makefile > @@ -58,9 +58,6 @@ endif > > head-y := arch/sparc/kernel/head_$(BITS).o > > -# See arch/sparc/Kbuild for the core part of the kernel > -core-y += arch/sparc/ > - > libs-y += arch/sparc/prom/ > libs-y += arch/sparc/lib/ > > diff --git a/arch/um/Kbuild b/arch/um/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/um/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index c77c5d8a7b3e..4307bf48ec53 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -239,9 +239,6 @@ head-y += arch/x86/kernel/platform-quirks.o > > libs-y += arch/x86/lib/ > > -# See arch/x86/Kbuild for content of core part of the kernel > -core-y += arch/x86/ > - > # drivers-y are linked after core-y > drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ > drivers-$(CONFIG_PCI) += arch/x86/pci/ > diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/xtensa/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > -- > 2.27.0 > -- Best Regards Masahiro Yamada _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F73BC47088 for ; Wed, 26 May 2021 22:06:29 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5CDC4613B0 for ; Wed, 26 May 2021 22:06:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CDC4613B0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Fr4m272wxz301D for ; Thu, 27 May 2021 08:06:26 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=tedR2/J3; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=softfail (domain owner discourages use of this host) smtp.mailfrom=kernel.org (client-ip=210.131.2.90; helo=conssluserg-05.nifty.com; envelope-from=masahiroy@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=tedR2/J3; dkim-atps=neutral Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FqtjY1VGpz2xv8 for ; Thu, 27 May 2021 00:33:36 +1000 (AEST) Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com [209.85.222.47]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 14QEXB3o014766 for ; Wed, 26 May 2021 23:33:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 14QEXB3o014766 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1622039592; bh=K2JBpUyGmknhlRJpT71wl4Baxz8GsbPi2HBWhe0fUJY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tedR2/J3MXbq2+UFof6TW/eBglmgneC4XsqWdbxckP9MaPf/QDGw4OLzyvpynUT0/ O8CvFbSHJ+UUGqhPeedd32O61oMqpnLkC5U/SskyY3TsXKd4ERnDVmK5g5kjc9XRmm 4byyjamSqkclCGIvRcpKR2eBLwK8n9xqdwGULgUp90Y0dWdrxfnSmHzemUvksGYSj7 OoqcFpFbqf77bj8PaZ1sPW+cf0f/9Ckh1G0tEc6eCazslp7BaJF9SgKo1vUgOCT2nP kIkPsdoIW+o5jKcWMBJBDCbaLIAWZY72aDRKYVtATELxQSvaZS3LmL489rdeXs+31a 6bYw+6HJHe/ww== X-Nifty-SrcIP: [209.85.222.47] Received: by mail-ua1-f47.google.com with SMTP id z14so884461uan.7 for ; Wed, 26 May 2021 07:33:11 -0700 (PDT) X-Gm-Message-State: AOAM533pOU375QL2K4Ad3TZUfPDHESA88z82gViVhTT76xrlO73EcVE6 CtfDvlUk6wSU36rZGW50NXL4U1yPl2AdSHk5IZY= X-Google-Smtp-Source: ABdhPJw/7i4Yr5Lur94Y0RHgLFU9NY7pValTqlXUvZTdqsgLwd6wmbbeeFmUfP1tSYkLq/bZEryNx1br7CSMU1EHLow= X-Received: by 2002:a17:902:541:b029:f0:3187:409b with SMTP id 59-20020a1709020541b02900f03187409bmr36247746plf.47.1622039579510; Wed, 26 May 2021 07:32:59 -0700 (PDT) MIME-Version: 1.0 References: <20210512075729.60291-1-masahiroy@kernel.org> In-Reply-To: <20210512075729.60291-1-masahiroy@kernel.org> From: Masahiro Yamada Date: Wed, 26 May 2021 23:32:22 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild To: Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Thu, 27 May 2021 08:06:00 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , linux-ia64@vger.kernel.org, Linux-sh list , "open list:BROADCOM NVRAM DRIVER" , "James E.J. Bottomley" , Max Filippov , Guo Ren , linux-csky@vger.kernel.org, "H. Peter Anvin" , sparclinux , linux-hexagon@vger.kernel.org, "open list:SIFIVE DRIVERS" , Vincent Chen , Will Deacon , Thomas Gleixner , Paul Mackerras , Anton Ivanov , Jonas Bonn , linux-s390 , Brian Cain , Helge Deller , X86 ML , Russell King , Ley Foon Tan , Christian Borntraeger , Ingo Molnar , Parisc List , Catalin Marinas , Matt Turner , arcml , Jeff Dike , "moderated list:H8/300 ARCHITECTURE" , "open list:TENSILICA XTENSA PORT \(xtensa\)" , Albert Ou , Vasily Gorbik , Heiko Carstens , linux-alpha@vger.kernel.org, linux-um@lists.infradead.org, Stefan Kristiansson , Thomas Bogendoerfer , Ivan Kokshaysky , Greentime Hu , Paul Walmsley , Stafford Horne , linux-arm-kernel , Richard Henderson , Chris Zankel , Michal Simek , Michal Marek , Yoshinori Sato , Nick Hu , Vineet Gupta , Linux Kernel Mailing List , openrisc@lists.librecores.org, Palmer Dabbelt , Richard Weinberger , Borislav Petkov , linuxppc-dev , "David S. Miller" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, May 12, 2021 at 5:00 PM Masahiro Yamada wrote: > > arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can > use the obj-y syntax. > > Add an empty file if it is missing in arch/$(SRCARCH)/. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Makefile | 2 +- > arch/alpha/Kbuild | 1 + > arch/arc/Makefile | 3 --- > arch/arm/Makefile | 1 - > arch/arm64/Makefile | 1 - > arch/csky/Kbuild | 1 + > arch/h8300/Kbuild | 1 + > arch/hexagon/Kbuild | 1 + > arch/ia64/Kbuild | 1 + > arch/microblaze/Kbuild | 1 + > arch/mips/Makefile | 3 --- > arch/nds32/Kbuild | 1 + > arch/nios2/Kbuild | 1 + > arch/openrisc/Makefile | 1 - > arch/parisc/Kbuild | 1 + > arch/powerpc/Makefile | 3 --- > arch/riscv/Makefile | 1 - > arch/s390/Makefile | 3 --- > arch/sh/Kbuild | 1 + > arch/sparc/Makefile | 3 --- > arch/um/Kbuild | 1 + > arch/x86/Makefile | 3 --- > arch/xtensa/Kbuild | 1 + > 23 files changed, 13 insertions(+), 23 deletions(-) > create mode 100644 arch/alpha/Kbuild > create mode 100644 arch/csky/Kbuild > create mode 100644 arch/h8300/Kbuild > create mode 100644 arch/hexagon/Kbuild > create mode 100644 arch/ia64/Kbuild > create mode 100644 arch/microblaze/Kbuild > create mode 100644 arch/nds32/Kbuild > create mode 100644 arch/nios2/Kbuild > create mode 100644 arch/parisc/Kbuild > create mode 100644 arch/sh/Kbuild > create mode 100644 arch/um/Kbuild > create mode 100644 arch/xtensa/Kbuild > > diff --git a/Makefile b/Makefile > index 15b6476d0f89..7df040b1b023 100644 > --- a/Makefile > +++ b/Makefile > @@ -658,7 +658,7 @@ endif > > ifeq ($(KBUILD_EXTMOD),) > # Objects we will link into vmlinux / subdirs we need to visit > -core-y := init/ usr/ > +core-y := init/ usr/ arch/$(SRCARCH)/ > drivers-y := drivers/ sound/ > drivers-$(CONFIG_SAMPLES) += samples/ > drivers-$(CONFIG_NET) += net/ > diff --git a/arch/alpha/Kbuild b/arch/alpha/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/alpha/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/arc/Makefile b/arch/arc/Makefile > index 4392c9c189c4..3e6d4b84797f 100644 > --- a/arch/arc/Makefile > +++ b/arch/arc/Makefile > @@ -85,9 +85,6 @@ KBUILD_LDFLAGS += $(ldflags-y) > > head-y := arch/arc/kernel/head.o > > -# See arch/arc/Kbuild for content of core part of the kernel > -core-y += arch/arc/ > - > # w/o this dtb won't embed into kernel binary > core-y += arch/arc/boot/dts/ > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 415c3514573a..173da685a52e 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -252,7 +252,6 @@ endif > > export TEXT_OFFSET GZFLAGS MMUEXT > > -core-y += arch/arm/ > # If we have a machine-specific directory, then include it in the build. > core-y += $(machdirs) $(platdirs) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index 7ef44478560d..b73c151f3a53 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -149,7 +149,6 @@ KBUILD_CFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_CPPFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_AFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > > -core-y += arch/arm64/ > libs-y := arch/arm64/lib/ $(libs-y) > libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a > > diff --git a/arch/csky/Kbuild b/arch/csky/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/csky/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/h8300/Kbuild b/arch/h8300/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/h8300/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/hexagon/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/ia64/Kbuild b/arch/ia64/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/ia64/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/microblaze/Kbuild b/arch/microblaze/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/microblaze/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/mips/Makefile b/arch/mips/Makefile > index 258234c35a09..4e942b7ef022 100644 > --- a/arch/mips/Makefile > +++ b/arch/mips/Makefile > @@ -332,9 +332,6 @@ head-y := arch/mips/kernel/head.o > libs-y += arch/mips/lib/ > libs-$(CONFIG_MIPS_FP_SUPPORT) += arch/mips/math-emu/ > > -# See arch/mips/Kbuild for content of core part of the kernel > -core-y += arch/mips/ > - > drivers-y += arch/mips/crypto/ > > # suspend and hibernation support > diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nds32/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/nios2/Kbuild b/arch/nios2/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nios2/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile > index 410e7abfac69..c52de526e518 100644 > --- a/arch/openrisc/Makefile > +++ b/arch/openrisc/Makefile > @@ -42,7 +42,6 @@ endif > > head-y := arch/openrisc/kernel/head.o > > -core-y += arch/openrisc/ > libs-y += $(LIBGCC) > > PHONY += vmlinux.bin > diff --git a/arch/parisc/Kbuild b/arch/parisc/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/parisc/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 3212d076ac6a..af669aa75b73 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -267,9 +267,6 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o > head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o > head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o > > -# See arch/powerpc/Kbuild for content of core part of the kernel > -core-y += arch/powerpc/ > - > # Default to zImage, override when needed > all: zImage > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 3eb9590a0775..c5f359540862 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -90,7 +90,6 @@ endif > > head-y := arch/riscv/kernel/head.o > > -core-y += arch/riscv/ > core-$(CONFIG_RISCV_ERRATA_ALTERNATIVE) += arch/riscv/errata/ > > libs-y += arch/riscv/lib/ > diff --git a/arch/s390/Makefile b/arch/s390/Makefile > index e443ed9947bd..37b61645694c 100644 > --- a/arch/s390/Makefile > +++ b/arch/s390/Makefile > @@ -128,9 +128,6 @@ OBJCOPYFLAGS := -O binary > > head-y := arch/s390/kernel/head64.o > > -# See arch/s390/Kbuild for content of core part of the kernel > -core-y += arch/s390/ > - > libs-y += arch/s390/lib/ > drivers-y += drivers/s390/ > > diff --git a/arch/sh/Kbuild b/arch/sh/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/sh/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile > index bee99e65fe23..4e65245bc755 100644 > --- a/arch/sparc/Makefile > +++ b/arch/sparc/Makefile > @@ -58,9 +58,6 @@ endif > > head-y := arch/sparc/kernel/head_$(BITS).o > > -# See arch/sparc/Kbuild for the core part of the kernel > -core-y += arch/sparc/ > - > libs-y += arch/sparc/prom/ > libs-y += arch/sparc/lib/ > > diff --git a/arch/um/Kbuild b/arch/um/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/um/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index c77c5d8a7b3e..4307bf48ec53 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -239,9 +239,6 @@ head-y += arch/x86/kernel/platform-quirks.o > > libs-y += arch/x86/lib/ > > -# See arch/x86/Kbuild for content of core part of the kernel > -core-y += arch/x86/ > - > # drivers-y are linked after core-y > drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ > drivers-$(CONFIG_PCI) += arch/x86/pci/ > diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/xtensa/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > -- > 2.27.0 > -- Best Regards Masahiro Yamada From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA76AC47088 for ; Wed, 26 May 2021 15:43:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 724DC613D3 for ; Wed, 26 May 2021 15:43:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 724DC613D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=k52O6TTV0Yzry/fSStJDZNzJU3gnHCvMJboqudF5HLU=; b=Xxg3sKdOTuZxmF U8y5qQ5HF/x8OHOgL5sS28dJ7bq36vFSaQeanPkW44eD/T6exon+YgnMStxtid74RBLkN562OckZC aJzkiD8tDI+/r/OG1j8Z9pK0XKlg3R3dWYKY5ut8po4ziqV18IzN98eYw3LewG1XvtwLZgmuoMDeK S9nDOFlBc6jz7LuMKdbqbRA3gjgFpOsV9jmjFYQKvIrneCkGiKYQpLcceN6g6bbQ+V+2PIP0kq118 oRZgqP+IF1/PrdfvSwuwTZ2hVIlkwTzNPPWD7OFZxnuQsgFKUqahR69WtnlGDnZW5AF9n0dDA67an B50SQA/h/TWaXK3KDHxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1llvhF-00FT2d-TR; Wed, 26 May 2021 15:43:49 +0000 Received: from conssluserg-02.nifty.com ([210.131.2.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1llubS-00EvQW-Af; Wed, 26 May 2021 14:33:48 +0000 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 14QEXAIR002409; Wed, 26 May 2021 23:33:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 14QEXAIR002409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1622039591; bh=K2JBpUyGmknhlRJpT71wl4Baxz8GsbPi2HBWhe0fUJY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ILDEYKAiQK7B/4DimCTAOYnjsseKaQ1dPgHn31xY8h3UVsgF/C7B6zWQmVjH4DP6F olANctJrD67l+/JOS4RenYe29C9FcSpo3p19WInjceJtm3q4jZ+tOVFx7rzXm0pelz Cu7tqYo3umjioF9yqhM2tldSoriFEyiAouaRsE3BDOLnL3LjJZ8cyof+rwzb/MB95d UIvpJn8LgJIIXLkq4NiDzePLpjORdoXJwZyrpQwd/BerQ4zV0kIWg9SzODezFH+CLy kCJvtezc0vhOkZuzBYkTfq1UYCae6GaKIgVtapxKLnrmmk4MJxIBY3vsXmimQjGLT+ 03l46pK1oQfkQ== X-Nifty-SrcIP: [209.85.214.173] Received: by mail-pl1-f173.google.com with SMTP id u7so714746plq.4; Wed, 26 May 2021 07:33:11 -0700 (PDT) X-Gm-Message-State: AOAM530JSgtq3rr6gFfRPujs3i+vK391Fookfq+t0xw0zFEoU0bDQU9R +Z0erR0cVkItKdFQ88RvJgZccO7XJXhqM8862K4= X-Google-Smtp-Source: ABdhPJw/7i4Yr5Lur94Y0RHgLFU9NY7pValTqlXUvZTdqsgLwd6wmbbeeFmUfP1tSYkLq/bZEryNx1br7CSMU1EHLow= X-Received: by 2002:a17:902:541:b029:f0:3187:409b with SMTP id 59-20020a1709020541b02900f03187409bmr36247746plf.47.1622039579510; Wed, 26 May 2021 07:32:59 -0700 (PDT) MIME-Version: 1.0 References: <20210512075729.60291-1-masahiroy@kernel.org> In-Reply-To: <20210512075729.60291-1-masahiroy@kernel.org> From: Masahiro Yamada Date: Wed, 26 May 2021 23:32:22 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild To: Linux Kbuild mailing list Cc: Albert Ou , Anton Ivanov , Benjamin Herrenschmidt , Borislav Petkov , Brian Cain , Catalin Marinas , Chris Zankel , Christian Borntraeger , "David S. Miller" , Greentime Hu , Guo Ren , "H. Peter Anvin" , Heiko Carstens , Helge Deller , Ingo Molnar , Ivan Kokshaysky , "James E.J. Bottomley" , Jeff Dike , Jonas Bonn , Ley Foon Tan , Matt Turner , Max Filippov , Michael Ellerman , Michal Marek , Michal Simek , Nick Hu , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , Rich Felker , Richard Henderson , Richard Weinberger , Russell King , Stafford Horne , Stefan Kristiansson , Thomas Bogendoerfer , Thomas Gleixner , Vasily Gorbik , Vincent Chen , Vineet Gupta , Will Deacon , Yoshinori Sato , linux-alpha@vger.kernel.org, linux-arm-kernel , linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , Parisc List , "open list:SIFIVE DRIVERS" , linux-s390 , Linux-sh list , arcml , linux-um@lists.infradead.org, "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , openrisc@lists.librecores.org, sparclinux , "moderated list:H8/300 ARCHITECTURE" , X86 ML X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210526_073346_614317_18B2C63F X-CRM114-Status: GOOD ( 24.64 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On Wed, May 12, 2021 at 5:00 PM Masahiro Yamada wrote: > > arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can > use the obj-y syntax. > > Add an empty file if it is missing in arch/$(SRCARCH)/. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Makefile | 2 +- > arch/alpha/Kbuild | 1 + > arch/arc/Makefile | 3 --- > arch/arm/Makefile | 1 - > arch/arm64/Makefile | 1 - > arch/csky/Kbuild | 1 + > arch/h8300/Kbuild | 1 + > arch/hexagon/Kbuild | 1 + > arch/ia64/Kbuild | 1 + > arch/microblaze/Kbuild | 1 + > arch/mips/Makefile | 3 --- > arch/nds32/Kbuild | 1 + > arch/nios2/Kbuild | 1 + > arch/openrisc/Makefile | 1 - > arch/parisc/Kbuild | 1 + > arch/powerpc/Makefile | 3 --- > arch/riscv/Makefile | 1 - > arch/s390/Makefile | 3 --- > arch/sh/Kbuild | 1 + > arch/sparc/Makefile | 3 --- > arch/um/Kbuild | 1 + > arch/x86/Makefile | 3 --- > arch/xtensa/Kbuild | 1 + > 23 files changed, 13 insertions(+), 23 deletions(-) > create mode 100644 arch/alpha/Kbuild > create mode 100644 arch/csky/Kbuild > create mode 100644 arch/h8300/Kbuild > create mode 100644 arch/hexagon/Kbuild > create mode 100644 arch/ia64/Kbuild > create mode 100644 arch/microblaze/Kbuild > create mode 100644 arch/nds32/Kbuild > create mode 100644 arch/nios2/Kbuild > create mode 100644 arch/parisc/Kbuild > create mode 100644 arch/sh/Kbuild > create mode 100644 arch/um/Kbuild > create mode 100644 arch/xtensa/Kbuild > > diff --git a/Makefile b/Makefile > index 15b6476d0f89..7df040b1b023 100644 > --- a/Makefile > +++ b/Makefile > @@ -658,7 +658,7 @@ endif > > ifeq ($(KBUILD_EXTMOD),) > # Objects we will link into vmlinux / subdirs we need to visit > -core-y := init/ usr/ > +core-y := init/ usr/ arch/$(SRCARCH)/ > drivers-y := drivers/ sound/ > drivers-$(CONFIG_SAMPLES) += samples/ > drivers-$(CONFIG_NET) += net/ > diff --git a/arch/alpha/Kbuild b/arch/alpha/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/alpha/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/arc/Makefile b/arch/arc/Makefile > index 4392c9c189c4..3e6d4b84797f 100644 > --- a/arch/arc/Makefile > +++ b/arch/arc/Makefile > @@ -85,9 +85,6 @@ KBUILD_LDFLAGS += $(ldflags-y) > > head-y := arch/arc/kernel/head.o > > -# See arch/arc/Kbuild for content of core part of the kernel > -core-y += arch/arc/ > - > # w/o this dtb won't embed into kernel binary > core-y += arch/arc/boot/dts/ > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 415c3514573a..173da685a52e 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -252,7 +252,6 @@ endif > > export TEXT_OFFSET GZFLAGS MMUEXT > > -core-y += arch/arm/ > # If we have a machine-specific directory, then include it in the build. > core-y += $(machdirs) $(platdirs) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index 7ef44478560d..b73c151f3a53 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -149,7 +149,6 @@ KBUILD_CFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_CPPFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_AFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > > -core-y += arch/arm64/ > libs-y := arch/arm64/lib/ $(libs-y) > libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a > > diff --git a/arch/csky/Kbuild b/arch/csky/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/csky/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/h8300/Kbuild b/arch/h8300/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/h8300/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/hexagon/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/ia64/Kbuild b/arch/ia64/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/ia64/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/microblaze/Kbuild b/arch/microblaze/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/microblaze/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/mips/Makefile b/arch/mips/Makefile > index 258234c35a09..4e942b7ef022 100644 > --- a/arch/mips/Makefile > +++ b/arch/mips/Makefile > @@ -332,9 +332,6 @@ head-y := arch/mips/kernel/head.o > libs-y += arch/mips/lib/ > libs-$(CONFIG_MIPS_FP_SUPPORT) += arch/mips/math-emu/ > > -# See arch/mips/Kbuild for content of core part of the kernel > -core-y += arch/mips/ > - > drivers-y += arch/mips/crypto/ > > # suspend and hibernation support > diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nds32/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/nios2/Kbuild b/arch/nios2/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nios2/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile > index 410e7abfac69..c52de526e518 100644 > --- a/arch/openrisc/Makefile > +++ b/arch/openrisc/Makefile > @@ -42,7 +42,6 @@ endif > > head-y := arch/openrisc/kernel/head.o > > -core-y += arch/openrisc/ > libs-y += $(LIBGCC) > > PHONY += vmlinux.bin > diff --git a/arch/parisc/Kbuild b/arch/parisc/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/parisc/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 3212d076ac6a..af669aa75b73 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -267,9 +267,6 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o > head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o > head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o > > -# See arch/powerpc/Kbuild for content of core part of the kernel > -core-y += arch/powerpc/ > - > # Default to zImage, override when needed > all: zImage > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 3eb9590a0775..c5f359540862 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -90,7 +90,6 @@ endif > > head-y := arch/riscv/kernel/head.o > > -core-y += arch/riscv/ > core-$(CONFIG_RISCV_ERRATA_ALTERNATIVE) += arch/riscv/errata/ > > libs-y += arch/riscv/lib/ > diff --git a/arch/s390/Makefile b/arch/s390/Makefile > index e443ed9947bd..37b61645694c 100644 > --- a/arch/s390/Makefile > +++ b/arch/s390/Makefile > @@ -128,9 +128,6 @@ OBJCOPYFLAGS := -O binary > > head-y := arch/s390/kernel/head64.o > > -# See arch/s390/Kbuild for content of core part of the kernel > -core-y += arch/s390/ > - > libs-y += arch/s390/lib/ > drivers-y += drivers/s390/ > > diff --git a/arch/sh/Kbuild b/arch/sh/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/sh/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile > index bee99e65fe23..4e65245bc755 100644 > --- a/arch/sparc/Makefile > +++ b/arch/sparc/Makefile > @@ -58,9 +58,6 @@ endif > > head-y := arch/sparc/kernel/head_$(BITS).o > > -# See arch/sparc/Kbuild for the core part of the kernel > -core-y += arch/sparc/ > - > libs-y += arch/sparc/prom/ > libs-y += arch/sparc/lib/ > > diff --git a/arch/um/Kbuild b/arch/um/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/um/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index c77c5d8a7b3e..4307bf48ec53 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -239,9 +239,6 @@ head-y += arch/x86/kernel/platform-quirks.o > > libs-y += arch/x86/lib/ > > -# See arch/x86/Kbuild for content of core part of the kernel > -core-y += arch/x86/ > - > # drivers-y are linked after core-y > drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ > drivers-$(CONFIG_PCI) += arch/x86/pci/ > diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/xtensa/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > -- > 2.27.0 > -- Best Regards Masahiro Yamada _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Date: Wed, 26 May 2021 23:32:22 +0900 Subject: [OpenRISC] [PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild In-Reply-To: <20210512075729.60291-1-masahiroy@kernel.org> References: <20210512075729.60291-1-masahiroy@kernel.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: openrisc@lists.librecores.org On Wed, May 12, 2021 at 5:00 PM Masahiro Yamada wrote: > > arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can > use the obj-y syntax. > > Add an empty file if it is missing in arch/$(SRCARCH)/. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Makefile | 2 +- > arch/alpha/Kbuild | 1 + > arch/arc/Makefile | 3 --- > arch/arm/Makefile | 1 - > arch/arm64/Makefile | 1 - > arch/csky/Kbuild | 1 + > arch/h8300/Kbuild | 1 + > arch/hexagon/Kbuild | 1 + > arch/ia64/Kbuild | 1 + > arch/microblaze/Kbuild | 1 + > arch/mips/Makefile | 3 --- > arch/nds32/Kbuild | 1 + > arch/nios2/Kbuild | 1 + > arch/openrisc/Makefile | 1 - > arch/parisc/Kbuild | 1 + > arch/powerpc/Makefile | 3 --- > arch/riscv/Makefile | 1 - > arch/s390/Makefile | 3 --- > arch/sh/Kbuild | 1 + > arch/sparc/Makefile | 3 --- > arch/um/Kbuild | 1 + > arch/x86/Makefile | 3 --- > arch/xtensa/Kbuild | 1 + > 23 files changed, 13 insertions(+), 23 deletions(-) > create mode 100644 arch/alpha/Kbuild > create mode 100644 arch/csky/Kbuild > create mode 100644 arch/h8300/Kbuild > create mode 100644 arch/hexagon/Kbuild > create mode 100644 arch/ia64/Kbuild > create mode 100644 arch/microblaze/Kbuild > create mode 100644 arch/nds32/Kbuild > create mode 100644 arch/nios2/Kbuild > create mode 100644 arch/parisc/Kbuild > create mode 100644 arch/sh/Kbuild > create mode 100644 arch/um/Kbuild > create mode 100644 arch/xtensa/Kbuild > > diff --git a/Makefile b/Makefile > index 15b6476d0f89..7df040b1b023 100644 > --- a/Makefile > +++ b/Makefile > @@ -658,7 +658,7 @@ endif > > ifeq ($(KBUILD_EXTMOD),) > # Objects we will link into vmlinux / subdirs we need to visit > -core-y := init/ usr/ > +core-y := init/ usr/ arch/$(SRCARCH)/ > drivers-y := drivers/ sound/ > drivers-$(CONFIG_SAMPLES) += samples/ > drivers-$(CONFIG_NET) += net/ > diff --git a/arch/alpha/Kbuild b/arch/alpha/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/alpha/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/arc/Makefile b/arch/arc/Makefile > index 4392c9c189c4..3e6d4b84797f 100644 > --- a/arch/arc/Makefile > +++ b/arch/arc/Makefile > @@ -85,9 +85,6 @@ KBUILD_LDFLAGS += $(ldflags-y) > > head-y := arch/arc/kernel/head.o > > -# See arch/arc/Kbuild for content of core part of the kernel > -core-y += arch/arc/ > - > # w/o this dtb won't embed into kernel binary > core-y += arch/arc/boot/dts/ > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 415c3514573a..173da685a52e 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -252,7 +252,6 @@ endif > > export TEXT_OFFSET GZFLAGS MMUEXT > > -core-y += arch/arm/ > # If we have a machine-specific directory, then include it in the build. > core-y += $(machdirs) $(platdirs) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index 7ef44478560d..b73c151f3a53 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -149,7 +149,6 @@ KBUILD_CFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_CPPFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_AFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > > -core-y += arch/arm64/ > libs-y := arch/arm64/lib/ $(libs-y) > libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a > > diff --git a/arch/csky/Kbuild b/arch/csky/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/csky/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/h8300/Kbuild b/arch/h8300/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/h8300/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/hexagon/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/ia64/Kbuild b/arch/ia64/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/ia64/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/microblaze/Kbuild b/arch/microblaze/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/microblaze/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/mips/Makefile b/arch/mips/Makefile > index 258234c35a09..4e942b7ef022 100644 > --- a/arch/mips/Makefile > +++ b/arch/mips/Makefile > @@ -332,9 +332,6 @@ head-y := arch/mips/kernel/head.o > libs-y += arch/mips/lib/ > libs-$(CONFIG_MIPS_FP_SUPPORT) += arch/mips/math-emu/ > > -# See arch/mips/Kbuild for content of core part of the kernel > -core-y += arch/mips/ > - > drivers-y += arch/mips/crypto/ > > # suspend and hibernation support > diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nds32/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/nios2/Kbuild b/arch/nios2/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nios2/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile > index 410e7abfac69..c52de526e518 100644 > --- a/arch/openrisc/Makefile > +++ b/arch/openrisc/Makefile > @@ -42,7 +42,6 @@ endif > > head-y := arch/openrisc/kernel/head.o > > -core-y += arch/openrisc/ > libs-y += $(LIBGCC) > > PHONY += vmlinux.bin > diff --git a/arch/parisc/Kbuild b/arch/parisc/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/parisc/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 3212d076ac6a..af669aa75b73 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -267,9 +267,6 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o > head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o > head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o > > -# See arch/powerpc/Kbuild for content of core part of the kernel > -core-y += arch/powerpc/ > - > # Default to zImage, override when needed > all: zImage > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 3eb9590a0775..c5f359540862 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -90,7 +90,6 @@ endif > > head-y := arch/riscv/kernel/head.o > > -core-y += arch/riscv/ > core-$(CONFIG_RISCV_ERRATA_ALTERNATIVE) += arch/riscv/errata/ > > libs-y += arch/riscv/lib/ > diff --git a/arch/s390/Makefile b/arch/s390/Makefile > index e443ed9947bd..37b61645694c 100644 > --- a/arch/s390/Makefile > +++ b/arch/s390/Makefile > @@ -128,9 +128,6 @@ OBJCOPYFLAGS := -O binary > > head-y := arch/s390/kernel/head64.o > > -# See arch/s390/Kbuild for content of core part of the kernel > -core-y += arch/s390/ > - > libs-y += arch/s390/lib/ > drivers-y += drivers/s390/ > > diff --git a/arch/sh/Kbuild b/arch/sh/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/sh/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile > index bee99e65fe23..4e65245bc755 100644 > --- a/arch/sparc/Makefile > +++ b/arch/sparc/Makefile > @@ -58,9 +58,6 @@ endif > > head-y := arch/sparc/kernel/head_$(BITS).o > > -# See arch/sparc/Kbuild for the core part of the kernel > -core-y += arch/sparc/ > - > libs-y += arch/sparc/prom/ > libs-y += arch/sparc/lib/ > > diff --git a/arch/um/Kbuild b/arch/um/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/um/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index c77c5d8a7b3e..4307bf48ec53 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -239,9 +239,6 @@ head-y += arch/x86/kernel/platform-quirks.o > > libs-y += arch/x86/lib/ > > -# See arch/x86/Kbuild for content of core part of the kernel > -core-y += arch/x86/ > - > # drivers-y are linked after core-y > drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ > drivers-$(CONFIG_PCI) += arch/x86/pci/ > diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/xtensa/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > -- > 2.27.0 > -- Best Regards Masahiro Yamada From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 References: <20210512075729.60291-1-masahiroy@kernel.org> In-Reply-To: <20210512075729.60291-1-masahiroy@kernel.org> From: Masahiro Yamada Date: Wed, 26 May 2021 23:32:22 +0900 Message-ID: Subject: Re: [OpenRISC] [PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: openrisc-bounces@lists.librecores.org Sender: "OpenRISC" To: Linux Kbuild mailing list Cc: Rich Felker , linux-ia64@vger.kernel.org, Linux-sh list , Benjamin Herrenschmidt , "open list:BROADCOM NVRAM DRIVER" , "James E.J. Bottomley" , Max Filippov , Guo Ren , linux-csky@vger.kernel.org, "H. Peter Anvin" , sparclinux , linux-hexagon@vger.kernel.org, "open list:SIFIVE DRIVERS" , Vincent Chen , Will Deacon , Thomas Gleixner , Paul Mackerras , Anton Ivanov , Jonas Bonn , linux-s390 , Brian Cain , Michael Ellerman , Helge Deller , X86 ML , Russell King , Ley Foon Tan , Christian Borntraeger , Ingo Molnar , Parisc List , Catalin Marinas , Matt Turner , arcml , Jeff Dike , "moderated list:H8/300 ARCHITECTURE" , "open list:TENSILICA XTENSA PORT (xtensa)" , Albert Ou , Vasily Gorbik , Heiko Carstens , linux-alpha@vger.kernel.org, linux-um@lists.infradead.org, Thomas Bogendoerfer , Ivan Kokshaysky , Greentime Hu , Paul Walmsley , linux-arm-kernel , Chris Zankel , Michal Simek , Michal Marek , Yoshinori Sato , Nick Hu , Vineet Gupta , Linux Kernel Mailing List , openrisc@lists.librecores.org, Palmer Dabbelt , Richard Weinberger , Borislav Petkov , linuxppc-dev , "David S. Miller" List-ID: T24gV2VkLCBNYXkgMTIsIDIwMjEgYXQgNTowMCBQTSBNYXNhaGlybyBZYW1hZGEgPG1hc2FoaXJv eUBrZXJuZWwub3JnPiB3cm90ZToKPgo+IGFyY2gvJChTUkNBUkNIKS9LYnVpbGQga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ni9tYXRoLWVtdS8K PiAgZHJpdmVycy0kKENPTkZJR19QQ0kpICAgICAgICAgICAgKz0gYXJjaC94ODYvcGNpLwo+IGRp ZmYgLS1naXQgYS9hcmNoL3h0ZW5zYS9LYnVpbGQgYi9hcmNoL3h0ZW5zYS9LYnVpbGQKPiBuZXcg ZmlsZSBtb2RlIDEwMDY0NAo+IGluZGV4IDAwMDAwMDAwMDAwMC4uYTRlNDBlNTM0ZTZhCj4gLS0t IC9kZXYvbnVsbAo+ICsrKyBiL2FyY2gveHRlbnNhL0tidWlsZAo+IEBAIC0wLDAgKzEgQEAKPiAr IyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogR1BMLTIuMC1vbmx5Cj4gLS0KPiAyLjI3LjAKPgoK Ci0tIApCZXN0IFJlZ2FyZHMKTWFzYWhpcm8gWWFtYWRhCl9fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fCk9wZW5SSVNDIG1haWxpbmcgbGlzdApPcGVuUklTQ0Bs aXN0cy5saWJyZWNvcmVzLm9yZwpodHRwczovL2xpc3RzLmxpYnJlY29yZXMub3JnL2xpc3RpbmZv L29wZW5yaXNjCg== From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Date: Wed, 26 May 2021 14:32:22 +0000 Subject: Re: [PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild Message-Id: List-Id: References: <20210512075729.60291-1-masahiroy@kernel.org> In-Reply-To: <20210512075729.60291-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linux Kbuild mailing list Cc: Albert Ou , Anton Ivanov , Benjamin Herrenschmidt , Borislav Petkov , Brian Cain , Catalin Marinas , Chris Zankel , Christian Borntraeger , "David S. Miller" , Greentime Hu , Guo Ren , "H. Peter Anvin" , Heiko Carstens , Helge Deller , Ingo Molnar , Ivan Kokshaysky , "James E.J. Bottomley" , Jeff Dike , Jonas Bonn , Ley Foon Tan , Matt Turner , Max Filippov , Michael Ellerman , Michal Marek , Michal Simek , Nick Hu , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , Rich Felker , Richard Henderson , Richard Weinberger , Russell King , Stafford Horne , Stefan Kristiansson , Thomas Bogendoerfer , Thomas Gleixner , Vasily Gorbik , Vincent Chen , Vineet Gupta , Will Deacon , Yoshinori Sato , linux-alpha@vger.kernel.org, linux-arm-kernel , linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , Parisc List , "open list:SIFIVE DRIVERS" , linux-s390 , Linux-sh list , arcml , linux-um@lists.infradead.org, "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , openrisc@lists.librecores.org, sparclinux , "moderated list:H8/300 ARCHITECTURE" , X86 ML On Wed, May 12, 2021 at 5:00 PM Masahiro Yamada wrote: > > arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can > use the obj-y syntax. > > Add an empty file if it is missing in arch/$(SRCARCH)/. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Makefile | 2 +- > arch/alpha/Kbuild | 1 + > arch/arc/Makefile | 3 --- > arch/arm/Makefile | 1 - > arch/arm64/Makefile | 1 - > arch/csky/Kbuild | 1 + > arch/h8300/Kbuild | 1 + > arch/hexagon/Kbuild | 1 + > arch/ia64/Kbuild | 1 + > arch/microblaze/Kbuild | 1 + > arch/mips/Makefile | 3 --- > arch/nds32/Kbuild | 1 + > arch/nios2/Kbuild | 1 + > arch/openrisc/Makefile | 1 - > arch/parisc/Kbuild | 1 + > arch/powerpc/Makefile | 3 --- > arch/riscv/Makefile | 1 - > arch/s390/Makefile | 3 --- > arch/sh/Kbuild | 1 + > arch/sparc/Makefile | 3 --- > arch/um/Kbuild | 1 + > arch/x86/Makefile | 3 --- > arch/xtensa/Kbuild | 1 + > 23 files changed, 13 insertions(+), 23 deletions(-) > create mode 100644 arch/alpha/Kbuild > create mode 100644 arch/csky/Kbuild > create mode 100644 arch/h8300/Kbuild > create mode 100644 arch/hexagon/Kbuild > create mode 100644 arch/ia64/Kbuild > create mode 100644 arch/microblaze/Kbuild > create mode 100644 arch/nds32/Kbuild > create mode 100644 arch/nios2/Kbuild > create mode 100644 arch/parisc/Kbuild > create mode 100644 arch/sh/Kbuild > create mode 100644 arch/um/Kbuild > create mode 100644 arch/xtensa/Kbuild > > diff --git a/Makefile b/Makefile > index 15b6476d0f89..7df040b1b023 100644 > --- a/Makefile > +++ b/Makefile > @@ -658,7 +658,7 @@ endif > > ifeq ($(KBUILD_EXTMOD),) > # Objects we will link into vmlinux / subdirs we need to visit > -core-y := init/ usr/ > +core-y := init/ usr/ arch/$(SRCARCH)/ > drivers-y := drivers/ sound/ > drivers-$(CONFIG_SAMPLES) += samples/ > drivers-$(CONFIG_NET) += net/ > diff --git a/arch/alpha/Kbuild b/arch/alpha/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/alpha/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/arc/Makefile b/arch/arc/Makefile > index 4392c9c189c4..3e6d4b84797f 100644 > --- a/arch/arc/Makefile > +++ b/arch/arc/Makefile > @@ -85,9 +85,6 @@ KBUILD_LDFLAGS += $(ldflags-y) > > head-y := arch/arc/kernel/head.o > > -# See arch/arc/Kbuild for content of core part of the kernel > -core-y += arch/arc/ > - > # w/o this dtb won't embed into kernel binary > core-y += arch/arc/boot/dts/ > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 415c3514573a..173da685a52e 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -252,7 +252,6 @@ endif > > export TEXT_OFFSET GZFLAGS MMUEXT > > -core-y += arch/arm/ > # If we have a machine-specific directory, then include it in the build. > core-y += $(machdirs) $(platdirs) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index 7ef44478560d..b73c151f3a53 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -149,7 +149,6 @@ KBUILD_CFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_CPPFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_AFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > > -core-y += arch/arm64/ > libs-y := arch/arm64/lib/ $(libs-y) > libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a > > diff --git a/arch/csky/Kbuild b/arch/csky/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/csky/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/h8300/Kbuild b/arch/h8300/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/h8300/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/hexagon/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/ia64/Kbuild b/arch/ia64/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/ia64/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/microblaze/Kbuild b/arch/microblaze/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/microblaze/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/mips/Makefile b/arch/mips/Makefile > index 258234c35a09..4e942b7ef022 100644 > --- a/arch/mips/Makefile > +++ b/arch/mips/Makefile > @@ -332,9 +332,6 @@ head-y := arch/mips/kernel/head.o > libs-y += arch/mips/lib/ > libs-$(CONFIG_MIPS_FP_SUPPORT) += arch/mips/math-emu/ > > -# See arch/mips/Kbuild for content of core part of the kernel > -core-y += arch/mips/ > - > drivers-y += arch/mips/crypto/ > > # suspend and hibernation support > diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nds32/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/nios2/Kbuild b/arch/nios2/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nios2/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile > index 410e7abfac69..c52de526e518 100644 > --- a/arch/openrisc/Makefile > +++ b/arch/openrisc/Makefile > @@ -42,7 +42,6 @@ endif > > head-y := arch/openrisc/kernel/head.o > > -core-y += arch/openrisc/ > libs-y += $(LIBGCC) > > PHONY += vmlinux.bin > diff --git a/arch/parisc/Kbuild b/arch/parisc/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/parisc/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 3212d076ac6a..af669aa75b73 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -267,9 +267,6 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o > head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o > head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o > > -# See arch/powerpc/Kbuild for content of core part of the kernel > -core-y += arch/powerpc/ > - > # Default to zImage, override when needed > all: zImage > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 3eb9590a0775..c5f359540862 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -90,7 +90,6 @@ endif > > head-y := arch/riscv/kernel/head.o > > -core-y += arch/riscv/ > core-$(CONFIG_RISCV_ERRATA_ALTERNATIVE) += arch/riscv/errata/ > > libs-y += arch/riscv/lib/ > diff --git a/arch/s390/Makefile b/arch/s390/Makefile > index e443ed9947bd..37b61645694c 100644 > --- a/arch/s390/Makefile > +++ b/arch/s390/Makefile > @@ -128,9 +128,6 @@ OBJCOPYFLAGS := -O binary > > head-y := arch/s390/kernel/head64.o > > -# See arch/s390/Kbuild for content of core part of the kernel > -core-y += arch/s390/ > - > libs-y += arch/s390/lib/ > drivers-y += drivers/s390/ > > diff --git a/arch/sh/Kbuild b/arch/sh/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/sh/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile > index bee99e65fe23..4e65245bc755 100644 > --- a/arch/sparc/Makefile > +++ b/arch/sparc/Makefile > @@ -58,9 +58,6 @@ endif > > head-y := arch/sparc/kernel/head_$(BITS).o > > -# See arch/sparc/Kbuild for the core part of the kernel > -core-y += arch/sparc/ > - > libs-y += arch/sparc/prom/ > libs-y += arch/sparc/lib/ > > diff --git a/arch/um/Kbuild b/arch/um/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/um/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index c77c5d8a7b3e..4307bf48ec53 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -239,9 +239,6 @@ head-y += arch/x86/kernel/platform-quirks.o > > libs-y += arch/x86/lib/ > > -# See arch/x86/Kbuild for content of core part of the kernel > -core-y += arch/x86/ > - > # drivers-y are linked after core-y > drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ > drivers-$(CONFIG_PCI) += arch/x86/pci/ > diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/xtensa/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > -- > 2.27.0 > -- Best Regards Masahiro Yamada From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Subject: Re: [PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild Date: Wed, 26 May 2021 23:32:22 +0900 Message-ID: References: <20210512075729.60291-1-masahiroy@kernel.org> Mime-Version: 1.0 Return-path: DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 14QEX0hZ030416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1622039581; bh=K2JBpUyGmknhlRJpT71wl4Baxz8GsbPi2HBWhe0fUJY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cnmXS+DqWdAPC0p8MNIg0X+ZuRBIktoOUUR+EQB4vPPRCGwGVlLjEGNDw3EmAqZlv xlyoU4qIgALC1L++WZgyjKMXDzp+GxzDeYEL0F6IhJRd7Rpw2XWDIFJ8o7cQRW8BJc 58bmB0Jh48QslQPtKIaufL8A/fujJ7UQngW2AlQLs93Fom+msv11CPKYfc9S8R6atG 3OOPiA7jJYoMBhNmRyZsxR2MDGv0EVvIwT7A7e7yI9l8/pHrO3j3QQFOzjOgPaV2AN D3pbKwvq9+nlzItRdCDnwVjN2eBR7ykeJ5nQmYRfOW40+I524Aqu+Vsx77vDiJBmu1 zIUzibiWGcAvw== In-Reply-To: <20210512075729.60291-1-masahiroy@kernel.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linux Kbuild mailing list Cc: Albert Ou , Anton Ivanov , Benjamin Herrenschmidt , Borislav Petkov , Brian Cain , Catalin Marinas , Chris Zankel , Christian Borntraeger , "David S. Miller" , Greentime Hu , Guo Ren , "H. Peter Anvin" , Heiko Carstens , Helge Deller , Ingo Molnar , Ivan Kokshaysky , "James E.J. Bottomley" , Jeff Dike , Jonas Bonn , Ley Foon Tan On Wed, May 12, 2021 at 5:00 PM Masahiro Yamada wrote: > > arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can > use the obj-y syntax. > > Add an empty file if it is missing in arch/$(SRCARCH)/. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Makefile | 2 +- > arch/alpha/Kbuild | 1 + > arch/arc/Makefile | 3 --- > arch/arm/Makefile | 1 - > arch/arm64/Makefile | 1 - > arch/csky/Kbuild | 1 + > arch/h8300/Kbuild | 1 + > arch/hexagon/Kbuild | 1 + > arch/ia64/Kbuild | 1 + > arch/microblaze/Kbuild | 1 + > arch/mips/Makefile | 3 --- > arch/nds32/Kbuild | 1 + > arch/nios2/Kbuild | 1 + > arch/openrisc/Makefile | 1 - > arch/parisc/Kbuild | 1 + > arch/powerpc/Makefile | 3 --- > arch/riscv/Makefile | 1 - > arch/s390/Makefile | 3 --- > arch/sh/Kbuild | 1 + > arch/sparc/Makefile | 3 --- > arch/um/Kbuild | 1 + > arch/x86/Makefile | 3 --- > arch/xtensa/Kbuild | 1 + > 23 files changed, 13 insertions(+), 23 deletions(-) > create mode 100644 arch/alpha/Kbuild > create mode 100644 arch/csky/Kbuild > create mode 100644 arch/h8300/Kbuild > create mode 100644 arch/hexagon/Kbuild > create mode 100644 arch/ia64/Kbuild > create mode 100644 arch/microblaze/Kbuild > create mode 100644 arch/nds32/Kbuild > create mode 100644 arch/nios2/Kbuild > create mode 100644 arch/parisc/Kbuild > create mode 100644 arch/sh/Kbuild > create mode 100644 arch/um/Kbuild > create mode 100644 arch/xtensa/Kbuild > > diff --git a/Makefile b/Makefile > index 15b6476d0f89..7df040b1b023 100644 > --- a/Makefile > +++ b/Makefile > @@ -658,7 +658,7 @@ endif > > ifeq ($(KBUILD_EXTMOD),) > # Objects we will link into vmlinux / subdirs we need to visit > -core-y := init/ usr/ > +core-y := init/ usr/ arch/$(SRCARCH)/ > drivers-y := drivers/ sound/ > drivers-$(CONFIG_SAMPLES) += samples/ > drivers-$(CONFIG_NET) += net/ > diff --git a/arch/alpha/Kbuild b/arch/alpha/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/alpha/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/arc/Makefile b/arch/arc/Makefile > index 4392c9c189c4..3e6d4b84797f 100644 > --- a/arch/arc/Makefile > +++ b/arch/arc/Makefile > @@ -85,9 +85,6 @@ KBUILD_LDFLAGS += $(ldflags-y) > > head-y := arch/arc/kernel/head.o > > -# See arch/arc/Kbuild for content of core part of the kernel > -core-y += arch/arc/ > - > # w/o this dtb won't embed into kernel binary > core-y += arch/arc/boot/dts/ > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 415c3514573a..173da685a52e 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -252,7 +252,6 @@ endif > > export TEXT_OFFSET GZFLAGS MMUEXT > > -core-y += arch/arm/ > # If we have a machine-specific directory, then include it in the build. > core-y += $(machdirs) $(platdirs) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index 7ef44478560d..b73c151f3a53 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -149,7 +149,6 @@ KBUILD_CFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_CPPFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > KBUILD_AFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT) > > -core-y += arch/arm64/ > libs-y := arch/arm64/lib/ $(libs-y) > libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a > > diff --git a/arch/csky/Kbuild b/arch/csky/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/csky/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/h8300/Kbuild b/arch/h8300/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/h8300/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/hexagon/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/ia64/Kbuild b/arch/ia64/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/ia64/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/microblaze/Kbuild b/arch/microblaze/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/microblaze/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/mips/Makefile b/arch/mips/Makefile > index 258234c35a09..4e942b7ef022 100644 > --- a/arch/mips/Makefile > +++ b/arch/mips/Makefile > @@ -332,9 +332,6 @@ head-y := arch/mips/kernel/head.o > libs-y += arch/mips/lib/ > libs-$(CONFIG_MIPS_FP_SUPPORT) += arch/mips/math-emu/ > > -# See arch/mips/Kbuild for content of core part of the kernel > -core-y += arch/mips/ > - > drivers-y += arch/mips/crypto/ > > # suspend and hibernation support > diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nds32/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/nios2/Kbuild b/arch/nios2/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/nios2/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile > index 410e7abfac69..c52de526e518 100644 > --- a/arch/openrisc/Makefile > +++ b/arch/openrisc/Makefile > @@ -42,7 +42,6 @@ endif > > head-y := arch/openrisc/kernel/head.o > > -core-y += arch/openrisc/ > libs-y += $(LIBGCC) > > PHONY += vmlinux.bin > diff --git a/arch/parisc/Kbuild b/arch/parisc/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/parisc/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 3212d076ac6a..af669aa75b73 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -267,9 +267,6 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o > head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o > head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o > > -# See arch/powerpc/Kbuild for content of core part of the kernel > -core-y += arch/powerpc/ > - > # Default to zImage, override when needed > all: zImage > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 3eb9590a0775..c5f359540862 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -90,7 +90,6 @@ endif > > head-y := arch/riscv/kernel/head.o > > -core-y += arch/riscv/ > core-$(CONFIG_RISCV_ERRATA_ALTERNATIVE) += arch/riscv/errata/ > > libs-y += arch/riscv/lib/ > diff --git a/arch/s390/Makefile b/arch/s390/Makefile > index e443ed9947bd..37b61645694c 100644 > --- a/arch/s390/Makefile > +++ b/arch/s390/Makefile > @@ -128,9 +128,6 @@ OBJCOPYFLAGS := -O binary > > head-y := arch/s390/kernel/head64.o > > -# See arch/s390/Kbuild for content of core part of the kernel > -core-y += arch/s390/ > - > libs-y += arch/s390/lib/ > drivers-y += drivers/s390/ > > diff --git a/arch/sh/Kbuild b/arch/sh/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/sh/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile > index bee99e65fe23..4e65245bc755 100644 > --- a/arch/sparc/Makefile > +++ b/arch/sparc/Makefile > @@ -58,9 +58,6 @@ endif > > head-y := arch/sparc/kernel/head_$(BITS).o > > -# See arch/sparc/Kbuild for the core part of the kernel > -core-y += arch/sparc/ > - > libs-y += arch/sparc/prom/ > libs-y += arch/sparc/lib/ > > diff --git a/arch/um/Kbuild b/arch/um/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/um/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index c77c5d8a7b3e..4307bf48ec53 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -239,9 +239,6 @@ head-y += arch/x86/kernel/platform-quirks.o > > libs-y += arch/x86/lib/ > > -# See arch/x86/Kbuild for content of core part of the kernel > -core-y += arch/x86/ > - > # drivers-y are linked after core-y > drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ > drivers-$(CONFIG_PCI) += arch/x86/pci/ > diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild > new file mode 100644 > index 000000000000..a4e40e534e6a > --- /dev/null > +++ b/arch/xtensa/Kbuild > @@ -0,0 +1 @@ > +# SPDX-License-Identifier: GPL-2.0-only > -- > 2.27.0 > -- Best Regards Masahiro Yamada