Message ID | 20231019214827.405886-2-bhstalel@gmail.com |
---|---|
State | New |
Headers | show |
Series | [1/3] ref-manual: variabls: Add RECIPE_SYSROOT and RECIPE_SYSROOT_NATIVE variables | expand |
Hi Talel On 19.10.23 at 23:48, BELHADJ SALEM Talel wrote: > Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com> > --- > documentation/ref-manual/variables.rst | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst > index 22787f3b4..958b98fd6 100644 > --- a/documentation/ref-manual/variables.rst > +++ b/documentation/ref-manual/variables.rst > @@ -9134,6 +9134,16 @@ system and gives an overview of their function and contents. > portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK` > applying to SDKs. > > + :term:`TOOLCHAIN_OPTIONS` > + This variable holds extra options passed to the compiler and the linker > + for non ``-native`` recipes as they have to point to their custom > + ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`:: > + > + TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}" > + > + Native recipes don't need this variable to be set, as they are > + built for the host machine with the native compiler. > + > :term:`TOOLCHAIN_OUTPUTNAME` > This variable defines the name used for the toolchain output. The > :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> This patch looks great, but I need the update to your RECIPE_SYSROOT patch before I can merge it. Thanks in advance Cheers Michael.
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 22787f3b4..958b98fd6 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -9134,6 +9134,16 @@ system and gives an overview of their function and contents. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK` applying to SDKs. + :term:`TOOLCHAIN_OPTIONS` + This variable holds extra options passed to the compiler and the linker + for non ``-native`` recipes as they have to point to their custom + ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`:: + + TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}" + + Native recipes don't need this variable to be set, as they are + built for the host machine with the native compiler. + :term:`TOOLCHAIN_OUTPUTNAME` This variable defines the name used for the toolchain output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com> --- documentation/ref-manual/variables.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)