* [PATCH 05/25][v2] u-boot: disable -Os option not supported by gcc
@ 2011-01-25 21:09 Adrian Alonso
2011-01-25 21:37 ` Darren Hart
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Alonso @ 2011-01-25 21:09 UTC (permalink / raw)
To: poky; +Cc: Adrian Alonso
* Disable -Os optspace option not supported by gcc
* v2 use OPTFLAGS variable, remove meke file patch
* Bump PR
Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
recipes-bsp/uboot/u-boot-xilinx_git.bb | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/u-boot-xilinx_git.bb
index 50d99e3..499ce0b 100644
--- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
+++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
@@ -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
--
1.7.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 05/25][v2] u-boot: disable -Os option not supported by gcc
2011-01-25 21:09 [PATCH 05/25][v2] u-boot: disable -Os option not supported by gcc Adrian Alonso
@ 2011-01-25 21:37 ` Darren Hart
2011-01-26 17:41 ` Adrian Alonso
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2011-01-25 21:37 UTC (permalink / raw)
To: Adrian Alonso; +Cc: Josh Lock, poky
On 01/25/2011 01:09 PM, Adrian Alonso wrote:
> * Disable -Os optspace option not supported by gcc
> * v2 use OPTFLAGS variable, remove meke file patch
> * Bump PR
>
> Signed-off-by: Adrian Alonso<aalonso@secretlab.ca>
> ---
> recipes-bsp/uboot/u-boot-xilinx_git.bb | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/u-boot-xilinx_git.bb
> index 50d99e3..499ce0b 100644
> --- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
> +++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
> @@ -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"
> 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
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 05/25][v2] u-boot: disable -Os option not supported by gcc
2011-01-25 21:37 ` Darren Hart
@ 2011-01-26 17:41 ` Adrian Alonso
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Alonso @ 2011-01-26 17:41 UTC (permalink / raw)
To: Darren Hart; +Cc: Josh Lock, poky
[-- Attachment #1: Type: text/plain, Size: 2320 bytes --]
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
On Tue, Jan 25, 2011 at 3:37 PM, Darren Hart <dvhart@linux.intel.com> wrote:
> On 01/25/2011 01:09 PM, Adrian Alonso wrote:
>
>> * Disable -Os optspace option not supported by gcc
>> * v2 use OPTFLAGS variable, remove meke file patch
>> * Bump PR
>>
>> Signed-off-by: Adrian Alonso<aalonso@secretlab.ca>
>> ---
>> recipes-bsp/uboot/u-boot-xilinx_git.bb | 6 ++++--
>> 1 files changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/
>> u-boot-xilinx_git.bb
>> index 50d99e3..499ce0b 100644
>> --- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
>> +++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
>> @@ -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"
>> 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
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
[-- Attachment #2: Type: text/html, Size: 3737 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-26 17:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25 21:09 [PATCH 05/25][v2] u-boot: disable -Os option not supported by gcc Adrian Alonso
2011-01-25 21:37 ` Darren Hart
2011-01-26 17:41 ` Adrian Alonso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.