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

kbuild: remove unused AS assignment

$(AS) is not used anywhere in the kernel build, hence commit
aa824e0c962b ("kbuild: remove AS variable") killed it.

Remove the left-over code in arch/{arm,arm64}/Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Will Deacon <will@kernel.org>

-4
-2
arch/arm/Makefile
··· 45 45 ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) 46 46 KBUILD_CPPFLAGS += -mbig-endian 47 47 CHECKFLAGS += -D__ARMEB__ 48 - AS += -EB 49 48 KBUILD_LDFLAGS += -EB 50 49 else 51 50 KBUILD_CPPFLAGS += -mlittle-endian 52 51 CHECKFLAGS += -D__ARMEL__ 53 - AS += -EL 54 52 KBUILD_LDFLAGS += -EL 55 53 endif 56 54
-2
arch/arm64/Makefile
··· 84 84 ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) 85 85 KBUILD_CPPFLAGS += -mbig-endian 86 86 CHECKFLAGS += -D__AARCH64EB__ 87 - AS += -EB 88 87 # Prefer the baremetal ELF build target, but not all toolchains include 89 88 # it so fall back to the standard linux version if needed. 90 89 KBUILD_LDFLAGS += -EB $(call ld-option, -maarch64elfb, -maarch64linuxb) ··· 91 92 else 92 93 KBUILD_CPPFLAGS += -mlittle-endian 93 94 CHECKFLAGS += -D__AARCH64EL__ 94 - AS += -EL 95 95 # Same as above, prefer ELF but fall back to linux target if needed. 96 96 KBUILD_LDFLAGS += -EL $(call ld-option, -maarch64elf, -maarch64linux) 97 97 UTS_MACHINE := aarch64