Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp564143pxb; Fri, 13 Aug 2021 00:58:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCosUdDkJabnNQ9UlO2LsLCuFu2FWSDXem2i09s5VEWhTB/pL+CyZC1VdijZ7V7d+N9v+1 X-Received: by 2002:a17:906:fc6:: with SMTP id c6mr1197363ejk.65.1628841509473; Fri, 13 Aug 2021 00:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628841509; cv=none; d=google.com; s=arc-20160816; b=zNgVuSfe6UlR+Acx/Uj6PG9Jr6fPuPQuUWIjl8HhMao6SV4Qq3RrIdj7eW9aW71Jl6 CAcwf/vOQ70MIG21YStatK0+CCWUUlquPU15FZ3BSp64RUfVCc8f2kZ+P7tJWMNxoXTV DlrVxw/L+MQQKBbfRO5z2MlvyHb95B75e1QGR35+5cgAM3lWtCN9axcPfJ56tpRWMIp6 +HyJLRsgTtJ3BjRqeNK/s/khmbAPZ2RRxMVy1Uq7rrxFpvfbrOSvG1G9jOK1eleu9x6a 67mbZNp3rcYIOXUI8ORnFW2jjCKpMdQCwMtryN+lDlU4szRN3imV3/WrzkSfxSaVGpks ZbSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GK8wq/IOiIxJgDvCUYvsZ+KqziS3kB0R8RP8IZKkltI=; b=GQwXC+VjK7tgpgaC9cXgkMq2xQEsm2vn3uoZXbXLwBtZvIMfUU3ZSanU+DPU+C35co ZxqXuqbH276ahk3gUk+2/Wx/0t+wg0Oiwcm+gnSA0hBiCCKu+JAhPHAE7CnuA7sFCDSo vGv9B3FC3UmCLp95lWjuv0pYk2FcplS6j34b8blYEp+0CgXcyWZdlvXk3CBd8G78bJM/ DqyMnQwnXqe9QOTw0hpg9ABntKJbgXwv9o333TpDPiUZqngNv7JZnvseb1yIl2y3qLwX H6Mkv9eqzNC1MbdyiY5sH0fG3g6rYQ/5ET1fbKLidxof3aSAWXLNRpzeahQ7iX8+hjEs GUFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LdtOhIxb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u3si914759edx.412.2021.08.13.00.58.06; Fri, 13 Aug 2021 00:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LdtOhIxb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239377AbhHMHwX (ORCPT + 99 others); Fri, 13 Aug 2021 03:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235010AbhHMHwW (ORCPT ); Fri, 13 Aug 2021 03:52:22 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA5D3C061756 for ; Fri, 13 Aug 2021 00:51:55 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id d11so16770128eja.8 for ; Fri, 13 Aug 2021 00:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GK8wq/IOiIxJgDvCUYvsZ+KqziS3kB0R8RP8IZKkltI=; b=LdtOhIxb3CQdyFtsCx0t8s7ZbjdhMVfRroj6e9Bu0C5sIfiz3QfG18dDkFFOms71X7 YzdoijNa4rlLVY35Q8Q9s4USIA8xIwu701vncDGBzNCTS9TmPv5S2gNXY3FjysdKL8Bm BfQexaZb9NyOxuE4q+vCMX88srriox7DrdTY68dNcshfDwzcBGveIfAOpXyjtMXwcwyD hrzt+SofXy3JYCi0qad59fBxLsVOiC0ebfeig7sY1mIc43y1VmxVWG6xdi8FyUOG4u2g yEzYIZ9AqqGAWVS7GcokAufeK3LczPFuW+EfClBOx+45MhjdS3xB+xxh0uIzfavVVzqQ JSJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GK8wq/IOiIxJgDvCUYvsZ+KqziS3kB0R8RP8IZKkltI=; b=fIx1TtndKdvGzr+egr0nhQhuLbw8pmxEemohU/OaBYfKZovg2M9C8WoqFzkslYnJyo XacQFpBL9z+r4qMyDQ5HOFGH78Xrki5v5Uv4r4bJrQqCpJQVGJ7rMojHg1PyYdWcvLo5 sEyUk86D1OQ7Ru8wBvRnzVqZi7ntsHDkz5dqJEfDscQZAz9tUSM0AHEfpz1uLcec3SX1 c25iTpvIpNAmQlmGYxzcKYSlb5RHseRhXt7yc/yf0fNJpPr7HX4wugHXSINGhJ4dPZgO oIl0czRM/mUj8I1JpxT8xeCjpb4bMUxU2tpLr+PJP5DJTRu+KgF0ac0YTMbzjberY8t0 RH6w== X-Gm-Message-State: AOAM533DYRExjkhmnCuodoniGYOKeYskAXu0FNumgpgjntIXCAkt/U7Y 2Mi4izpoEnWLJY7nj7FCkOa87FJP0Sd23Rx5mdc= X-Received: by 2002:a17:907:2096:: with SMTP id pv22mr1220682ejb.443.1628841114413; Fri, 13 Aug 2021 00:51:54 -0700 (PDT) MIME-Version: 1.0 References: <20210811163731.186125-1-masahiroy@kernel.org> <20210811163731.186125-4-masahiroy@kernel.org> In-Reply-To: From: Max Filippov Date: Fri, 13 Aug 2021 00:51:43 -0700 Message-ID: Subject: Re: [PATCH 4/4] xtensa: move core-y in arch/xtensa/Makefile to arch/xtensa/Kbuild To: Masahiro Yamada Cc: Chris Zankel , "open list:TENSILICA XTENSA PORT (xtensa)" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 13, 2021 at 12:10 AM Masahiro Yamada wrote: > > On Fri, Aug 13, 2021 at 2:32 PM Max Filippov wrote: > > > > On Wed, Aug 11, 2021 at 9:38 AM Masahiro Yamada wrote: > > > > > > Use obj-y to clean up Makefile. > > > > > > Signed-off-by: Masahiro Yamada > > > --- > > > > > > arch/xtensa/Kbuild | 1 + > > > arch/xtensa/Makefile | 3 --- > > > arch/xtensa/platforms/Makefile | 4 ++++ > > > 3 files changed, 5 insertions(+), 3 deletions(-) > > > create mode 100644 arch/xtensa/platforms/Makefile > > > > > > diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild > > > index a4e40e534e6a..fd12f61745ba 100644 > > > --- a/arch/xtensa/Kbuild > > > +++ b/arch/xtensa/Kbuild > > > @@ -1 +1,2 @@ > > > # SPDX-License-Identifier: GPL-2.0-only > > > +obj-y += kernel/ mm/ platforms/ boot/dts/ > > > diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile > > > index 093e87b889be..96714ef7c89e 100644 > > > --- a/arch/xtensa/Makefile > > > +++ b/arch/xtensa/Makefile > > > @@ -58,9 +58,6 @@ KBUILD_DEFCONFIG := iss_defconfig > > > LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) > > > > > > head-y := arch/xtensa/kernel/head.o > > > -core-y += arch/xtensa/kernel/ arch/xtensa/mm/ > > > -core-y += arch/xtensa/platforms/$(platform-y)/ > > > -core-y += arch/xtensa/boot/dts/ > > > > > > libs-y += arch/xtensa/lib/ $(LIBGCC) > > > > > > diff --git a/arch/xtensa/platforms/Makefile b/arch/xtensa/platforms/Makefile > > > new file mode 100644 > > > index 000000000000..e2e7e0726979 > > > --- /dev/null > > > +++ b/arch/xtensa/platforms/Makefile > > > @@ -0,0 +1,4 @@ > > > +# SPDX-License-Identifier: GPL-2.0-only > > > +obj-$(CONFIG_XTENSA_PLATFORM_XT2000) += xt2000/ > > > +obj-$(CONFIG_XTENSA_PLATFORM_ISS) += iss/ > > > +obj-$(CONFIG_XTENSA_PLATFORM_XTFPGA) += xtfpga/ > > > > With this change platform directory names are duplicated in two > > makefiles. Can we move them to Kconfig with something like the > > following (on top of this change)? > > I do not like the idea much for the following reasons. Ok, thanks for the explanation. Applied the original patch to my xtensa tree. -- Thanks. -- Max