Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mips: decompressor: do not copy source files while building

As commit 7ae4a78daacf ("ARM: 8969/1: decompressor: simplify libfdt
builds") stated, copying source files during the build time may not
end up with as clean code as expected.

Do similar for mips to clean up the Makefile and .gitignore.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Masahiro Yamada and committed by
Thomas Bogendoerfer
f78b25ee e2f4b3be

+13 -19
-3
arch/mips/boot/compressed/.gitignore
··· 1 - # SPDX-License-Identifier: GPL-2.0-only 2 - ashldi3.c 3 - bswapsi.c
-16
arch/mips/boot/compressed/Makefile
··· 50 50 vmlinuzobjs-$(CONFIG_ATH79) += $(obj)/uart-ath79.o 51 51 endif 52 52 53 - extra-y += uart-ath79.c 54 - $(obj)/uart-ath79.c: $(srctree)/arch/mips/ath79/early_printk.c 55 - $(call cmd,shipped) 56 - 57 53 vmlinuzobjs-$(CONFIG_KERNEL_XZ) += $(obj)/ashldi3.o 58 54 59 55 vmlinuzobjs-$(CONFIG_KERNEL_ZSTD) += $(obj)/bswapdi.o 60 - 61 - extra-y += ashldi3.c 62 - $(obj)/ashldi3.c: $(obj)/%.c: $(srctree)/lib/%.c FORCE 63 - $(call if_changed,shipped) 64 - 65 - extra-y += bswapsi.c 66 - $(obj)/bswapsi.c: $(obj)/%.c: $(srctree)/arch/mips/lib/%.c FORCE 67 - $(call if_changed,shipped) 68 - 69 - extra-y += bswapdi.c 70 - $(obj)/bswapdi.c: $(obj)/%.c: $(srctree)/arch/mips/lib/%.c FORCE 71 - $(call if_changed,shipped) 72 56 73 57 targets := $(notdir $(vmlinuzobjs-y)) 74 58
+2
arch/mips/boot/compressed/ashldi3.c
··· 1 + // SPDX-License-Identifier: GPL-2.0-only 2 + #include "../../../../lib/ashldi3.c"
+2
arch/mips/boot/compressed/bswapdi.c
··· 1 + // SPDX-License-Identifier: GPL-2.0-only 2 + #include "../../lib/bswapdi.c"
+2
arch/mips/boot/compressed/bswapsi.c
··· 1 + // SPDX-License-Identifier: GPL-2.0-only 2 + #include "../../lib/bswapsi.c"
+2
arch/mips/boot/compressed/uart-ath79.c
··· 1 + // SPDX-License-Identifier: GPL-2.0-only 2 + #include "../../ath79/early_printk.c"
+5
scripts/remove-stale-files
··· 28 28 do 29 29 rm -f arch/arm/boot/compressed/${f} 30 30 done 31 + 32 + for f in uart-ath79.c ashldi3.c bswapdi.c bswapsi.c 33 + do 34 + rm -f arch/mips/boot/compressed/${f} 35 + done 31 36 fi