Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp336164ybl; Tue, 20 Aug 2019 21:15:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7FhmOEgKxDX5lsFyqXzx/3fQpqs3KNF31v86QnAQHmL3KcPMVJuAyvu0kT4LZqEVP2f67 X-Received: by 2002:aa7:851a:: with SMTP id v26mr33071388pfn.238.1566360950834; Tue, 20 Aug 2019 21:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566360950; cv=none; d=google.com; s=arc-20160816; b=xzfDIz2S9SsHC8tBtWJIFRRD9sXjBezg3nYkL12AmfbTgIPt3Kjp9/T70039AU1PZM v4C71K1ESlRjQUXSZGjD/tLyx5JEutQE+rMxw7x28FhqU6ck9fnSDIMKKDjqDIATbico PUz1kLWeeGi68cIMMBHrmMkzWeIwJMu+eDJ9LoH4WOR/qg0lZoAX5AxzxpiUa/Pb2zP6 8HitIzja/e/ov4zJmqKS9/C1BI21cuaYHhYJqRPnex56kjpS0AkoegGD+DRQLdoplkLN 1gG16aZb+dRzf7Jrlb3B9xgilTyYYVzjBZ9jUw8QiUesghYGVC7Wu6xEeUqHU49H86se ZrJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=rG1uzD+ZsouFnScMd+YS+lbLIqKukipCyXFlBuBls/8=; b=pbJF16kWDZVERHWQh/1T0T6LlkNSyJSZPN192DcIEAgT1/ahMSlQ4Yz85umIhqUH+E w98qwW6EeNfJEPm3ORIoyIMMWnH5h7IUr3nsQbgddkVAWg3FSqKkm/PRN1qGhBxUqIbJ H+CDDukio0SyE6jJ4rAHD3w1/krjqd/baviXzSWaOurK4ILZUejzEuRn4kUb4T1XfDSh OYjuR/mxdIulXZax3BZ+0pTr5mygBY6D1cKJiNSWNb7C4VzH//rxaANTOOAQwb1y6uZ8 PhE3t/ykOU5w8gyEMRj8T2azcuHUOPQS2LgdOQZdRPAaSfFhz66je2AnPYZP9yIyfnb0 w/Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="otT/vRdp"; 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 g11si14459302pfi.282.2019.08.20.21.15.35; Tue, 20 Aug 2019 21:15:50 -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="otT/vRdp"; 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 S1727448AbfHUENW (ORCPT + 99 others); Wed, 21 Aug 2019 00:13:22 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:47118 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbfHUENV (ORCPT ); Wed, 21 Aug 2019 00:13:21 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x7L4CeQC002060; Wed, 21 Aug 2019 13:12:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x7L4CeQC002060 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1566360762; bh=rG1uzD+ZsouFnScMd+YS+lbLIqKukipCyXFlBuBls/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=otT/vRdpFvNnROJNxtb+yU1E8OIA+ohk3ZhRjZVkvdwKeQK3pyBNLr257cnxw4aV9 BY5C3ijhHysdD8e1TMUJwFmlzkA3oV2Tl5bHUtGSQusH1VGiKzzjsIRP9+2T5teMNK iRvkAMXe6eY38W2otcXUIRKhHcq3Mt/8Et9sKxWb6gIM/FH0qTFIo8bXRs6oom2mAA 77iz3S6axA0pmj66S+0HDqul4F81OSvxXXymEbMlUJdAlzGzWrRVILuHMmtYpA+eLQ MN1GGOfFzrLdEa7pLkv0w7/xYT9H2Xua4SqWnoWrC9wymBHG2hth4SaTF9NtDHLq2y 8Kh4660PXf+Yw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Cc: Geert Uytterhoeven , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] video/logo: do not generate unneeded logo C files Date: Wed, 21 Aug 2019 13:12:35 +0900 Message-Id: <20190821041237.23197-3-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190821041237.23197-1-yamada.masahiro@socionext.com> References: <20190821041237.23197-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, all the logo C files are generated irrespective of the CONFIG options. Adding them to extra-y is wrong. What we need to do here is to add them to 'targets' so that if_changed works properly. Files listed in 'targets' are cleaned, so clean-files is unneeded. Signed-off-by: Masahiro Yamada --- Changes in v2: - Fix commit log drivers/video/logo/Makefile | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/drivers/video/logo/Makefile b/drivers/video/logo/Makefile index 10b75ce3ce09..16f60c1e1766 100644 --- a/drivers/video/logo/Makefile +++ b/drivers/video/logo/Makefile @@ -18,23 +18,6 @@ obj-$(CONFIG_SPU_BASE) += logo_spe_clut224.o # How to generate logo's -# Use logo-cfiles to retrieve list of .c files to be built -logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \ - $(wildcard $(srctree)/$(src)/*$(1).$(2)))) - - -# Mono logos -extra-y += $(call logo-cfiles,_mono,pbm) - -# VGA16 logos -extra-y += $(call logo-cfiles,_vga16,ppm) - -# 224 Logos -extra-y += $(call logo-cfiles,_clut224,ppm) - -# Gray 256 -extra-y += $(call logo-cfiles,_gray256,pgm) - pnmtologo := scripts/pnmtologo # Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..." @@ -55,5 +38,5 @@ $(obj)/%_clut224.c: $(src)/%_clut224.ppm $(pnmtologo) FORCE $(obj)/%_gray256.c: $(src)/%_gray256.pgm $(pnmtologo) FORCE $(call if_changed,logo) -# Files generated that shall be removed upon make clean -clean-files := *_mono.c *_vga16.c *_clut224.c *_gray256.c +# generated C files +targets += *_mono.c *_vga16.c *_clut224.c *_gray256.c -- 2.17.1