linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Makefile: riscv: Remove duplicated -O binary objcopy flags
@ 2022-04-04 13:08 wafgo01
  0 siblings, 0 replies; only message in thread
From: wafgo01 @ 2022-04-04 13:08 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou; +Cc: linux-riscv, linux-kernel, Wadim Mueller

From: Wadim Mueller <wafgo01@gmail.com>

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

Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
---
 arch/riscv/boot/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile
index becd0621071c..c000a1fc8c56 100644
--- a/arch/riscv/boot/Makefile
+++ b/arch/riscv/boot/Makefile
@@ -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
-- 
2.29.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-04 13:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 13:08 [PATCH] Makefile: riscv: Remove duplicated -O binary objcopy flags wafgo01

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).