[poky] [PATCH] SDK_NAME: Change to include image name and machine.

Flanagan, Elizabeth elizabeth.flanagan at intel.com
Mon Aug 19 16:10:34 PDT 2013


There apparently are differences caused by each machines tunings (for
example, meta-fsl-arm's imx53qsb is armv7a-vfp-neon, whereas qemuarm
is armv5te). With SDK_NAME as it is, you'd end up with two files that
have the exact same name and toolchains builds that are different.
Example. qemuarm's toolchain env setup should be named
'environment-setup-armv5te-poky-linux-gnueabi' but the toolchain I
just downloaded from the last master build is
'environment-setup-armv7a-vfp-neon-poky-linux-gnueabi' because it's
the toolchain from the meta-fsl-arm build. I'm not sure how deep the
issues go outside of these relatively small naming issues. ccing: Yi
Zhao as I'm sure he can tell us more.

I agree that TUNE_PKGARCH is probably a better solution than
TARGET_ARCH but with how I'm generating toolchains now (bitbake
core-image-sato  -c populate_sdk) I can see a day when having the
IMAGE_BASENAME included would be a very useful thing.

So, would anyone be opposed to:

SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"

-b

On Mon, Aug 19, 2013 at 2:58 PM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> On Mon, 2013-08-19 at 14:45 -0700, Elizabeth Flanagan wrote:
>> [YOCTO #4618]
>>
>> When building out multiple toolchains with the same target arch
>> you can end up having toolchains with the same name. Making
>> the naming a bit more granular by adding IMAGE_BASENAME and
>> MACHINE to SDK_NAME
>>
>> Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan at intel.com>
>> ---
>>  meta-yocto/conf/distro/poky.conf | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta-yocto/conf/distro/poky.conf b/meta-yocto/conf/distro/poky.conf
>> index 7be7d92..f0da032 100644
>> --- a/meta-yocto/conf/distro/poky.conf
>> +++ b/meta-yocto/conf/distro/poky.conf
>> @@ -22,7 +22,7 @@ PREFERRED_VERSION_linux-yocto_qemumips ?= "3.8%"
>>  PREFERRED_VERSION_linux-yocto_qemumips64 ?= "3.8%"
>>  PREFERRED_VERSION_linux-yocto_qemuppc ?= "3.8%"
>>
>> -SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${TARGET_ARCH}"
>> +SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${MACHINE}-${TARGET_ARCH}"
>>  SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}"
>>
>>  EXTRAOPKGCONFIG = "poky-feed-config-opkg"
>
> Are there differences in the SDK/ADT tarball between machines?
>
> I appreciate its theoretically possible but in reality, they should be
> the same and if they're not we have various problems.
>
> Cheers,
>
> Richard
>



-- 
Elizabeth Flanagan
Yocto Project
Build and Release



More information about the poky mailing list