From: Michal Simek <monstr@monstr.eu>
Date: Mon, 5 Mar 2012 14:53:19 +0000 (+0100)
Subject: microblaze: Fix makefile to work with latest toolchain
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=00708d421a22a0f82de2dbb91ca6213b3dcc5267;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

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>
---

diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
index 0c796cf81586..34940c828def 100644
--- a/arch/microblaze/boot/Makefile
+++ b/arch/microblaze/boot/Makefile
@@ -8,7 +8,7 @@ obj-y += linked_dtb.o
 
 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
 $(obj)/linked_dtb.o: $(obj)/system.dtb