Received: by 10.192.165.156 with SMTP id m28csp729541imm; Mon, 16 Apr 2018 07:50:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+SgOnHSjX6Gyli15ffnUb7McMwtOJ0OAUpvIikyp7rau0ndZ9qoCh0hqUUNS1+m806CGL4 X-Received: by 2002:a17:902:30f:: with SMTP id 15-v6mr15699259pld.365.1523890236966; Mon, 16 Apr 2018 07:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523890236; cv=none; d=google.com; s=arc-20160816; b=l4M3GLWTf+3zNv69+hI5gEogf/vzbkRsE4LGPtMnYPe/5UMAca0wUbnEPeHB3T3H2N ZBWiaNhpB/dCv/kfk4imbRgzVuYgcVXro9aKKpQm9cz7pIutTZG7w29mtrgjdCwU5SOg G/XACp/Gqvhx+cTPdrnjeddTS4tq/EX+CemC5aZAzHWqcazZmfgIOM947VkZ4n7v/FD+ AUAmpaNtDqEOg5VjLaGb2DJiNrwXUpqwp4DHt5Y2g3WdME4x5SoMtMkICEVruU7l6jsO ffoFZnHbS7GjSKELL2jqIiX8sL6LqSD6t5fm7R+maC1QNlkXRfb0JiTwoQg+Pqns2Wac xFuA== 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 :arc-authentication-results; bh=AL+AYw4+X1BQcUmTpdgvByIJRIFE7yRBsMSNpOqkwEQ=; b=a8b6Gcy52SY5bZi07YR7nof5Dz1W/PLVLEmhLxequ2EBkl+0Ivo4eKwpSBaSfvh32s ewxrOONXC0GHjh6N9uyUEAseArmzqjwFe3bmCIJmPSIieY2FNSfpoDMJ8P5wSJSfJqYN wyG//uiP3YyJaFf/CmEGhcxKx2EGzGjBt72G8zJ0qNOzBdqeCG4woy+kCHQetaNW7Y2L KwSkzYfKWlb7uGvzioC7nmrvQM4cOhg8UZjzKvnGjfinuSG3BZ0vuuijvgaxlRLJJSVo v9Sw6jg2xlkVpYW7lqTz7zcoGDYwBACt27F4m7ZznXf4WvGPL3q2AFhL69VpD//oTgon vJ4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=u5BxkN4k; 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 l12si9638302pgc.438.2018.04.16.07.50.23; Mon, 16 Apr 2018 07:50:36 -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=u5BxkN4k; 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 S1752999AbeDPOtL (ORCPT + 99 others); Mon, 16 Apr 2018 10:49:11 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:62357 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752736AbeDPOtF (ORCPT ); Mon, 16 Apr 2018 10:49:05 -0400 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-10.nifty.com with ESMTP id w3GElqtu017749; Mon, 16 Apr 2018 23:47:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w3GElqtu017749 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1523890079; bh=AL+AYw4+X1BQcUmTpdgvByIJRIFE7yRBsMSNpOqkwEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u5BxkN4kzTtJ+DX+AcGYz6ix1UGYTl3pizjODDgPfmJ8BK/zBrYho7kfUHhkJuakf NUfWnzRJIcdVA3sgN7ThdCZVS08hKJwsmihMpIYl15hNi76Uuh8ubfbBL1H7U84065 lndyVZ1rLeyYgMwqLmmkuuDMsR3A62a5/SMF/+9LDFswrzcBfEultjSv8HefbCKByt uOCUtoifR1Yyc3Lhnze8zZbkuY8HlkQe9RMurtHDcGv9vux4PAdwM4jTjLC+EZGVeo tu0cIGaIWL9BNfl2mtnHtC2lUha++d/Odyyuo3tMO4zKnK4QvsMyVlSWv46qkwD9nX yqRQC+DbfaeDw== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: Ralf Baechle , James Hogan , linux-mips@linux-mips.org Cc: Paul Burton , Masahiro Yamada , Kees Cook , linux-kernel@vger.kernel.org Subject: [PATCH 6/7] MIPS: boot: merge build rules of vmlinux.*.itb by using pattern rule Date: Mon, 16 Apr 2018 23:47:46 +0900 Message-Id: <1523890067-13641-7-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523890067-13641-1-git-send-email-yamada.masahiro@socionext.com> References: <1523890067-13641-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Merge the build rule of vmlinux.{gz,bz2,lzma,lzo}.itb, and also move 'targets' close to the related code. Signed-off-by: Masahiro Yamada --- arch/mips/boot/Makefile | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/arch/mips/boot/Makefile b/arch/mips/boot/Makefile index 91d9fe8..d102d53 100644 --- a/arch/mips/boot/Makefile +++ b/arch/mips/boot/Makefile @@ -105,12 +105,6 @@ $(obj)/uImage: $(obj)/uImage.$(suffix-y) # Flattened Image Tree (.itb) images # -targets += vmlinux.itb -targets += vmlinux.gz.itb -targets += vmlinux.bz2.itb -targets += vmlinux.lzma.itb -targets += vmlinux.lzo.itb - ifeq ($(ADDR_BITS),32) itb_addr_cells = 1 endif @@ -157,6 +151,12 @@ $(obj)/vmlinux.lzma.its: $(obj)/vmlinux.its.S $(obj)/vmlinux.bin.lzma FORCE $(obj)/vmlinux.lzo.its: $(obj)/vmlinux.its.S $(obj)/vmlinux.bin.lzo FORCE $(call if_changed,cpp_its_S,lzo,vmlinux.bin.lzo) +targets += vmlinux.itb +targets += vmlinux.gz.itb +targets += vmlinux.bz2.itb +targets += vmlinux.lzma.itb +targets += vmlinux.lzo.itb + quiet_cmd_itb-image = ITB $@ cmd_itb-image = \ env PATH="$(objtree)/scripts/dtc:$(PATH)" \ @@ -169,14 +169,5 @@ quiet_cmd_itb-image = ITB $@ $(obj)/vmlinux.itb: $(obj)/vmlinux.its $(obj)/vmlinux.bin FORCE $(call if_changed,itb-image,$<) -$(obj)/vmlinux.gz.itb: $(obj)/vmlinux.gz.its $(obj)/vmlinux.bin.gz FORCE - $(call if_changed,itb-image,$<) - -$(obj)/vmlinux.bz2.itb: $(obj)/vmlinux.bz2.its $(obj)/vmlinux.bin.bz2 FORCE - $(call if_changed,itb-image,$<) - -$(obj)/vmlinux.lzma.itb: $(obj)/vmlinux.lzma.its $(obj)/vmlinux.bin.lzma FORCE - $(call if_changed,itb-image,$<) - -$(obj)/vmlinux.lzo.itb: $(obj)/vmlinux.lzo.its $(obj)/vmlinux.bin.lzo FORCE +$(obj)/vmlinux.%.itb: $(obj)/vmlinux.%.its $(obj)/vmlinux.bin.% FORCE $(call if_changed,itb-image,$<) -- 2.7.4