From patchwork Wed Aug 21 04:12:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 171907 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp434067ily; Tue, 20 Aug 2019 21:13:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQZgjkJXnAN4bybrlDKd5XkmK5xS36T+Rh+rGz1N3v4RyZdYQjCLCGnE/6HVO16CY40PUh X-Received: by 2002:a65:6256:: with SMTP id q22mr27641914pgv.408.1566360802476; Tue, 20 Aug 2019 21:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566360802; cv=none; d=google.com; s=arc-20160816; b=LA+9MbkccGPJjcmh2TfK/4mEF8L4Rmb1IbhoqsMUq3l10vFuaR3p69jtB7RjsCMXat f11Pser/M3n9/9GnvDkfBcZdKV8rU2loqrLkVss+OKFpbCGg2Tldp8MwYTJzPsREB+bu Dar/zA2Pvs9Tjpkgj1fqzkRnvLomV3v2hA3ywpCdVEjrtWUzQKTavo3BbGOKBE83Zupr yNCHJxG83Slbt9hwhSH++vn4mXy/LSx06cEGds/5zs9dA2QclgVFNeH16LSuAsOq7q+0 9uuT3zB+0HwNGS9LzyEywmvYPA7NDCcqRZG2Z0BfnhuLI3FmPzXV+99nE2hGJUpKIHSs eKzQ== 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=UAdCLf/Xa6AA5SSQWY1/S5R9i+1VYfYVg7Od7NTX21oOeXJkbGiw10bwaSCuQGLfYl VPe1Su700023voEBeVbACyOo8b0Yk1PVovtz5dJFGstM9JFIxT7vtz4ae5Wneiz8JBUr XSrQHs2gfF+dD4wKXMUQYdI7PclJTkWnBmT6e5FyFVRQnn/5BONBiOqyZb4JOuXDaVv7 RoOuNOGC9MZ+gJa0N02orT4i1LDO1lV3ZK5nDsqAceT/P0/4AWsfvpDmCOMua5pjVvCT WJ66vTl405CNtqUai+vE4q+PYwOQJb1QBKz8whR6wILMiFd8K7+FFL5o4jHOgXaFTM2a +9wA== 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-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-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 e24si13622187pgn.544.2019.08.20.21.13.22 for ; Tue, 20 Aug 2019 21:13:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-fbdev-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-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727359AbfHUENV (ORCPT ); Wed, 21 Aug 2019 00:13:21 -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-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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(-) -- 2.17.1 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