瀏覽代碼

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>
Michal Simek 13 年之前
父節點
當前提交
00708d421a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/microblaze/boot/Makefile

+ 1 - 1
arch/microblaze/boot/Makefile

@@ -8,7 +8,7 @@ obj-y += linked_dtb.o
 
 
 targets := linux.bin linux.bin.gz simpleImage.%
 targets := linux.bin linux.bin.gz simpleImage.%
 
 
-OBJCOPYFLAGS := -O binary
+OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
 
 
 # Ensure system.dtb exists
 # Ensure system.dtb exists
 $(obj)/linked_dtb.o: $(obj)/system.dtb
 $(obj)/linked_dtb.o: $(obj)/system.dtb