Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1616916pxb; Wed, 9 Feb 2022 00:11:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjydeLeZzRCtfGlrWYa6rwwdxgweUDcJbMmmufc5Gu5Kq498zVJDk7QveeTKTdp6Y1LuvF X-Received: by 2002:a17:902:da82:: with SMTP id j2mr1055419plx.27.1644394306397; Wed, 09 Feb 2022 00:11:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644394306; cv=none; d=google.com; s=arc-20160816; b=ICnyzMzIL7Jq8X4M8KXVn+SOqRDPUb4MJxb2lYB5qPoNd1WHVh9SouzSNuZEQITM8M JacpGwiSvnAYg8ntVpJ3nhrE+a/x5BeQmVabW8vU8h8jUR+1y7bWJ+rKVGlWl5xnes+/ C1M6oiHKj7ihAZvPm5cdYDBOl66dHJjeZ3aMH27D+TeiUI9NE2zOPDUVfEEnihh0bfdD 0sHCXagZ8ICV9c/SpGnNVniTXZMeSurNxZhZzsZo2ABOvgAc/e9xutkZuhYfwOYc9xWi eNhrTXzKw3FVEuz6vJExHQ0Va8UKhS8NZqdajqmqt07SSKn8Osju5BMZtLZJxW2uXnR6 uuXw== 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:dkim-filter; bh=j+aPXdq2sicmNcexcHQA/oJ6M8by9veF/5qbR5FdEAM=; b=OMhC4r2jJum9A51+1/TtsYHP6x5ilM1/S2K4FkXpWaEaxjsVnKhbmsbCyPaTPRW81I LdBnobZQuZwhIk4gTtwv3HbKrNGtI070hMJCzEPf0aboBAzjqCu2dUkA3sLoVIj53eMu YUI2ab7XvrkuV2ioQYWHG8KrnzsrVUTAhKQSMMTFIAje4pi5g9H8nAvxL1q0CNOfdyci QfC1RtsVb/cV+XPARb+7OOtaPrBcmi/46pO38T8Q6G2meSNLWqbFgf/Cug4ycVL9HcAv 8y1APM97ep9l2635FcE+afbEA3HvJxd9xRwyQ/8Nrac9Qm9CXG+O8ax+rdR9Zv9Ijpx0 bndQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rVvdXfg3; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p41si15160629pfh.140.2022.02.09.00.11.33; Wed, 09 Feb 2022 00:11:46 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=rVvdXfg3; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346768AbiBHELw (ORCPT + 99 others); Mon, 7 Feb 2022 23:11:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346236AbiBHELu (ORCPT ); Mon, 7 Feb 2022 23:11:50 -0500 Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 109D0C0401DC; Mon, 7 Feb 2022 20:11:48 -0800 (PST) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 2184BHd9013266; Tue, 8 Feb 2022 13:11:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 2184BHd9013266 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1644293478; bh=j+aPXdq2sicmNcexcHQA/oJ6M8by9veF/5qbR5FdEAM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=rVvdXfg38TArY3w3QYhn1Uw2hhDdN5Q+UFPtxx+zqe7FFMjw60XeWxqYl/jhsH6Td EpytE8eF0T4lDLkue7Df/JP/Ku/x6xfFejGNjJCv2/1GMKcvLbplFLAE1iB3IrLACv b9qaTVnlKugwrFoBGsmzS/4xv6ksUkFpm5JJ8rGUAt1IS+1Pdvot7IXojMYqsargrp OxHZHRRvbDCpHWIoQhcDrmFWCQ1iHrgA/dtMJOkN8pIW6jlLwU9AYVxwVOg1LpRfhq KNkJUkxYZ8U4d083XxnYc7BNegV0EugcJpQF0aUN6eBbfRDU9HTM9TGfyEUC+0j4Uy 26HiHcqm0MJnw== X-Nifty-SrcIP: [209.85.216.52] Received: by mail-pj1-f52.google.com with SMTP id om7so1827244pjb.5; Mon, 07 Feb 2022 20:11:17 -0800 (PST) X-Gm-Message-State: AOAM532ZYqPmMVPTAoC75lm8n0vvgfIGp8LG17v0fSusYJaJEUlLANnW bCc7hLz3QD59P1i6UyzGsYOxDchkmzYvMsVfU14= X-Received: by 2002:a17:903:22cd:: with SMTP id y13mr2749421plg.99.1644293476950; Mon, 07 Feb 2022 20:11:16 -0800 (PST) MIME-Version: 1.0 References: <20220125064027.873131-1-masahiroy@kernel.org> <87h79rsbxe.fsf@collabora.com> In-Reply-To: From: Masahiro Yamada Date: Tue, 8 Feb 2022 13:10:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: unify cmd_copy and cmd_shipped To: Gabriel Krisman Bertazi Cc: Nick Desaulniers , Linux Kbuild mailing list , Michal Marek , Michal Simek , Rob Herring , DTML , Linux FS-devel Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 26, 2022 at 11:19 AM Masahiro Yamada wrote: > > On Wed, Jan 26, 2022 at 7:11 AM Gabriel Krisman Bertazi > wrote: > > > > Nick Desaulniers writes: > > > > > On Mon, Jan 24, 2022 at 10:41 PM Masahiro Yamada wrote: > > >> > > >> cmd_copy and cmd_shipped have similar functionality. The difference is > > >> that cmd_copy uses 'cp' while cmd_shipped 'cat'. > > >> > > >> Unify them into cmd_copy because this macro name is more intuitive. > > >> > > >> Going forward, cmd_copy will use 'cat' to avoid the permission issue. > > >> I also thought of 'cp --no-preserve=mode' but this option is not > > >> mentioned in the POSIX spec [1], so I am keeping the 'cat' command. > > >> > > >> [1]: https://pubs.opengroup.org/onlinepubs/009695299/utilities/cp.html > > >> Signed-off-by: Masahiro Yamada Applied to linux-kbuild. > > >> --- > > >> > > >> arch/microblaze/boot/Makefile | 2 +- > > >> arch/microblaze/boot/dts/Makefile | 2 +- > > >> fs/unicode/Makefile | 2 +- > > >> scripts/Makefile.lib | 12 ++++-------- > > >> usr/Makefile | 4 ++-- > > >> 5 files changed, 9 insertions(+), 13 deletions(-) > > >> > > >> diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile > > >> index cff570a71946..2b42c370d574 100644 > > >> --- a/arch/microblaze/boot/Makefile > > >> +++ b/arch/microblaze/boot/Makefile > > >> @@ -29,7 +29,7 @@ $(obj)/simpleImage.$(DTB).ub: $(obj)/simpleImage.$(DTB) FORCE > > >> $(call if_changed,uimage) > > >> > > >> $(obj)/simpleImage.$(DTB).unstrip: vmlinux FORCE > > >> - $(call if_changed,shipped) > > >> + $(call if_changed,copy) > > >> > > >> $(obj)/simpleImage.$(DTB).strip: vmlinux FORCE > > >> $(call if_changed,strip) > > >> diff --git a/arch/microblaze/boot/dts/Makefile b/arch/microblaze/boot/dts/Makefile > > >> index ef00dd30d19a..b84e2cbb20ee 100644 > > >> --- a/arch/microblaze/boot/dts/Makefile > > >> +++ b/arch/microblaze/boot/dts/Makefile > > >> @@ -12,7 +12,7 @@ $(obj)/linked_dtb.o: $(obj)/system.dtb > > >> # Generate system.dtb from $(DTB).dtb > > >> ifneq ($(DTB),system) > > >> $(obj)/system.dtb: $(obj)/$(DTB).dtb > > >> - $(call if_changed,shipped) > > >> + $(call if_changed,copy) > > >> endif > > >> endif > > >> > > >> diff --git a/fs/unicode/Makefile b/fs/unicode/Makefile > > >> index 2f9d9188852b..74ae80fc3a36 100644 > > >> --- a/fs/unicode/Makefile > > >> +++ b/fs/unicode/Makefile > > >> @@ -31,7 +31,7 @@ $(obj)/utf8data.c: $(obj)/mkutf8data $(filter %.txt, $(cmd_utf8data)) FORCE > > >> else > > >> > > >> $(obj)/utf8data.c: $(src)/utf8data.c_shipped FORCE > > > > > > do we want to retitle the _shipped suffix for this file to _copy now, too? > > > fs/unicode/Makefile:11 > > > fs/unicode/Makefile:33 > > > fs/unicode/Makefile:34 > > > > I think _copy doesn't convey the sense that this is distributed with the > > kernel tree, even though it is also generated from in-tree sources. > > Even if that is not the original sense of _shipped (is it?), it makes > > sense to me that way, but _copy doesn't. > > > > The patch looks good to me, though. > > > > Reviewed-by: Gabriel Krisman Bertazi > > > > > > > > > I only renamed the action part (cmd_shipped -> cmd_copy) > because I thought it was clearer. > > Actually I do not get the sense of _shipped pretty much, but > I think we can keep the file suffix part (utf8data.c_shipped) as is. > > > -- > Best Regards > Masahiro Yamada -- Best Regards Masahiro Yamada