linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xtensa: add boot subdirectories build artifacts to 'targets'
@ 2020-07-22  0:47 Masahiro Yamada
  2020-07-22  3:56 ` Max Filippov
  0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2020-07-22  0:47 UTC (permalink / raw)
  To: linux-kbuild
  Cc: Chris Zankel, Max Filippov, linux-xtensa, Masahiro Yamada, linux-kernel

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 <masahiroy@kernel.org>
---

 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] xtensa: add boot subdirectories build artifacts to 'targets'
  2020-07-22  0:47 [PATCH] xtensa: add boot subdirectories build artifacts to 'targets' Masahiro Yamada
@ 2020-07-22  3:56 ` Max Filippov
  2020-07-25  7:10   ` Masahiro Yamada
  0 siblings, 1 reply; 3+ messages in thread
From: Max Filippov @ 2020-07-22  3:56 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: linux-kbuild, Chris Zankel,
	open list:TENSILICA XTENSA PORT (xtensa),
	LKML

On Tue, Jul 21, 2020 at 5:47 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> 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 <masahiroy@kernel.org>
> ---
>
>  arch/xtensa/boot/boot-elf/Makefile     | 1 +
>  arch/xtensa/boot/boot-redboot/Makefile | 1 +
>  2 files changed, 2 insertions(+)

Acked-by: Max Filippov <jcmvbkbc@gmail.com>

-- 
Thanks.
-- Max

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xtensa: add boot subdirectories build artifacts to 'targets'
  2020-07-22  3:56 ` Max Filippov
@ 2020-07-25  7:10   ` Masahiro Yamada
  0 siblings, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2020-07-25  7:10 UTC (permalink / raw)
  To: Max Filippov
  Cc: linux-kbuild, Chris Zankel,
	open list:TENSILICA XTENSA PORT (xtensa),
	LKML

On Wed, Jul 22, 2020 at 12:57 PM Max Filippov <jcmvbkbc@gmail.com> wrote:
>
> On Tue, Jul 21, 2020 at 5:47 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
> >
> > 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 <masahiroy@kernel.org>
> > ---
> >
> >  arch/xtensa/boot/boot-elf/Makefile     | 1 +
> >  arch/xtensa/boot/boot-redboot/Makefile | 1 +
> >  2 files changed, 2 insertions(+)
>
> Acked-by: Max Filippov <jcmvbkbc@gmail.com>
>
> --
> Thanks.
> -- Max


Applied to linux-kbuild.


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-25  7:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22  0:47 [PATCH] xtensa: add boot subdirectories build artifacts to 'targets' Masahiro Yamada
2020-07-22  3:56 ` Max Filippov
2020-07-25  7:10   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).