Skip to contentSkip to conversation

Makefile: riscv: Remove duplicated -O binary objcopy flags

PATCH New [email protected] 1 participant 1 message Apr 4, 2022 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: riscv: Remove duplicated -O binary objcopy flags

From: Wadim Mueller <[email protected]>

In arch/riscv/Makefile the OBJCOPYFLAGS are already set to -O binary so the duplicated flags for Image and xipImage generation can be removed from arch/riscv/boot/Makefile.

The fact that the flags are indeed duplicated can be checked in .Image.cmd which specifies -O binary twice

---
 arch/riscv/boot/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/riscv/boot/Makefile +2 -2
index becd0621071c..c000a1fc8c56 100644
@@ -16,8 +16,8 @@
 
 KCOV_INSTRUMENT := n
 
-OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
-OBJCOPYFLAGS_xipImage :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
+OBJCOPYFLAGS_Image :=-R .note -R .note.gnu.build-id -R .comment -S
+OBJCOPYFLAGS_xipImage :=-R .note -R .note.gnu.build-id -R .comment -S
 
 targets := Image Image.* loader loader.o loader.lds loader.bin
 targets := Image Image.* loader loader.o loader.lds loader.bin xipImage
Signature · 7 lines
2.29.3


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv