From patchwork Fri Jan 5 11:55:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 123506 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp720235qgn; Fri, 5 Jan 2018 03:56:52 -0800 (PST) X-Google-Smtp-Source: ACJfBovqMO00B0gFcFQzeVvSHMlr6JzH5d3ERQK0yLDBKY4M1sLHQZtuHYoGl2hT9fR3XceYRV9j X-Received: by 10.159.253.143 with SMTP id q15mr2939230pls.32.1515153412834; Fri, 05 Jan 2018 03:56:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515153412; cv=none; d=google.com; s=arc-20160816; b=f3zqRn+/LDh8CxvbBQfBAPce+/zMNwNf1XrJ0y/mUzT6G3esz1O2YmoJQzyB4y9njO C1O3ESObfd6cRvrgbe1Pl4o/v/9qZVf+44Jf+YRYtWi2pYclFyjzQemfU8ijNKAdvesV nhceEXFx8YUgKTvzeuaymaTlAiwMsPa7NypNq10nUgJfryNPhFT/yoedtKQ0tVnICtKy 41Plb3h6tN1jfhm1vu+b0s9jEOmdWzk1+AxKbk+TFhjPGAIkwCiZvweR944fT3O31Tvi v0vyOm83YTVhGdqjymGA4NtWLvZTytYvXpK2lWd5fIkh2fWk+RqahGESRa6GtHUYGBPX RrMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=ClrTP/+y6xO+x4m7bo9chACG1wMqywTX6dYlMH8jYRY=; b=WgqMvJAisIpdwFefrHP445+lPJQ2fbdHxtgiEgFeVFLDM0TbOkBf2NnE7p1SbEjVpx KmpKJkiMGKv4Qd0RylbRSPWC1Jocl+QAfC2unLYtME3E+UEuuS5BFKUaCAxaSUSnCDpM pSFOY1cmB0iWp0JwPApBgRBzhVOR8w6JgfdGyti/AERmOHD9mAROd/gv8Wg89MF1O1r8 oV5yVL5cOqHBTlYY0PIPaLLlTnwl1Lz+MikRSJcTVba2DODK/xnNtrawjEJWQMdESQnF 5J0N4E9JoPe/U+lmiRyDYehL8C6f3P6mqjsP3df1mOtuGt+sMaCXOCY/QZ6m47twwLd3 LYBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=EXdIiXNn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 r59si3888028plb.59.2018.01.05.03.56.52; Fri, 05 Jan 2018 03:56:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=EXdIiXNn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751594AbeAEL4v (ORCPT + 6 others); Fri, 5 Jan 2018 06:56:51 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:16637 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751074AbeAEL4v (ORCPT ); Fri, 5 Jan 2018 06:56:51 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id w05Btafw032409; Fri, 5 Jan 2018 20:55:37 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w05Btafw032409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1515153337; bh=/3OPnwfdSTknEHwcE01vTiweg9L95BFKOj1E00573Js=; h=From:To:Cc:Subject:Date:From; b=EXdIiXNn+HtuEgU+rLSS9FKTtMbaSUTklvOPmjb5LPpszpTK53ILq5QKfzZr/hPwZ 07cjYeSIx5DN3CFOITrgyPpbpeODSt7s0FgH+gj3Oerk22KoKSpG5ZCicnlfjWlaun OTIKEeA2SFXg9Mv+dQ8Db4iZvPpu+pXdgYLCbpGjjrhDfhERuboDf+H/K2zCN/bXdu ypA8vWqza4li3ty11Cd95yB1lllfTy1nw4KBUosm1jSV2Bpx2a8Pi4lPVqniHBg8c/ Ln98427R/Bgt+nrOcvxWTGrcFxcBGvnQ4RqyPsH/c/lxpWIeFoq6ECla9Y1wcXpbgq OVshy9LWVxLtg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: devicetree@vger.kernel.org, Rob Herring Cc: Masahiro Yamada , linux-kernel@vger.kernel.org, Thomas Gleixner , Greg Kroah-Hartman , Rob Herring , Frank Rowand Subject: [PATCH] of: unittest: refactor Makefile Date: Fri, 5 Jan 2018 20:55:30 +0900 Message-Id: <1515153330-11810-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Some cleanups: - use obj-$(CONFIG_OF_OVERLAY) instead of ifdef ... endif - compute targets from obj-y Signed-off-by: Masahiro Yamada --- drivers/of/unittest-data/Makefile | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/of/unittest-data/Makefile b/drivers/of/unittest-data/Makefile index 32389ac..df69797 100644 --- a/drivers/of/unittest-data/Makefile +++ b/drivers/of/unittest-data/Makefile @@ -2,19 +2,12 @@ DTC_FLAGS_testcases := -Wno-interrupts_property obj-y += testcases.dtb.o -targets += testcases.dtb testcases.dtb.S +obj-$(CONFIG_OF_OVERLAY) += overlay.dtb.o \ + overlay_bad_phandle.dtb.o \ + overlay_bad_symbol.dtb.o \ + overlay_base.dtb.o -ifdef CONFIG_OF_OVERLAY - -obj-y += overlay.dtb.o -obj-y += overlay_bad_phandle.dtb.o -obj-y += overlay_bad_symbol.dtb.o -obj-y += overlay_base.dtb.o - -targets += overlay.dtb overlay.dtb.S -targets += overlay_bad_phandle.dtb overlay_bad_phandle.dtb.S -targets += overlay_bad_symbol.dtb overlay_bad_symbol.dtb.S -targets += overlay_base.dtb overlay_base.dtb.S +targets += $(foreach suffix, dtb dtb.S, $(patsubst %.dtb.o,%.$(suffix),$(obj-y))) # enable creation of __symbols__ node DTC_FLAGS_overlay := -@ @@ -22,8 +15,6 @@ DTC_FLAGS_overlay_bad_phandle := -@ DTC_FLAGS_overlay_bad_symbol := -@ DTC_FLAGS_overlay_base := -@ -endif - .PRECIOUS: \ $(obj)/%.dtb.S \ $(obj)/%.dtb