Skip to contentSkip to conversation

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

PATCH In review Adrian Alonso 3 participants 5 messages Jan 26, 2011 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

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

* Disable -Os optspace option not supported by gcc use insted -O2
* v2 Remove Make file patch
* v3 use EXTRA_OEMAKE variable, override default OPTFLAGS settings in u-boot.inc, Powerpc targets build only with -O1, -O2 optflags Build failures are related to gcc bugs #44392 and #45052
* 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..a373428 100644
@@ -1,9 +1,11 @@
 require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r2"
+PR = "r3"
 
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS='-O2'"
 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
Reviewed-by on v3 5/25
#1 lore raw
Quoted 8 lines · Adrian Alonso

* Disable -Os optspace option not supported by gcc use insted -O2
* v2 Remove Make file patch
* v3 use EXTRA_OEMAKE variable, override default OPTFLAGS settings in u-boot.inc, Powerpc targets build only with -O1, -O2 optflags Build failures are related to gcc bugs #44392 and #45052
* Bump PR

Looks good for the -Os problem.

I noticed that the SRCREV is defined in this file. Typically this should be in meta/conf/distro/include/poky-default-revisions.inc

--
Darren

Quoted 22 lines
---
  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..a373428 100644
@@ -1,9 +1,11 @@
  require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r2"
+PR = "r3"
 
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS='-O2'"
  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
Quoted 10 lines · Darren Hart
Quoted 8 lines · Adrian Alonso

* Disable -Os optspace option not supported by gcc use insted -O2
* v2 Remove Make file patch
* v3 use EXTRA_OEMAKE variable, override default OPTFLAGS settings in u-boot.inc, Powerpc targets build only with -O1, -O2 optflags Build failures are related to gcc bugs #44392 and #45052
* Bump PR

Quoted 8 lines

Looks good for the -Os problem.

I noticed that the SRCREV is defined in this file. Typically this should be in meta/conf/distro/include/poky-default-revisions.inc

If I remember this correctly, these are in a layer, so the default-revision.inc does not get updated.

Sau!

Quoted 31 lines

--
Darren

Quoted 25 lines

---
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..a373428 100644
@@ -1,9 +1,11 @@

require ../meta/recipes-bsp/uboot/u-boot.inc

recipes-bsp/uboot/u-boot-xilinx_git.bb +2 -1
-PR = "r2"
+PR = "r3"
 
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS='-O2'"

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

#3 lore raw

Yep that's correct all 25 patch's belong to xilinx bsp meta layer; I could define in the meta layer a revision inc file for all the recipes that set a SRCREV version.

Regards

Quoted 67 lines · Saul Wold
Quoted 14 lines · Darren Hart
Quoted 9 lines · Adrian Alonso

* Disable -Os optspace option not supported by gcc use insted -O2
* v2 Remove Make file patch
* v3 use EXTRA_OEMAKE variable, override default OPTFLAGS settings in u-boot.inc, Powerpc targets build only with -O1, -O2 optflags Build failures are related to gcc bugs #44392 and #45052
* Bump PR

Looks good for the -Os problem.

Quoted 7 lines

I noticed that the SRCREV is defined in this file. Typically this should be in meta/conf/distro/include/poky-default-revisions.inc

If I remember this correctly, these are in a layer, so the

default-revision.inc does not get updated.

Sau!

--

Quoted 28 lines

Darren

---

Quoted 24 lines

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..a373428 100644
@@ -1,9 +1,11 @@

require ../meta/recipes-bsp/uboot/u-boot.inc

recipes-bsp/uboot/u-boot-xilinx_git.bb +2 -1
-PR = "r2"
+PR = "r3"
 
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS='-O2'"

BRANCH="master"
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}"

Quoted 5 lines
Quoted 2 lines

inherit xilinx-boot

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#4 lore raw
Quoted 3 lines · Adrian Alonso

Yep that's correct all 25 patch's belong to xilinx bsp meta layer; I could define in the meta layer a revision inc file for all the recipes that set a SRCREV version.

Apologies, I missed that this was a layer. Putting the revisions in a layer default-revisions include isn't a bad idea - it would make merging anything into meta at a later date pretty easy. But there's nothing wrong with it as is.

--
Darren

Quoted 85 lines

Regards

On Wed, Jan 26, 2011 at 12:28 PM, Saul Wold <[email protected] <mailto:[email protected]>> wrote:

    On 01/26/2011 10:00 AM, Darren Hart wrote:

        On 01/26/2011 09:42 AM, Adrian Alonso wrote:

            * Disable -Os optspace option not supported by gcc use
            insted -O2
            * v2 Remove Make file patch
            * v3 use EXTRA_OEMAKE variable, override default OPTFLAGS
            settings
            in u-boot.inc, Powerpc targets build only with -O1, -O2 optflags
            Build failures are related to gcc bugs #44392 and #45052
            * Bump PR

            Signed-off-by: Adrian Alonso<[email protected]
            <mailto:[email protected]>>


        Looks good for the -Os problem.

        Reviewed-by: Darren Hart<[email protected]
        <mailto:[email protected]>>

        I noticed that the SRCREV is defined in this file.
        Typically this should be in
        meta/conf/distro/include/poky-default-revisions.inc

    If I remember this correctly, these are in a layer, so the
    default-revision.inc does not get updated.

    Sau!


        --
        Darren


            ---
            recipes-bsp/uboot/u-boot-xilinx_git.bb
            <http://u-boot-xilinx_git.bb> | 6 ++++--
            1 files changed, 4 insertions(+), 2 deletions(-)

            diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb
            <http://u-boot-xilinx_git.bb>
            b/recipes-bsp/uboot/u-boot-xilinx_git.bb
            <http://u-boot-xilinx_git.bb>
            index 50d99e3..a373428 100644
            --- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
            <http://u-boot-xilinx_git.bb>
            +++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
            <http://u-boot-xilinx_git.bb>
            @@ -1,9 +1,11 @@
            require ../meta/recipes-bsp/uboot/u-boot.inc
            -PR = "r2"
            +PR = "r3"

            +EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS='-O2'"
            BRANCH="master"
            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




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