Last active
January 3, 2016 00:29
-
-
Save xenon92/8382861 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 7d8e04995d6637809528211d40cc6562e1cf5b5f Mon Sep 17 00:00:00 2001 | |
From: Shubhang <shubhang92@gmail.com> | |
Date: Mon, 13 Jan 2014 12:48:11 +0530 | |
Subject: [PATCH] Fix compilation with Linaro toolchain 4.7 | |
- GT-I9082 | |
- fix error: piggy.gzip.o: unknown CPU architecture | |
- fix error: lib1funcs.o: unknown CPU architecture | |
- original credit to codeworkx | |
--- | |
arch/arm/boot/compressed/Makefile | 8 ++++++++ | |
1 file changed, 8 insertions(+) | |
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile | |
index 080a018..8414961 100755 | |
--- a/arch/arm/boot/compressed/Makefile | |
+++ b/arch/arm/boot/compressed/Makefile | |
@@ -5,6 +5,7 @@ | |
# | |
OBJS = | |
+plus_sec := $(call as-instr,.arch_extension sec,+sec) | |
# Ensure that mmcif loader code appears early in the image | |
# to minimise that number of bocks that have to be read in | |
@@ -16,6 +17,11 @@ endif | |
endif | |
AFLAGS_head.o += -DTEXT_OFFSET=$(TEXT_OFFSET) | |
+ | |
+AFLAGS_head.o += -Wa,-march=armv7-a$(plus_sec) | |
+AFLAGS_misc.o +=-Wa,-march=armv7-a$(plus_sec) | |
+AFLAGS_decompress.o += -Wa,-march=armv7-a$(plus_sec) | |
+ | |
HEAD = head.o | |
OBJS += misc.o decompress.o | |
FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c | |
@@ -115,6 +121,7 @@ LDFLAGS_vmlinux += -X | |
LDFLAGS_vmlinux += -T | |
# For __aeabi_uidivmod | |
+AFLAGS_lib1funcs.o +=-Wa,-march=armv7-a$(plus_sec) | |
lib1funcs = $(obj)/lib1funcs.o $(obj)/divdi3.o | |
$(obj)/lib1funcs.S: $(srctree)/arch/$(SRCARCH)/lib/lib1funcs.S FORCE | |
@@ -147,6 +154,7 @@ $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \ | |
$(obj)/piggy.$(suffix_y): $(obj)/../Image FORCE | |
$(call if_changed,$(suffix_y)) | |
+AFLAGS_piggy.$(suffix_y).o += -Wa,-march=armv7-a$(plus_sec) | |
$(obj)/piggy.$(suffix_y).o: $(obj)/piggy.$(suffix_y) FORCE | |
CFLAGS_font.o := -Dstatic= | |
-- | |
1.8.5.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment