Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1110321ybl; Wed, 28 Aug 2019 09:46:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVrYzJtfMaY94AwXJZ2f3VONB66DV+KUC1aHzpXo6atL/HOT2fbCQwPR34TIU4VBNvF1aO X-Received: by 2002:a63:6947:: with SMTP id e68mr4351133pgc.60.1567010776781; Wed, 28 Aug 2019 09:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567010776; cv=none; d=google.com; s=arc-20160816; b=A5lXyYPxk6PxVRt2R9zw02tEgKC96QKJjvzIedLgghVhyxf2pDjsgcjBwLFx4rjoXW 5QC6yrl0mXfulWeu63dRX4FKTM4GE5BiRMmwmAlc7d3u7OI7W2zhOm1Yd4z1evpgthj2 S0U0aQpN/uGrMqsSy/25TvGG8XzP+LadGTU+n3J4FSA+QZJSj5saPtxaj8IX0EQhLUfa wKGzxjPr5Cffox+R8M7b9KpbzQtoHQl89q4Xkv/tmsAGLpx2Q/r5mXwx+NM+FnL/fSQB wnDj0/k5kI7EypS8OU3XDJu0zhyW/tZDUqLb9iSaCi7z16FOzQtB1a9tUfFPH1wDys3c zGJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=+iR2wGeB3ADz18zgAyOrpJCFTT9CHJCP8dcmnyGJwvs=; b=HeL+IuwUaf4EDaxmnuQgKJBTdWLYHZBmslHel8NdDrr1dpDh7TU1Ze4Br+WOSwKdii 0otlLIVsxUeMg1Np3rDa3K2IOA7BMJZqraUAjfqIpBvvTDggockJ0+dx0DSX4sDztjqJ kLmP5LsUntkzTt3xopqHKAnwzpEpI4k8qF571OIWy+IXjM0WJQE3UIlR60jhgBtoPEeY BkXKg1vrx6Tj72zRl8iqNXtdoPNJC6pgtnZIwd0MxFa3AECLXyrTeF3Nw0l4i9/vpv0y e2aMrj+f4b4xhga2xBls76JP4cxmCogZHy0f0yXyy6ZeG3Zys9KjveAMLT0k509lD9q5 FVMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=edIjBueo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si2480869pgs.415.2019.08.28.09.46.00; Wed, 28 Aug 2019 09:46:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=edIjBueo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726946AbfH1QoS (ORCPT + 99 others); Wed, 28 Aug 2019 12:44:18 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:50291 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbfH1QoR (ORCPT ); Wed, 28 Aug 2019 12:44:17 -0400 Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x7SGhuDU003279; Thu, 29 Aug 2019 01:43:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x7SGhuDU003279 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567010637; bh=+iR2wGeB3ADz18zgAyOrpJCFTT9CHJCP8dcmnyGJwvs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=edIjBueoXPfrTuXqzqsgCqHEbSZvpndN0QckeBuAvljwoLk3eF/HKsEFosLWl1lwf SZWEgIc4Gg7TLe1DsKovEisZ4srJzndZZpSjIbE9S2fOS9xWnzpfv9J27pujmCdcF/ 8iJnHGqLELREaxwD8KqtfQuuc3GHfrU0Ivhr/QoIXNjfHMTHcY7B+y15WU+siIJNdE Vbjm6dsaK6C71jybGtONrHYQxZSp5a2p6JzvabrhSGwDK1yjoHIzrSM8S8JmowjrJJ 6u3Eyw64fffKzufj55kOqhWRPf727TTH4tHW2+wV/qVz0okZm8pO/oABMJl2zJ4TU5 ye/B5PHnsoOGQ== X-Nifty-SrcIP: [209.85.222.42] Received: by mail-ua1-f42.google.com with SMTP id n13so190570uap.9; Wed, 28 Aug 2019 09:43:57 -0700 (PDT) X-Gm-Message-State: APjAAAU2tF1dDZrUlqRpfGR/N0sZBH/9erH5BFtw1/65AtYI6pIMlJWX e5oQXoOQriw1u8wz8rlNZ4ccwAIUNrHDfW3GnZc= X-Received: by 2002:ab0:32d8:: with SMTP id f24mr2537777uao.121.1567010636117; Wed, 28 Aug 2019 09:43:56 -0700 (PDT) MIME-Version: 1.0 References: <20190821070205.8297-1-yamada.masahiro@socionext.com> In-Reply-To: <20190821070205.8297-1-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Thu, 29 Aug 2019 01:43:19 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] kbuild: pkg: clean up package files/dirs from the top Makefile To: Linux Kbuild mailing list Cc: Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 21, 2019 at 4:02 PM Masahiro Yamada wrote: > > I am not a big fan of the $(objtree)/ hack for clean-files/clean-dirs. > > These are created in the top of $(objtree), so let's clean them up > from the top Makefile. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Makefile | 6 ++++-- > scripts/Makefile | 2 +- > scripts/package/Makefile | 9 --------- > 3 files changed, 5 insertions(+), 12 deletions(-) > > diff --git a/Makefile b/Makefile > index 5d202ad1481a..e88d4fcd5e87 100644 > --- a/Makefile > +++ b/Makefile > @@ -1389,12 +1389,14 @@ CLEAN_FILES += modules.builtin.modinfo > > # Directories & files removed with 'make mrproper' > MRPROPER_DIRS += include/config include/generated \ > - arch/$(SRCARCH)/include/generated .tmp_objdiff > + arch/$(SRCARCH)/include/generated .tmp_objdiff \ > + debian/ snap/ tar-install/ > MRPROPER_FILES += .config .config.old .version \ > Module.symvers \ > signing_key.pem signing_key.priv signing_key.x509 \ > x509.genkey extra_certificates signing_key.x509.keyid \ > - signing_key.x509.signer vmlinux-gdb.py > + signing_key.x509.signer vmlinux-gdb.py \ > + *.spec > > # Directories & files removed with 'make distclean' > DISTCLEAN_DIRS += > diff --git a/scripts/Makefile b/scripts/Makefile > index 16bcb8087899..c42891e10ba3 100644 > --- a/scripts/Makefile > +++ b/scripts/Makefile > @@ -36,4 +36,4 @@ subdir-$(CONFIG_MODVERSIONS) += genksyms > subdir-$(CONFIG_SECURITY_SELINUX) += selinux > > # Let clean descend into subdirs > -subdir- += basic dtc gdb kconfig mod package > +subdir- += basic dtc gdb kconfig mod > diff --git a/scripts/package/Makefile b/scripts/package/Makefile > index ca7f46b562a4..a2d8830f54be 100644 > --- a/scripts/package/Makefile > +++ b/scripts/package/Makefile > @@ -65,8 +65,6 @@ binrpm-pkg: FORCE > +rpmbuild $(RPMOPTS) --define "_builddir $(objtree)" --target \ > $(UTS_MACHINE) -bb $(objtree)/binkernel.spec > > -clean-files += $(objtree)/*.spec > - > deb-pkg: FORCE > $(MAKE) clean > $(CONFIG_SHELL) $(srctree)/scripts/package/mkdebian > @@ -82,8 +80,6 @@ bindeb-pkg: FORCE > intdeb-pkg: FORCE > +$(CONFIG_SHELL) $(srctree)/scripts/package/builddeb > > -clean-dirs += $(objtree)/debian/ > - > # snap-pkg > # --------------------------------------------------------------------------- > snap-pkg: FORCE > @@ -98,17 +94,12 @@ snap-pkg: FORCE > cd $(objtree)/snap && \ > snapcraft --target-arch=$(UTS_MACHINE) > > -clean-dirs += $(objtree)/snap/ > - > # tarball targets > # --------------------------------------------------------------------------- > tar%pkg: FORCE > $(MAKE) -f $(srctree)/Makefile > +$(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@ > > -clean-dirs += $(objtree)/tar-install/ > - > - > # perf-pkg - generate a source tarball with perf source > # --------------------------------------------------------------------------- > > -- > 2.17.1 > -- Best Regards Masahiro Yamada