summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2019-12-11 12:08:18 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-16 23:25:49 +0000
commitdd18244afa5cdd56e30a67489ebcb04875d541b6 (patch)
tree8dfa925eb06d2d40f7ac425e71d9da33f4445792 /meta/classes
parent580e45c7633efde6013d5acbb4042dc010d3c3fe (diff)
downloadpoky-dd18244afa5cdd56e30a67489ebcb04875d541b6.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. (From OE-Core rev: 5b12211ef7856bedafd356f6b7a03add46eca6c7) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/meson.bbclass3
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}"
12def noprefix(var, d): 12def noprefix(var, d):
13 return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1) 13 return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1)
14 14
15MESON_BUILDTYPE ?= "plain"
15MESONOPTS = " --prefix ${prefix} \ 16MESONOPTS = " --prefix ${prefix} \
16 --buildtype plain \ 17 --buildtype ${MESON_BUILDTYPE} \
17 --bindir ${@noprefix('bindir', d)} \ 18 --bindir ${@noprefix('bindir', d)} \
18 --sbindir ${@noprefix('sbindir', d)} \ 19 --sbindir ${@noprefix('sbindir', d)} \
19 --datadir ${@noprefix('datadir', d)} \ 20 --datadir ${@noprefix('datadir', d)} \