diff options
author | Roger Monk <r-monk@ti.com> | 2011-03-25 10:47:44 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2011-03-25 10:54:37 +0100 |
commit | 8f1b80d91883675120dc26950f638639ba4bb87e (patch) | |
tree | 19abe0384d8d9c62de8fc93cf99521c554eacdd8 /recipes/u-boot/u-boot-git/fix-break-caused-by-new-binutils.patch | |
parent | 181c4ed14b9944c059ec593ba69f9a235048db52 (diff) | |
download | openembedded-8f1b80d91883675120dc26950f638639ba4bb87e.tar.gz |
u-boot-git: Add omap4430-panda to u-boot git recipe
* Enable u-boot git to build for pandaboard
Signed-off-by: Roger Monk <r-monk@ti.com>
Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes/u-boot/u-boot-git/fix-break-caused-by-new-binutils.patch')
-rw-r--r-- | recipes/u-boot/u-boot-git/fix-break-caused-by-new-binutils.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes/u-boot/u-boot-git/fix-break-caused-by-new-binutils.patch b/recipes/u-boot/u-boot-git/fix-break-caused-by-new-binutils.patch new file mode 100644 index 0000000000..16bc9803bd --- /dev/null +++ b/recipes/u-boot/u-boot-git/fix-break-caused-by-new-binutils.patch @@ -0,0 +1,31 @@ +Index: git/arch/arm/cpu/armv7/omap4/Makefile +=================================================================== +--- git.orig/arch/arm/cpu/armv7/omap4/Makefile ++++ git/arch/arm/cpu/armv7/omap4/Makefile +@@ -26,6 +26,8 @@ include $(TOPDIR)/config.mk + LIB = $(obj)lib$(SOC).o + + SOBJS += lowlevel_init.o ++plus_sec := $(call as-instr,.arch_extension sec,+sec) ++lowlevel_init.o: AFLAGS += -Wa,-march=armv7-a$(plus_sec) + + COBJS += board.o + COBJS += mem.o +Index: git/config.mk +=================================================================== +--- git.orig/config.mk ++++ git/config.mk +@@ -266,3 +266,13 @@ cmd_link_o_target = $(if $(strip $1),\ + rm -f $@; $(AR) rcs $@ ) + + ######################################################################### ++ ++# Tries to compile an assembly instruction ++as-instr = $(shell if echo -e "$(1)" | \ ++ $(CC) $(AFLAGS) -c -xassembler - \ ++ -o $(TMPOUT)astest$$$$.out > /dev/null 2>&1; \ ++ then rm $(TMPOUT)astest$$$$.out; echo "$(2)"; \ ++ else echo "$(3)"; fi) ++ ++######################################################################### ++ |