Skip to content

Commit 00708d4

Browse files
committed
microblaze: Fix makefile to work with latest toolchain
When building with latest binutils, vmlinux includes some sections which need to be stripped out when building the binary image. Signed-off-by: Michal Simek <monstr@monstr.eu>
1 parent 9bc974b commit 00708d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/microblaze/boot/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ obj-y += linked_dtb.o
88

99
targets := linux.bin linux.bin.gz simpleImage.%
1010

11-
OBJCOPYFLAGS := -O binary
11+
OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
1212

1313
# Ensure system.dtb exists
1414
$(obj)/linked_dtb.o: $(obj)/system.dtb

0 commit comments

Comments
 (0)