u-boot : for omapzoom2/3 and gcc 4.5 the -Os optimisation produces a
authorGraeme Gregory <dp@xora.org.uk>
Tue, 8 Feb 2011 22:40:17 +0000 (22:40 +0000)
committerGraeme Gregory <dp@xora.org.uk>
Tue, 8 Feb 2011 22:40:17 +0000 (22:40 +0000)
u-boot which doesnt boot or launch kernel. This makes u-boot a lot
slower but as we only see it once on boot this is unimportant in long
view so remove the -Os from build.

Signed-off-by: Graeme Gregory <dp@xora.org.uk>
recipes/u-boot/u-boot_git.bb

index 252d8bb..9699e8f 100644 (file)
@@ -203,6 +203,7 @@ PV_omapzoom2 = "1.1.4+${PR}+gitr${SRCREV}"
 PE_omapzoom2 = "1"
 
 do_compile_omapzoom2 () {
+       sed -i -e "s|OPTFLAGS=.*|OPTFLAGS=|" config.mk
         unset LDFLAGS
         unset CFLAGS
         unset CPPFLAGS
@@ -221,6 +222,7 @@ PV_omapzoom36x = "1.1.4+${PR}+gitr${SRCREV}"
 PE_omapzoom36x = "1"
 
 do_compile_omapzoom36x () {
+       sed -i -e "s|OPTFLAGS=.*|OPTFLAGS=|" config.mk
         unset LDFLAGS
         unset CFLAGS
         unset CPPFLAGS