Skip to contentSkip to conversation

u-boot: disable -Os option not supported by gcc

PATCH Superseded Adrian Alonso 2 participants 3 messages Jan 25, 2011 – Jan 26, 2011 Arm/Zynq architecture

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 5/25 u-boot: disable -Os option not supported by gcc

* Disable -Os optspace option not supported by gcc
* v2 use OPTFLAGS variable, remove meke file patch
* Bump PR

---
 recipes-bsp/uboot/u-boot-xilinx_git.bb |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
recipes-bsp/uboot/u-boot-xilinx_git.bb +4 -2
index 50d99e3..499ce0b 100644
@@ -1,9 +1,11 @@
 require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r2"
+PR = "r3"
 
+OPTFLAGS=""
 BRANCH="master"
 TAG="e094f2479ea339d7f48b6826f06f0be4984d9a98"
-SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git"
+SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git \
+          "
 SRCREV = "${TAG}"
 
 inherit xilinx-boot
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 14 lines · Adrian Alonso

* Disable -Os optspace option not supported by gcc
* v2 use OPTFLAGS variable, remove meke file patch
* Bump PR

---
  recipes-bsp/uboot/u-boot-xilinx_git.bb |    6 ++++--
  1 files changed, 4 insertions(+), 2 deletions(-)
recipes-bsp/uboot/u-boot-xilinx_git.bb +0 -0
index 50d99e3..499ce0b 100644

recipes-bsp/uboot/u-boot-xilinx_git.bb line 4

Quoted 5 lines
recipes-bsp/uboot/u-boot-xilinx_git.bb +2 -1
@@ -1,9 +1,11 @@
  require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r2"
+PR = "r3"
 
+OPTFLAGS=""

Have you tested this build? Looking at the Makefile, it doesn't do a conditional assignment, so I would expect OPTFLAGS set here to be ignored. This is why I added it to EXTRA_OEMAKE, which overrides anything in the Makefil, regardless of how it is assigned. At least, that was my understanding of the mechanism.

EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS=''"

Josh, I think you may had something to do with my education in this area - can you comment? Am I all wet here?

--
Darren

Quoted 8 lines
recipes-bsp/uboot/u-boot-xilinx_git.bb +2 -1
  BRANCH="master"
  TAG="e094f2479ea339d7f48b6826f06f0be4984d9a98"
-SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git"
+SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git \
+          "
  SRCREV = "${TAG}"
 
  inherit xilinx-boot
Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
#2 lore raw

Got me,

Yep the OPTFLAGS was not been set in u-boot.
I end up overriding EXTRA_OEMAKE to set OPTFLAGS=-O2
Powerpc targets only builds with this option and is related to gcc bugs described in previous treads.

In queue should patch v3

Regards

Quoted 63 lines · Darren Hart
Quoted 15 lines · Adrian Alonso

* Disable -Os optspace option not supported by gcc
* v2 use OPTFLAGS variable, remove meke file patch
* Bump PR

---
 recipes-bsp/uboot/u-boot-xilinx_git.bb |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
recipes-bsp/uboot/ renamed from recipes-bsp/uboot/u-boot-xilinx_git.bb +0 -0

u-boot-xilinx_git.bb
index 50d99e3..499ce0b 100644

recipes-bsp/uboot/u-boot-xilinx_git.bb line 5

Quoted 6 lines
recipes-bsp/uboot/u-boot-xilinx_git.bb +2 -1
@@ -1,9 +1,11 @@
 require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r2"
+PR = "r3"
 
+OPTFLAGS=""
 

Have you tested this build? Looking at the Makefile, it doesn't do a conditional assignment, so I would expect OPTFLAGS set here to be ignored. This is why I added it to EXTRA_OEMAKE, which overrides anything in the Makefil, regardless of how it is assigned. At least, that was my understanding of the mechanism.

EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS=''"

Josh, I think you may had something to do with my education in this area - can you comment? Am I all wet here?

--
Darren

BRANCH="master"

Quoted 11 lines
recipes-bsp/uboot/u-boot-xilinx_git.bb +0 -1
 TAG="e094f2479ea339d7f48b6826f06f0be4984d9a98"
-SRC_URI = "git://

git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git<http://git.xilinx.com/u-boot-xlnx.git;branch=$%7BBRANCH%7D;protocol=git> "
+SRC_URI = "git:// git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git<http://git.xilinx.com/u-boot-xlnx.git;branch=$%7BBRANCH%7D;protocol=git>\
+ "
SRCREV = "${TAG}"

inherit xilinx-boot

--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky