[meta-mentor] [PATCH 1/1] Added a few commented out build options, such as BB_NO_NETWORK and r/o root FS. Also added a mklibs section from the meta-yocto local.conf.extended, since we don't supply that file as part of our build.

Chris Larson clarson at kergoth.com
Mon May 13 12:29:15 PDT 2013


On Fri, May 10, 2013 at 4:21 PM, Michael Brown <eichisama at gmail.com> wrote:

> Signed-off-by: Michael Brown <mw_brown at mentor.com>
>

First issue, the commit message doesn't meet standard git commit message
conventions or our requirements. The first line is the subject, and
generally doesn't exceed 50 characters. This is followed by a blank line,
then the detailed description.


> ---
>  conf/local.conf.in |   32 +++++++++++++++++++++++++++++++-
>  1 file changed, 31 insertions(+), 1 deletion(-)
>
> diff --git a/conf/local.conf.in b/conf/local.conf.in
> index b2691b3..0741e22 100644
> --- a/conf/local.conf.in
> +++ b/conf/local.conf.in
> @@ -139,9 +139,18 @@ SSTATE_DIR ?= "${MELDIR}/cached-binaries"
>  #   - 'image-prelink' in order to prelink the filesystem image
>  #   - 'image-swab' to perform host system intrusion detection
>  # NOTE: if listing mklibs & prelink both, then make sure mklibs is before
> prelink
> -# NOTE: mklibs also needs to be explicitly enabled for a given image, see
> local.conf.extended
> +# NOTE: mklibs also needs to be explicitly enabled for a given image, see
> next section below
>  USER_CLASSES ?= "image-mklibs image-prelink"
>
> +# mklibs library size optimization is more useful to smaller images,
> +# and less useful for bigger images. Also mklibs library optimization
> +# can break the ABI compatibility, so should not be applied to the
> +# images which are to be extended or upgraded later.
> +#This enabled mklibs library size optimization just for the specified
> image.
> +#MKLIBS_OPTIMIZED_IMAGES ?= "core-image-minimal"
> +#This enable mklibs library size optimization will be for all the images.
> +#MKLIBS_OPTIMIZED_IMAGES ?= "all"
> +
>  # Interactive shell configuration
>  #
>  # Under certain circumstances the system may need input from you and to
> do this it
> @@ -186,3 +195,24 @@ USER_CLASSES ?= "image-mklibs image-prelink"
>  # track the version of this file when it was generated. This can safely
> be ignored if
>  # this doesn't mean anything to you.
>  CONF_VERSION = "1"
> +
> +# Uncomment the following lines to enable building and adding of the bad,
> ugly, and
> +# otherwise risky gstreamer plugins
> +#IMAGE_INSTALL_append += " packagegroup-multimedia-risky"
>

I'd suggest using CORE_IMAGE_EXTRA_INSTALL without _append here, as that's
what we recommend people use, and in fact that variable is referenced
earlier in the file.


> +#LICENSE_FLAGS_WHITELIST += " commercial_gst-ffmpeg
> commercial_gst-plugin-asf commercial_gst-plugins-ugly
> commercial_gst-plugins-bad"
> +#LICENSE_FLAGS_WHITELIST += " commercial_mpeg2dec commercial_lame
> commercial_gst-fluendo-mp3 commercial_gst-fluendo-mpegdemux"
> +#LICENSE_FLAGS_WHITELIST += " commercial_gst-openmax commercial_libomxil"
> +
> +# When building for mx6q, uncomment the following line to accept the
> EULA-protected
> +# FSL proprietary components.  If any FSL proprietary components are
> required for the
> +# build, the build will fail if this is not set.
> +#ACCEPT_FSL_EULA = "1"
> +
> +# Uncomment this line to enable the Read Only root file system
> +#IMAGE_FEATURES_append = " read-only-rootfs "
>

This should be EXTRA_IMAGE_FEATURES +=, but there's no reason this needs to
be at the bottom. I'd add the read-only-rootfs info to the existing
detailed block of information about image features earlier in the file.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-mentor/attachments/20130513/66627bf5/attachment.html>


More information about the meta-mentor mailing list