All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto standard SDK machine dependent compiler options
@ 2019-03-22  1:39 Tsai, Matt
  2019-03-22  5:34 ` Zhenhua Luo
  0 siblings, 1 reply; 4+ messages in thread
From: Tsai, Matt @ 2019-03-22  1:39 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1818 bytes --]

Hi all,

I have built the standard Yocto SDK using the "bitbake <image> -c populate_sdk" command. I have some questions related to the generated toolchain. I wonder if I can get my doubts cleared here.

Here are my hardware/software info:
Target platform is Freescale p2020 rdb.
Yocto versions used to build the SDK:
Poky: tag "sumo-19.0.1"
Meta-freescale: sumo branch commit hash: 407c6cf408969445031a492e2d25e0e2749582ea (on Oct. 4, 2018)

Questions:

  1.  The generated SDK contains a script environment-setup-ppce500v3-poky-linux-gnuspe to source some machine-dependent compiler options. I assume these are good (if not optimal) options to use when I build my applications. And the generated code is able to make use of two cores and other hardware features of the p2020 processor. Is this correct? What is the effect if I do not add these -m options?



I list some of the compiler/assembler options below:

CC="powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

CXX="powerpc-poky-linux-gnuspe-g++  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

CPP="powerpc-poky-linux-gnuspe-gcc -E  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

AS="powerpc-poky-linux-gnuspe-as "

LD="powerpc-poky-linux-gnuspe-ld  --sysroot=$SDKTARGETSYSROOT"



  1.  If these -m options are not good to use, do I need to build the compilers with different configurations? Or add different machine dependent options?
  2.  Are there any documents/references of these machine-dependent options besides the -target-help from the command line?


If this not the right place for the questions, please kindly point me to the right source.

Thank you very much for the help!


[-- Attachment #2: Type: text/html, Size: 6729 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Yocto standard SDK machine dependent compiler options
  2019-03-22  1:39 Yocto standard SDK machine dependent compiler options Tsai, Matt
@ 2019-03-22  5:34 ` Zhenhua Luo
  2019-03-22 16:55   ` Tsai, Matt
  0 siblings, 1 reply; 4+ messages in thread
From: Zhenhua Luo @ 2019-03-22  5:34 UTC (permalink / raw)
  To: Tsai, Matt; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2447 bytes --]

Hi Matt,

The cross-build gcc is shared by different PPC architecture, including e500v2, e500mc, e5500 and e6500, those -m parameters are necessary for cross-compiling of specific core type. The following manual may be helpful to understand of Yocto SDK.

https://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html


Best Regards,

Zhenhua

From: meta-freescale-bounces@yoctoproject.org <meta-freescale-bounces@yoctoproject.org> On Behalf Of Tsai, Matt
Sent: Friday, March 22, 2019 9:40 AM
To: meta-freescale@yoctoproject.org
Subject: [meta-freescale] Yocto standard SDK machine dependent compiler options

Hi all,

I have built the standard Yocto SDK using the "bitbake <image> -c populate_sdk" command. I have some questions related to the generated toolchain. I wonder if I can get my doubts cleared here.

Here are my hardware/software info:
Target platform is Freescale p2020 rdb.
Yocto versions used to build the SDK:
Poky: tag "sumo-19.0.1"
Meta-freescale: sumo branch commit hash: 407c6cf408969445031a492e2d25e0e2749582ea (on Oct. 4, 2018)

Questions:

  1.  The generated SDK contains a script environment-setup-ppce500v3-poky-linux-gnuspe to source some machine-dependent compiler options. I assume these are good (if not optimal) options to use when I build my applications. And the generated code is able to make use of two cores and other hardware features of the p2020 processor. Is this correct? What is the effect if I do not add these -m options?



I list some of the compiler/assembler options below:

CC="powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

CXX="powerpc-poky-linux-gnuspe-g++  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

CPP="powerpc-poky-linux-gnuspe-gcc -E  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

AS="powerpc-poky-linux-gnuspe-as "

LD="powerpc-poky-linux-gnuspe-ld  --sysroot=$SDKTARGETSYSROOT"



  1.  If these -m options are not good to use, do I need to build the compilers with different configurations? Or add different machine dependent options?
  2.  Are there any documents/references of these machine-dependent options besides the -target-help from the command line?


If this not the right place for the questions, please kindly point me to the right source.

Thank you very much for the help!


[-- Attachment #2: Type: text/html, Size: 9236 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Yocto standard SDK machine dependent compiler options
  2019-03-22  5:34 ` Zhenhua Luo
@ 2019-03-22 16:55   ` Tsai, Matt
  2019-03-24 13:23     ` Zhenhua Luo
  0 siblings, 1 reply; 4+ messages in thread
From: Tsai, Matt @ 2019-03-22 16:55 UTC (permalink / raw)
  To: Zhenhua Luo; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 3612 bytes --]

Hi Zhenhua,

Thank you for the answer.
So the -m options generated by Yocto SDK below is for e500v2, correct? If not, could you please explain?
CC="powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"


Thank you,

Matt

From: Zhenhua Luo [mailto:zhenhua.luo@nxp.com]
Sent: Thursday, March 21, 2019 10:34 PM
To: Tsai, Matt <matt.tsai@thermofisher.com>
Cc: meta-freescale@yoctoproject.org
Subject: RE: [meta-freescale] Yocto standard SDK machine dependent compiler options

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hi Matt,

The cross-build gcc is shared by different PPC architecture, including e500v2, e500mc, e5500 and e6500, those -m parameters are necessary for cross-compiling of specific core type. The following manual may be helpful to understand of Yocto SDK.

https://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.yoctoproject.org_docs_2.1_sdk-2Dmanual_sdk-2Dmanual.html&d=DwMFAg&c=q6k2DsTcEGCcCb_WtVSz6hhIl8hvYssy7sH8ZwfbbKU&r=LfbDghM-XW_5RT-h77pAoNBiz4zBr-sjgQI-UHuV1XU&m=RCny5C9_tLC_vxGRzsNm4uzPkBvCPTLctGd2Sn5ag_Y&s=ZmH1Fjk1Ko_9xWVl3tjVnHNAj8J_3ns7IX4vOjY-kiw&e=>


Best Regards,

Zhenhua

From: meta-freescale-bounces@yoctoproject.org<mailto:meta-freescale-bounces@yoctoproject.org> <meta-freescale-bounces@yoctoproject.org<mailto:meta-freescale-bounces@yoctoproject.org>> On Behalf Of Tsai, Matt
Sent: Friday, March 22, 2019 9:40 AM
To: meta-freescale@yoctoproject.org<mailto:meta-freescale@yoctoproject.org>
Subject: [meta-freescale] Yocto standard SDK machine dependent compiler options

Hi all,

I have built the standard Yocto SDK using the "bitbake <image> -c populate_sdk" command. I have some questions related to the generated toolchain. I wonder if I can get my doubts cleared here.

Here are my hardware/software info:
Target platform is Freescale p2020 rdb.
Yocto versions used to build the SDK:
Poky: tag "sumo-19.0.1"
Meta-freescale: sumo branch commit hash: 407c6cf408969445031a492e2d25e0e2749582ea (on Oct. 4, 2018)

Questions:

  1.  The generated SDK contains a script environment-setup-ppce500v3-poky-linux-gnuspe to source some machine-dependent compiler options. I assume these are good (if not optimal) options to use when I build my applications. And the generated code is able to make use of two cores and other hardware features of the p2020 processor. Is this correct? What is the effect if I do not add these -m options?



I list some of the compiler/assembler options below:

CC="powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

CXX="powerpc-poky-linux-gnuspe-g++  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

CPP="powerpc-poky-linux-gnuspe-gcc -E  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

AS="powerpc-poky-linux-gnuspe-as "

LD="powerpc-poky-linux-gnuspe-ld  --sysroot=$SDKTARGETSYSROOT"



  1.  If these -m options are not good to use, do I need to build the compilers with different configurations? Or add different machine dependent options?
  2.  Are there any documents/references of these machine-dependent options besides the -target-help from the command line?


If this not the right place for the questions, please kindly point me to the right source.

Thank you very much for the help!


[-- Attachment #2: Type: text/html, Size: 11258 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Yocto standard SDK machine dependent compiler options
  2019-03-22 16:55   ` Tsai, Matt
@ 2019-03-24 13:23     ` Zhenhua Luo
  0 siblings, 0 replies; 4+ messages in thread
From: Zhenhua Luo @ 2019-03-24 13:23 UTC (permalink / raw)
  To: Tsai, Matt; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 4302 bytes --]

Hi Matt,

Your understanding is right.


Best Regards,

Zhenhua

From: Tsai, Matt <matt.tsai@thermofisher.com>
Sent: Saturday, March 23, 2019 12:56 AM
To: Zhenhua Luo <zhenhua.luo@nxp.com>
Cc: meta-freescale@yoctoproject.org
Subject: RE: [meta-freescale] Yocto standard SDK machine dependent compiler options

Hi Zhenhua,

Thank you for the answer.
So the -m options generated by Yocto SDK below is for e500v2, correct? If not, could you please explain?
CC="powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"


Thank you,

Matt

From: Zhenhua Luo [mailto:zhenhua.luo@nxp.com]
Sent: Thursday, March 21, 2019 10:34 PM
To: Tsai, Matt <matt.tsai@thermofisher.com<mailto:matt.tsai@thermofisher.com>>
Cc: meta-freescale@yoctoproject.org<mailto:meta-freescale@yoctoproject.org>
Subject: RE: [meta-freescale] Yocto standard SDK machine dependent compiler options

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hi Matt,

The cross-build gcc is shared by different PPC architecture, including e500v2, e500mc, e5500 and e6500, those -m parameters are necessary for cross-compiling of specific core type. The following manual may be helpful to understand of Yocto SDK.

https://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__www.yoctoproject.org_docs_2.1_sdk-2Dmanual_sdk-2Dmanual.html%26d%3DDwMFAg%26c%3Dq6k2DsTcEGCcCb_WtVSz6hhIl8hvYssy7sH8ZwfbbKU%26r%3DLfbDghM-XW_5RT-h77pAoNBiz4zBr-sjgQI-UHuV1XU%26m%3DRCny5C9_tLC_vxGRzsNm4uzPkBvCPTLctGd2Sn5ag_Y%26s%3DZmH1Fjk1Ko_9xWVl3tjVnHNAj8J_3ns7IX4vOjY-kiw%26e%3D&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cc420789d8b5247388f0408d6aee73be1%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636888705511855323&sdata=K84LXLIZmt4DByMue45HsRZKVfW5FYICyhGBaOZbuh8%3D&reserved=0>


Best Regards,

Zhenhua

From: meta-freescale-bounces@yoctoproject.org<mailto:meta-freescale-bounces@yoctoproject.org> <meta-freescale-bounces@yoctoproject.org<mailto:meta-freescale-bounces@yoctoproject.org>> On Behalf Of Tsai, Matt
Sent: Friday, March 22, 2019 9:40 AM
To: meta-freescale@yoctoproject.org<mailto:meta-freescale@yoctoproject.org>
Subject: [meta-freescale] Yocto standard SDK machine dependent compiler options

Hi all,

I have built the standard Yocto SDK using the "bitbake <image> -c populate_sdk" command. I have some questions related to the generated toolchain. I wonder if I can get my doubts cleared here.

Here are my hardware/software info:
Target platform is Freescale p2020 rdb.
Yocto versions used to build the SDK:
Poky: tag "sumo-19.0.1"
Meta-freescale: sumo branch commit hash: 407c6cf408969445031a492e2d25e0e2749582ea (on Oct. 4, 2018)

Questions:

  1.  The generated SDK contains a script environment-setup-ppce500v3-poky-linux-gnuspe to source some machine-dependent compiler options. I assume these are good (if not optimal) options to use when I build my applications. And the generated code is able to make use of two cores and other hardware features of the p2020 processor. Is this correct? What is the effect if I do not add these -m options?



I list some of the compiler/assembler options below:

CC="powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

CXX="powerpc-poky-linux-gnuspe-g++  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

CPP="powerpc-poky-linux-gnuspe-gcc -E  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

AS="powerpc-poky-linux-gnuspe-as "

LD="powerpc-poky-linux-gnuspe-ld  --sysroot=$SDKTARGETSYSROOT"



  1.  If these -m options are not good to use, do I need to build the compilers with different configurations? Or add different machine dependent options?
  2.  Are there any documents/references of these machine-dependent options besides the -target-help from the command line?


If this not the right place for the questions, please kindly point me to the right source.

Thank you very much for the help!


[-- Attachment #2: Type: text/html, Size: 13386 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-25 21:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-22  1:39 Yocto standard SDK machine dependent compiler options Tsai, Matt
2019-03-22  5:34 ` Zhenhua Luo
2019-03-22 16:55   ` Tsai, Matt
2019-03-24 13:23     ` Zhenhua Luo

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.