Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp108535ybh; Tue, 21 Jul 2020 17:48:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbTDDF5hTOBAKo2PR4M3NdPGKeTPJWdmNslA9LGp+s9s8vIsAp9MG4Sw69cwlT6094NAoJ X-Received: by 2002:aa7:d3ca:: with SMTP id o10mr29335068edr.138.1595378911213; Tue, 21 Jul 2020 17:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595378911; cv=none; d=google.com; s=arc-20160816; b=cd622AASIXbvd9VJyKtcEBG/uK+6PO7+b7ZW/IaP8jj1uH3HHdYs16U5qTjfjU09y3 F4igONTdP0P0A+QEonTcJpANnNRs1hgZRm9ijLw1U8s8aK9oWiEIBWnhLLvS+9850kMY GmHiEztSQYRD9qERb+C59PlTdJiUYGKnKRN8rCv52tJIG80eDG4RgOIRXo7L9StMK17I bIL546LwVhcitWN5GprgUWUxNJH+rwxnmaoeS12GTckDeMIMOvduaXR4KVv3OAwRZi5n 78lUDKdTBe4a5DALh5C66IlnG4OQSZnDsryuOyTKA/bxm2o25Jdpy96KNSRXf4isNveI GyDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=eG+ayNnFCXKOBzxmUjHFFQOzueXyYgjhP95zI9sGS9o=; b=X8WlfAD5Q2NVWMoltgDVm2q5gLG7ajbs5dheUtF7OsC8yUmBfcc6tMfCYA69qHddw9 DudRJ/3d3AIZfzXd6aH7EISeLBP9uD+OQzTDGyL0YOvq5xziwv1eKCGrCOrR8Ru6S8qD nSkU9I3vyUXZnR7FKGtc1qMLsQOz5hvJw7/TrTBQ21TqcQxg1p+Xl1F6xVK7rzRg2kBh IIfCkflPKnqcqP/9OiCjBS6jQ+I07DL0i9CcnYIRpI+vBpyx9zLOyLQxlZLCVwyPvj3b jkHzIxtIlZJYFjAVqaBTanQP8tIkNeOTjcQD+peK49cgeo4Cej0nsHPlEE8s8oDb2pqD dJ4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="U/oZ8Dyc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox25si13800377ejb.408.2020.07.21.17.48.08; Tue, 21 Jul 2020 17:48:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="U/oZ8Dyc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728336AbgGVAr7 (ORCPT + 99 others); Tue, 21 Jul 2020 20:47:59 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:36963 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726468AbgGVAr6 (ORCPT ); Tue, 21 Jul 2020 20:47:58 -0400 Received: from oscar.flets-west.jp (softbank126025067101.bbtec.net [126.25.67.101]) (authenticated) by conuserg-12.nifty.com with ESMTP id 06M0lCmA017008; Wed, 22 Jul 2020 09:47:12 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 06M0lCmA017008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1595378833; bh=eG+ayNnFCXKOBzxmUjHFFQOzueXyYgjhP95zI9sGS9o=; h=From:To:Cc:Subject:Date:From; b=U/oZ8DycR+wdfRU3577VbpGliWLjPEp+xCgcXj4QnkJDTHtMBdfxtDgPHZnNnHJKG TDbqE3F2T8wGtDwIFDV0qIpRraRdzKX7VrNuLubw/+NB6nMtpvqa74i8rllr57Txlr pzDQPyR94wJVSYqco/b56hyR15eV0Y+xEAwlRWN9XuEi+QY79yMV221IAE58u3lopc OAbDglRecAa0EYtowdZzpQur6X6RRq6ZGj3XQqtQa3guLwsFxzCXEBzp3f6vaH0GZ9 t11G/4zR1fuLv+hatEOOPKF4yU9qtN2PEwv8uHM1dI2x4Jzncp6POYpl2w1NnxIQM7 VGRmfykr26B0w== X-Nifty-SrcIP: [126.25.67.101] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] xtensa: add boot subdirectories build artifacts to 'targets' Date: Wed, 22 Jul 2020 09:47:07 +0900 Message-Id: <20200722004707.779601-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Xtensa always rebuilds the following even if nothing in the source code has been changed. Passing V=2 shows the reason. AS arch/xtensa/boot/boot-elf/bootstrap.o - due to bootstrap.o not in $(targets) LDS arch/xtensa/boot/boot-elf/boot.lds - due to boot.lds not in $(targets) They are built by if_changed(_dep). Add them to 'targets' so .*.cmd files are included. Signed-off-by: Masahiro Yamada --- arch/xtensa/boot/boot-elf/Makefile | 1 + arch/xtensa/boot/boot-redboot/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/xtensa/boot/boot-elf/Makefile b/arch/xtensa/boot/boot-elf/Makefile index 12ae1e91cb75..badee63dae27 100644 --- a/arch/xtensa/boot/boot-elf/Makefile +++ b/arch/xtensa/boot/boot-elf/Makefile @@ -15,6 +15,7 @@ export CPPFLAGS_boot.lds += -P -C export KBUILD_AFLAGS += -mtext-section-literals boot-y := bootstrap.o +targets += $(boot-y) boot.lds OBJS := $(addprefix $(obj)/,$(boot-y)) diff --git a/arch/xtensa/boot/boot-redboot/Makefile b/arch/xtensa/boot/boot-redboot/Makefile index 8632473ad319..1a277dd57b2a 100644 --- a/arch/xtensa/boot/boot-redboot/Makefile +++ b/arch/xtensa/boot/boot-redboot/Makefile @@ -13,6 +13,7 @@ endif LD_ARGS = -T $(srctree)/$(obj)/boot.ld boot-y := bootstrap.o +targets += $(boot-y) OBJS := $(addprefix $(obj)/,$(boot-y)) LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a -- 2.25.1