Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp331138ybl; Tue, 20 Aug 2019 21:09:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxH2m2IRIZM2i5xcaKjU/mqr7aUtOJoVqo1MS/it+uYoIJFoubdt4k6VN1bdm44EYdVEUrs X-Received: by 2002:a17:902:b285:: with SMTP id u5mr31317558plr.329.1566360565228; Tue, 20 Aug 2019 21:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566360565; cv=none; d=google.com; s=arc-20160816; b=jI47NCdw8qO5aGwXhWig7WKwb7vRWHZxYVOFW1mmj4S4btbcoUxjgxzRpScehKw+zy tzvTVaq+Xru/7e5JXOObzFdZOgd03Q52niAR2djh+AsLj/+muMxo7MTuETjkjqDIyHL2 n9x6zUS4QaH3d4yaTENv7W0c0O0uQvG87JU/+ieYWaj6EC9fUskBOWg80yLawjE+Au9u j6SWwxdIZCbuHiVyF7/li55SfmojEc4RYdgOnuFayPA7xwFt21n7KT9jyx7penjTRJsU o71UJHlPCcRkbHzC7aHuToQ45yGWDmBEUg7CJ+5bC+cKmSEvpIAYm7hIUZRx5Uy9cshy sbxw== 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=muuXnYLKetb5cxC3kfdv57DMCKDIXml15bwOXhq/nJs=; b=fOOXK7xzT1KqniMJbxiTdo5aNqzLraD7CTR6iYypfntoVq7qbDhTkGGM8+J/cjCXHz pgmDV0TP6N45l1usTE4dz8etZkcX6wRACZtA2Z06Jk98gAFC0zFqHtUSD1bRcrobLC90 II5O4zO8vxQZM3Ii26dROPK1qBVPUX/ABvitRIm810rEJj0ftmNvlNJNiyT/C7MJ3wJF QvOblaonRrr3sIA4shSdGSMRkJ9q4qOpR+DRG4Qdl50AahpUGCKi9LxKLBmpUA8X7VXA L3z4JKiwbHoB10/28LtR2Z5X5LdGTHWGzOLrEeEvitH+0xb/y8TPqJ6r9LkHqlyv3xuC Jygw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=mIVjIYDx; 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 k22si14309295pfi.289.2019.08.20.21.09.09; Tue, 20 Aug 2019 21:09:25 -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=mIVjIYDx; 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 S1727433AbfHUEGr (ORCPT + 99 others); Wed, 21 Aug 2019 00:06:47 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:53128 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfHUEGq (ORCPT ); Wed, 21 Aug 2019 00:06:46 -0400 Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x7L46Mfm004949; Wed, 21 Aug 2019 13:06:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x7L46Mfm004949 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1566360383; bh=muuXnYLKetb5cxC3kfdv57DMCKDIXml15bwOXhq/nJs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mIVjIYDxZc9Lbo+4Rn79AO8sNgIFjPug562CXh6JT/1+QQoJrDq0RZqPqa5OyYTxB IQzNZdOH6Eo4H7Q2o9vMv9+M6AUh3QtB3n09xY3D3oln30lNJY+fzYn9tS7f1MVE74 wDCGQ+SuiSiaZH5rqEpXzH+27/fwcIP5I6aUvrlKr5H6PC7o/EUx6EmpGaRXCi0jpD XNlC3xqnW1gNpH63f12U1BtwfCQiwfjDFaIj3xmKK1wVN1p+Y3SanSgEMrgM+cU1HP 7GQZBmBtn8l2CM24dqlNC+knxlXE5bzNrOl4AIYIwJYB7yEXLtBOGOvFQC6HSW/p/j yTkUu7oxybCdg== X-Nifty-SrcIP: [209.85.217.45] Received: by mail-vs1-f45.google.com with SMTP id j25so452434vsq.12; Tue, 20 Aug 2019 21:06:22 -0700 (PDT) X-Gm-Message-State: APjAAAXbKsU3X5JsLp5O+EnyT45yOl1ME5GdhBfGgFJ+TlB7jLtUSPCw yxPt7t6iKRDmU69MlpWzjOalixsKI3xKxpvNi1k= X-Received: by 2002:a67:fe12:: with SMTP id l18mr4861186vsr.54.1566360381493; Tue, 20 Aug 2019 21:06:21 -0700 (PDT) MIME-Version: 1.0 References: <20190821035517.21671-1-yamada.masahiro@socionext.com> <20190821035517.21671-3-yamada.masahiro@socionext.com> In-Reply-To: <20190821035517.21671-3-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Wed, 21 Aug 2019 13:05:45 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] video/logo: fix unneeded generation of font C files To: Bartlomiej Zolnierkiewicz , dri-devel , linux-fbdev@vger.kernel.org Cc: Geert Uytterhoeven , 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 12:56 PM Masahiro Yamada wrote: I will replace 'font' -> 'logo'. (My brain was corrupted.) > Currently, all the font C files are generated irrespective of 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. > > All files listed in 'targets' are cleaned, so clean-files is unneeded. > > Signed-off-by: Masahiro Yamada > --- > > 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 > -- Best Regards Masahiro Yamada