From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D935DC4332B for ; Tue, 12 Jan 2021 13:06:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A8E9623110 for ; Tue, 12 Jan 2021 13:06:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726860AbhALNFt (ORCPT ); Tue, 12 Jan 2021 08:05:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:54604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405265AbhALM63 (ORCPT ); Tue, 12 Jan 2021 07:58:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 88BFF2312B; Tue, 12 Jan 2021 12:57:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610456274; bh=eBbR2U7dAFsZt9BIBmqw9WGdszmTO2BdNTVg/VuAMz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IW2DmJ/qREynkjCEJia1TOhfhJmHCjpNsn/f+Cl5IePGRKfz2tvu31rJUZat/0S3R gSxsAU/3UVECzCBA45VcMJYZNeLbSn8LBkpNGZ4JJbatEAf7lIe6SnaDID5dLoDFoM VtPGmJxIvUhAHse2q0LDlidW9n6MxHyLdZGKFZFXPsKOID3uXGbTwnc8yo7K63/vX6 88xnaJN4nzvxFnyi86sMd0baKNvQcA3y7M4cGVoB9gEQgOW5Co5Sml05qhX9Neemqb srov/a1BFoiV364i4aLbtyXqzVcosnI6iGq01QvWopZDwB836yjzKoG4z8mPClU6TT dd+RdNLsqF6hQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Masahiro Yamada , Vineet Gupta , Sasha Levin , linux-snps-arc@lists.infradead.org Subject: [PATCH AUTOSEL 4.14 03/13] ARC: build: add boot_targets to PHONY Date: Tue, 12 Jan 2021 07:57:39 -0500 Message-Id: <20210112125749.71193-3-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210112125749.71193-1-sashal@kernel.org> References: <20210112125749.71193-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada [ Upstream commit 0cfccb3c04934cdef42ae26042139f16e805b5f7 ] The top-level boot_targets (uImage and uImage.*) should be phony targets. They just let Kbuild descend into arch/arc/boot/ and create files there. If a file exists in the top directory with the same name, the boot image will not be created. You can confirm it by the following steps: $ export CROSS_COMPILE= $ make -s ARCH=arc defconfig all # vmlinux will be built $ touch uImage.gz $ make ARCH=arc uImage.gz CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h # arch/arc/boot/uImage.gz is not created Specify the targets as PHONY to fix this. Signed-off-by: Masahiro Yamada Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- arch/arc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 1146ca5fc349b..ef5e8ea042158 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -101,6 +101,7 @@ boot := arch/arc/boot boot_targets := uImage uImage.bin uImage.gz uImage.lzma +PHONY += $(boot_targets) $(boot_targets): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ -- 2.27.0