sh: boot: avoid unneeded rebuilds under arch/sh/boot/compressed/
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 17 Jan 2021 11:16:32 +0000 (20:16 +0900)
committerRich Felker <dalias@libc.org>
Fri, 17 Sep 2021 18:00:07 +0000 (14:00 -0400)
commit7fe859eef99b6fac655416d5bb01c82bd0da2ada
tree02a9955102fc72ce7b22c632e9c9d93192862ec1
parent7b6ef6e570eab9714f9b2374e0bad179bff99fdd
sh: boot: avoid unneeded rebuilds under arch/sh/boot/compressed/

Even if none of source code is updated, the following are every time
rebuilt:

  CC      arch/sh/boot/compressed/cache.o
  SHIPPED arch/sh/boot/compressed/ashiftrt.S
  AS      arch/sh/boot/compressed/ashiftrt.o
  SHIPPED arch/sh/boot/compressed/ashldi3.c
  CC      arch/sh/boot/compressed/ashldi3.o
  SHIPPED arch/sh/boot/compressed/ashrsi3.S
  AS      arch/sh/boot/compressed/ashrsi3.o
  SHIPPED arch/sh/boot/compressed/ashlsi3.S
  AS      arch/sh/boot/compressed/ashlsi3.o
  SHIPPED arch/sh/boot/compressed/lshrsi3.S
  AS      arch/sh/boot/compressed/lshrsi3.o
  LD      arch/sh/boot/compressed/vmlinux
  OBJCOPY arch/sh/boot/zImage

Add build artifacts to 'targets' as needed.

I turned the library files to check-in files. It is simpler than
copying from arch/sh/lib/ at build-time.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/boot/compressed/.gitignore
arch/sh/boot/compressed/Makefile
arch/sh/boot/compressed/ashiftrt.S [new file with mode: 0644]
arch/sh/boot/compressed/ashldi3.c [new file with mode: 0644]
arch/sh/boot/compressed/ashlsi3.S [new file with mode: 0644]
arch/sh/boot/compressed/ashrsi3.S [new file with mode: 0644]
arch/sh/boot/compressed/lshrsi3.S [new file with mode: 0644]