Skip to content

Commit 505b029

Browse files
Song Shuaipalmer-dabbelt
authored andcommitted
riscv: Remove duplicate objcopy flag
There are two duplicate `-O binary` flags when objcopying from vmlinux to Image/xipImage. RISC-V set `-O binary` flag in both OBJCOPYFLAGS in the top-level riscv Makefile and OBJCOPYFLAGS_* in the boot/Makefile, and the objcopy cmd in Kbuild would join them together. The `-O binary` flag is only needed for objcopying Image, so remove the OBJCOPYFLAGS in the top-level riscv Makefile. Fixes: c0fbcd9 ("RISC-V: Build flat and compressed kernel images") Signed-off-by: Song Shuai <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 14a270b commit 505b029

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/riscv/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# for more details.
77
#
88

9-
OBJCOPYFLAGS := -O binary
109
LDFLAGS_vmlinux := -z norelro
1110
ifeq ($(CONFIG_RELOCATABLE),y)
1211
LDFLAGS_vmlinux += -shared -Bsymbolic -z notext --emit-relocs

0 commit comments

Comments
 (0)