fa96b57c14
Add Kbuild, Makefile, Kconfig and link script for LoongArch build infrastructure. Reviewed-by: Guo Ren <guoren@kernel.org> Reviewed-by: WANG Xuerui <git@xen0n.name> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
17 lines
430 B
Makefile
17 lines
430 B
Makefile
#
|
|
# arch/loongarch/boot/Makefile
|
|
#
|
|
# Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
#
|
|
|
|
drop-sections := .comment .note .options .note.gnu.build-id
|
|
strip-flags := $(addprefix --remove-section=,$(drop-sections)) -S
|
|
OBJCOPYFLAGS_vmlinux.efi := -O binary $(strip-flags)
|
|
|
|
targets := vmlinux
|
|
quiet_cmd_strip = STRIP $@
|
|
cmd_strip = $(STRIP) -s -o $@ $<
|
|
|
|
$(obj)/vmlinux: vmlinux FORCE
|
|
$(call if_changed,strip)
|