Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp92341ybl; Tue, 7 Jan 2020 02:48:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxAa4IXLf9ceWHCViyOJqrKt+MpdYEVU5ihaz7rXVMUIsk3nz5B30fvuHMGs/Bk+8kegJ+4 X-Received: by 2002:a05:6830:ce:: with SMTP id x14mr106428738oto.289.1578394100039; Tue, 07 Jan 2020 02:48:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578394100; cv=none; d=google.com; s=arc-20160816; b=zK85+a8o+mviBvUp3qcR3t9rHbco3tcuBO8WT6v4pA6hehXbctXuJriJkRou7elTm4 RlMm0QyNbvcYNOFafh5N8CsNOJfGTGrcHax/e75jW8KwQs51/DKx2P5EJ6kwoEtpxuhd 9DGsFjiWkmp17hl6pB8W66RinAKplgDALEQwq15VF68ZQSHySOP/4ldl/W7SAVMg99Qf SZCamP4rJbNaHn6ARMOoMLCDvYtExGbriz7/sFeOgEiLdVkGa4PKxneDCdbBYTbcVZlp BCTdhOxqw+wBFLI5HzLMNqNSZJpR5t1N12gskWImvpOXoASrfNeX6pmu5UtgGTH3B7B/ +0WQ== 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=OYNGV4JvNCCmwqcWZMh74h89ilsmJbXDDxowiwIXyfc=; b=neOe73z+zN/scJOrOiQLMLf1pxe2HSlnHYzSavu7atr4MxbT1ieEuKq1Kv3WLr9FEg Yjs6dROqaxtUNhHDnQQvifbidKuGcBr+JaHHq3XEh+PF2YRC0Qve6qunX6AgE+4a5612 avZMNmrW/6mjpoZxnuB+acl4/CMyN6j9nPoJa26q2hg5IYAXqLiybq+ly9jyDdoA7Ehn cxwlR7A8+rRoB81E0fvvlqtU2lq3leWN7jc6a2vl6FI2oyO5EzVuYt9wM7BPMPJE9awy jbMTlP524Hhc6p671wq1lXtu60Va3b07VRbgyAovYGhaE+EkoW913t4/TSPKkVo5sOX2 qQqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=oNK6akEl; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si36100792otk.177.2020.01.07.02.48.06; Tue, 07 Jan 2020 02:48:20 -0800 (PST) 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=oNK6akEl; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727836AbgAGKrU (ORCPT + 99 others); Tue, 7 Jan 2020 05:47:20 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:54127 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727658AbgAGKrT (ORCPT ); Tue, 7 Jan 2020 05:47:19 -0500 Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 007Al5UM008952; Tue, 7 Jan 2020 19:47:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 007Al5UM008952 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1578394026; bh=OYNGV4JvNCCmwqcWZMh74h89ilsmJbXDDxowiwIXyfc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=oNK6akEl9+VaXgqOCIv/Yj2Hy8K2Vx0Wx+KeZOq59aU0cZ6OMr0JOelff7VugJ5b3 0r0+Qx4v32juhRTUdXsZIYHq9hIzbPchR9qxN/DoZV4xiQNqSD4kRH8XVd54tUUFz1 SFxuprGGx2J88DumBZx1xmBauZV7L3gdij8tvM8MdW+XiJMzZjIHJFpT9dI482S0So JVUIGQM+arnEzliiA5WJNvMnGD4XyRjaVzMN92w9kl8NEZ/Lkv1hUh8TMXgNBkdVCU YraJUL3NiUEqk3SVQrpujf+d/zfWlYuZ1EqMOXJD+lDrKwPqEPBBiUepV8UrSiq0AX 2VVxwVH7dY92g== X-Nifty-SrcIP: [209.85.217.41] Received: by mail-vs1-f41.google.com with SMTP id g15so33605107vsf.1; Tue, 07 Jan 2020 02:47:06 -0800 (PST) X-Gm-Message-State: APjAAAUhyRPPYKq+Wv//NWSvpX2rE1mVlm0l+dtKgFI7LfQFAmjRG1BT 2gAaxukJd/J7Oc60GqCvJzjL/CBxgZuhfEP1SDU= X-Received: by 2002:a05:6102:190:: with SMTP id r16mr54996236vsq.215.1578394025191; Tue, 07 Jan 2020 02:47:05 -0800 (PST) MIME-Version: 1.0 References: <20200104150238.19834-1-masahiroy@kernel.org> <20200104150238.19834-2-masahiroy@kernel.org> In-Reply-To: <20200104150238.19834-2-masahiroy@kernel.org> From: Masahiro Yamada Date: Tue, 7 Jan 2020 19:46:29 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 01/13] initramfs: replace klibcdirs in Makefile with FORCE To: Linux Kbuild mailing list Cc: Andrew Morton , Greg Thelen , Sam Ravnborg , Linux Kernel Mailing List , Ben Hutchings , "H. Peter Anvin" 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 (+CC: Ben Hutchings, H. Peter Anvin) On Sun, Jan 5, 2020 at 12:03 AM Masahiro Yamada wrote: > > 'klibcdirs' was added by commit d39a206bc35d ("kbuild: rebuild initramfs > if content of initramfs changes"). If this is just a matter of forcing > execution of the recipe line, we can replace it with FORCE. > > I do not understand the purpose of > > $(deps_initramfs): klibcdirs Perhaps, the 'klibcdirs' target might be intended to control the directory descending in case klibc is dropped in the kernel tree. Anyway, klibc is built independently of Linux kernel, and this 'klibcdirs' target is just a no-op stub as far as the kernel tree is concerned. Clean it up. > Remove it. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: > - New patch (I forgot to submit this in v1 series) > > usr/Makefile | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/usr/Makefile b/usr/Makefile > index e6f7cb2f81db..55c942da01cd 100644 > --- a/usr/Makefile > +++ b/usr/Makefile > @@ -3,9 +3,6 @@ > # kbuild file for usr/ - including initramfs image > # > > -klibcdirs:; > -PHONY += klibcdirs > - > suffix_y = $(subst $\",,$(CONFIG_INITRAMFS_COMPRESSION)) > datafile_y = initramfs_data.cpio$(suffix_y) > datafile_d_y = .$(datafile_y).d > @@ -50,13 +47,12 @@ targets := $(datafile_y) > # do not try to update files included in initramfs > $(deps_initramfs): ; > > -$(deps_initramfs): klibcdirs > # We rebuild initramfs_data.cpio if: > # 1) Any included file is newer than initramfs_data.cpio > # 2) There are changes in which files are included (added or deleted) > # 3) If gen_init_cpio are newer than initramfs_data.cpio > # 4) Arguments to gen_initramfs.sh changes > -$(obj)/$(datafile_y): $(obj)/gen_init_cpio $(deps_initramfs) klibcdirs > +$(obj)/$(datafile_y): $(obj)/gen_init_cpio $(deps_initramfs) FORCE > $(Q)$(initramfs) -l $(ramfs-input) > $(obj)/$(datafile_d_y) > $(call if_changed,initfs) > > -- > 2.17.1 > -- Best Regards Masahiro Yamada