From: Saul Wold <sgw@linux.intel.com>
To: Constantin Musca <constantinx.musca@intel.com>
Cc: poky@yoctoproject.org
Subject: Re: [PATCH v2] poky-sanity.bbclass: bblayers.conf should be updated automatically
Date: Tue, 02 Oct 2012 18:45:18 -0700 [thread overview]
Message-ID: <506B98AE.4090502@linux.intel.com> (raw)
In-Reply-To: <1348749851-12086-1-git-send-email-constantinx.musca@intel.com>
On 09/27/2012 05:44 AM, Constantin Musca wrote:
> - we need a bbclass (poky-sanity) so that we can append to the
> check_bblayers_conf bitbake function from sanity.bbclass the
> bblayers.conf specific merging functionality
> - add check_bblayers_conf_append bitbake function which does the
> meta-yocto specific updates (the bblayers.conf v5 -> v6 update)
> - every layer should make its specific bblayers.conf updates
> - we ask the user to re-run bitbake because we can't trigger
> reparsing without being invasive
>
> [YOCTO #3082]
>
> Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
> ---
> meta-yocto/classes/poky-sanity.bbclass | 16 ++++++++++++++++
> meta-yocto/conf/distro/poky.conf | 3 +++
> 2 files changed, 19 insertions(+)
> create mode 100644 meta-yocto/classes/poky-sanity.bbclass
>
> diff --git a/meta-yocto/classes/poky-sanity.bbclass b/meta-yocto/classes/poky-sanity.bbclass
> new file mode 100644
> index 0000000..1c7514f
> --- /dev/null
> +++ b/meta-yocto/classes/poky-sanity.bbclass
> @@ -0,0 +1,16 @@
> +python check_bblayers_conf_append() {
> + if current_lconf != lconf_version:
> + if current_lconf == 5:
> + index, meta_yocto_line = find_line('meta-yocto\s*\\\\\\n', lines)
> + if meta_yocto_line:
> + lines.insert(index + 1, meta_yocto_line.replace('meta-yocto',
> + 'meta-yocto-bsp'))
> + else:
> + sys.exit()
> +
> + index, line = find_line('LCONF_VERSION', lines)
> + current_lconf += 1
> + lines[index] = 'LCONF_VERSION = "%d"\n' % current_lconf
> + with open(bblayers_fn, "w") as f:
> + f.write(''.join(lines))
> +}
> diff --git a/meta-yocto/conf/distro/poky.conf b/meta-yocto/conf/distro/poky.conf
> index de82543..f7f03db 100644
> --- a/meta-yocto/conf/distro/poky.conf
> +++ b/meta-yocto/conf/distro/poky.conf
> @@ -93,6 +93,9 @@ BB_SIGNATURE_HANDLER ?= 'OEBasicHash'
> #
> OELAYOUT_ABI = "8"
>
> +# add poky sanity bbclass
> +INHERIT += "poky-sanity"
> +
> #WARN_QA = "unsafe-references-in-binaries unsafe-references-in-scripts"
> WARN_QA = ""
> ERROR_QA = "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms useless-rpaths rpaths staticdev ldflags"
>
Merged into Poky Master
Thanks
Sau!
prev parent reply other threads:[~2012-10-03 1:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-27 12:44 [PATCH v2] poky-sanity.bbclass: bblayers.conf should be updated automatically Constantin Musca
2012-10-03 1:45 ` Saul Wold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=506B98AE.4090502@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=constantinx.musca@intel.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.