From 6a70a3366d68121b043c413f2e427f208edf15e3 Mon Sep 17 00:00:00 2001 From: BELHADJ SALEM Talel Date: Fri, 20 Oct 2023 10:41:01 +0100 Subject: ref-manual: variables: add TOOLCHAIN_OPTIONS variable (From yocto-docs rev: 6f7bd97a6d3d6d8cfd149a7e07df35da4141e650) Signed-off-by: Talel BELHAJSALEM Reviewed-by: Michael Opdenacker Signed-off-by: Richard Purdie --- documentation/ref-manual/variables.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'documentation') diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 097a5fac5c..0fff292ad1 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -9135,6 +9135,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 ` class sets -- cgit v1.2.3-54-g00ecf