Download meta.bbclass - Yocto Project

Transcript
Variables Glossary
that you have set up manually using git remote within the local
repository.
By default, the buildhistory class sets the variable as follows:
BUILDHISTORY_PUSH_REPO ?= ""
BUILDSDK_CFLAGS
Specifies the flags to pass to the C compiler when building for the
SDK. When building in the nativesdk context, CFLAGS is set to the
value of this variable by default.
BUILDSDK_CPPFLAGS
Specifies the flags to pass to the C pre-processor (i.e. to both the C
and the C++ compilers) when building for the SDK. When building in
the nativesdk context, CPPFLAGS is set to the value of this variable
by default.
BUILDSDK_CXXFLAGS
Specifies the flags to pass to the C++ compiler when building for the
SDK. When building in the nativesdk context, CXXFLAGS is set to the
value of this variable by default.
BUILDSDK_LDFLAGS
Specifies the flags to pass to the linker when building for the SDK.
When building in the nativesdk- context, LDFLAGS is set to the value
of this variable by default.
BUILDSTATS_BASE
Points to the location of the directory that holds build statistics when
you use and enable the buildstats class. The BUILDSTATS_BASE
directory defaults to ${TMPDIR}/buildstats/.
BUSYBOX_SPLIT_SUID
For the BusyBox recipe, specifies whether to split the output
executable file into two parts: one for features that require setuid
root, and one for the remaining features (i.e. those that do not
require setuid root).
The BUSYBOX_SPLIT_SUID variable defaults to "1", which results in
a single output executable file. Set the variable to "0" to split the
output file.
C
CFLAGS
Specifies the flags to pass to the C compiler. This variable is exported
to an environment variable and thus made visible to the software
being built during the compilation step.
Default initialization for CFLAGS varies depending on what is being
built:
• TARGET_CFLAGS when building for the target
• BUILD_CFLAGS when building for the build host (i.e. -native)
• BUILDSDK_CFLAGS when building for an SDK (i.e. nativesdk-)
CLASSOVERRIDE
An internal variable specifying the special class override that should
currently apply (e.g. "class-target", "class-native", and so forth). The
classes that use this variable set it to appropriate values.
You do not normally directly interact with this variable. The value for
the CLASSOVERRIDE variable goes into OVERRIDES and then can be
used as an override. Here is an example where "python-native" is
added to DEPENDS only when building for the native case:
DEPENDS_append_class-native = " python-native"
134