diff options
author | Trevor Woerner <twoerner@gmail.com> | 2019-12-11 12:08:18 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-16 23:22:03 +0000 |
commit | 5b12211ef7856bedafd356f6b7a03add46eca6c7 (patch) | |
tree | f2fa7ef26e67bbe3a58724dcb0de080e02717351 /meta/classes/meson.bbclass | |
parent | 469bcfbfe25afd9c480c26f117b81d65cc305fbe (diff) | |
download | openembedded-core-contrib-5b12211ef7856bedafd356f6b7a03add46eca6c7.tar.gz |
meson.bbclass: allow buildtype to be changed
Some upstream projects are employing the buildtype parameter so users
can create, say, "production" versus "debug" builds. Therefore create a
configurable parameter so recipes/users can tweak it.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/meson.bbclass')
-rw-r--r-- | meta/classes/meson.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass index dc8c28963c..e1a13bbbf7 100644 --- a/meta/classes/meson.bbclass +++ b/meta/classes/meson.bbclass @@ -12,8 +12,9 @@ MESON_SOURCEPATH = "${S}" def noprefix(var, d): return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1) +MESON_BUILDTYPE ?= "plain" MESONOPTS = " --prefix ${prefix} \ - --buildtype plain \ + --buildtype ${MESON_BUILDTYPE} \ --bindir ${@noprefix('bindir', d)} \ --sbindir ${@noprefix('sbindir', d)} \ --datadir ${@noprefix('datadir', d)} \ |