[oe,1/2] meson: enable process reporting for do_compile

Message ID 1496418916-17305-1-git-send-email-ross.burton@intel.com
State New
Headers show
Series
  • [oe,1/2] meson: enable process reporting for do_compile
Related show

Commit Message

Ross Burton June 2, 2017, 3:55 p.m.
Ninja outputs progress information during a build (for example [12/34]) so we
can tell bitbake how to parse this.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta-oe/classes/meson.bbclass | 1 +
 1 file changed, 1 insertion(+)

-- 
2.8.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Comments

Ross Burton June 5, 2017, 11:01 a.m. | #1
Just realised that my local master was out of date and these don't apply
anymore, I'll rebase and resend.

Ross

On 2 June 2017 at 16:55, Ross Burton <ross.burton@intel.com> wrote:

> Ninja outputs progress information during a build (for example [12/34]) so

> we

> can tell bitbake how to parse this.

>

> Signed-off-by: Ross Burton <ross.burton@intel.com>

> ---

>  meta-oe/classes/meson.bbclass | 1 +

>  1 file changed, 1 insertion(+)

>

> diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass

> index 5a04134..42f4005 100644

> --- a/meta-oe/classes/meson.bbclass

> +++ b/meta-oe/classes/meson.bbclass

> @@ -75,6 +75,7 @@ meson_do_configure() {

>      fi

>  }

>

> +do_compile[progress] = "outof:^\[(\d+)/(\d+)\]"

>  meson_do_compile() {

>      ninja ${PARALLEL_MAKE}

>  }

> --

> 2.8.1

>

>

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
index 5a04134..42f4005 100644
--- a/meta-oe/classes/meson.bbclass
+++ b/meta-oe/classes/meson.bbclass
@@ -75,6 +75,7 @@  meson_do_configure() {
     fi
 }
 
+do_compile[progress] = "outof:^\[(\d+)/(\d+)\]"
 meson_do_compile() {
     ninja ${PARALLEL_MAKE}
 }