* [PATCH 1/5] meson: Update to 0.37.1
@ 2017-03-11 4:58 Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 2/5] meson.bbclass: Add support for more standard installation directories Peter Kjellerstedt
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Peter Kjellerstedt @ 2017-03-11 4:58 UTC (permalink / raw)
To: openembedded-devel
Also make it possible to actually build the native version by avoiding
the runtime dependencies.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta-oe/recipes-devtools/meson/{meson_0.36.0.bb => meson_0.37.1.bb} | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
rename meta-oe/recipes-devtools/meson/{meson_0.36.0.bb => meson_0.37.1.bb} (71%)
diff --git a/meta-oe/recipes-devtools/meson/meson_0.36.0.bb b/meta-oe/recipes-devtools/meson/meson_0.37.1.bb
similarity index 71%
rename from meta-oe/recipes-devtools/meson/meson_0.36.0.bb
rename to meta-oe/recipes-devtools/meson/meson_0.37.1.bb
index 9349fcbbc..a83af77b3 100644
--- a/meta-oe/recipes-devtools/meson/meson_0.36.0.bb
+++ b/meta-oe/recipes-devtools/meson/meson_0.37.1.bb
@@ -6,13 +6,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://github.com/mesonbuild/meson.git"
-SRCREV = "4e3073f90a7b4f225ce7d89034d61cd978399eba"
-PV = "0.36.0"
+SRCREV = "3d4bfdcb22314ea7db45a5b075f8b2a9c1498aab"
S = "${WORKDIR}/git"
inherit setuptools3
-RDEPENDS_${PN} = "ninja python3-core python3-modules"
+RDEPENDS_${PN}_class-target = "ninja python3-core python3-modules"
BBCLASSEXTEND = "native"
--
2.12.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/5] meson.bbclass: Add support for more standard installation directories
2017-03-11 4:58 [PATCH 1/5] meson: Update to 0.37.1 Peter Kjellerstedt
@ 2017-03-11 4:58 ` Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 3/5] meson.bbclass: Make changes to meson.build files trigger reconfiguration Peter Kjellerstedt
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Peter Kjellerstedt @ 2017-03-11 4:58 UTC (permalink / raw)
To: openembedded-devel
A couple of more standard installation directories are supported with
meson 0.37.1, so make sure they are configured.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta-oe/classes/meson.bbclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
index 4be4b1068..1362fd22b 100644
--- a/meta-oe/classes/meson.bbclass
+++ b/meta-oe/classes/meson.bbclass
@@ -18,13 +18,17 @@ def noprefix(var, d):
MESONOPTS = " --prefix ${prefix} \
--bindir ${@noprefix('bindir', d)} \
+ --sbindir ${@noprefix('sbindir', d)} \
--datadir ${@noprefix('datadir', d)} \
--libdir ${@noprefix('libdir', d)} \
--libexecdir ${@noprefix('libexecdir', d)} \
--includedir ${@noprefix('includedir', d)} \
--mandir ${@noprefix('mandir', d)} \
+ --infodir ${@noprefix('infodir', d)} \
--localedir ${@noprefix('localedir', d)} \
- --sysconfdir ${sysconfdir}"
+ --sysconfdir ${sysconfdir} \
+ --localstatedir ${localstatedir} \
+ --sharedstatedir ${sharedstatedir}"
MESON_C_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
--
2.12.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/5] meson.bbclass: Make changes to meson.build files trigger reconfiguration
2017-03-11 4:58 [PATCH 1/5] meson: Update to 0.37.1 Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 2/5] meson.bbclass: Add support for more standard installation directories Peter Kjellerstedt
@ 2017-03-11 4:58 ` Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 4/5] meson.bbclass: Support building for native Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 5/5] meson.bbclass: Use the correct C++ compiler when cross compiling Peter Kjellerstedt
3 siblings, 0 replies; 7+ messages in thread
From: Peter Kjellerstedt @ 2017-03-11 4:58 UTC (permalink / raw)
To: openembedded-devel
When externalsrc.bbclass is used, any changes to meson.build files
should trigger do_configure to be re-run.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta-oe/classes/meson.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
index 1362fd22b..8da06da7f 100644
--- a/meta-oe/classes/meson.bbclass
+++ b/meta-oe/classes/meson.bbclass
@@ -72,6 +72,8 @@ endian = '${MESON_TARGET_ENDIAN}'
EOF
}
+CONFIGURE_FILES = "meson.build"
+
meson_do_configure() {
if ! meson ${MESONOPTS} "${MESON_SOURCEPATH}" "${B}" --cross-file ${WORKDIR}/meson.cross ${EXTRA_OEMESON}; then
cat ${B}/meson-logs/meson-log.txt
--
2.12.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/5] meson.bbclass: Support building for native
2017-03-11 4:58 [PATCH 1/5] meson: Update to 0.37.1 Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 2/5] meson.bbclass: Add support for more standard installation directories Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 3/5] meson.bbclass: Make changes to meson.build files trigger reconfiguration Peter Kjellerstedt
@ 2017-03-11 4:58 ` Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 5/5] meson.bbclass: Use the correct C++ compiler when cross compiling Peter Kjellerstedt
3 siblings, 0 replies; 7+ messages in thread
From: Peter Kjellerstedt @ 2017-03-11 4:58 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta-oe/classes/meson.bbclass | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
index 8da06da7f..e3489dd12 100644
--- a/meta-oe/classes/meson.bbclass
+++ b/meta-oe/classes/meson.bbclass
@@ -9,9 +9,11 @@ do_configure[cleandirs] = "${B}"
# Where the meson.build build configuration is
MESON_SOURCEPATH = "${S}"
-# These variables in the environment override the *native* tools not the cross,
-# so they need to be unexported.
-CC[unexport] = "1"
+# These variables in the environment override the *native* tools, not the cross.
+export CC = "${BUILD_CC}"
+export CXX = "${BUILD_CXX}"
+export LD = "${BUILD_LD}"
+export AR = "${BUILD_AR}"
def noprefix(var, d):
return d.getVar(var, True).replace(d.getVar('prefix', True) + '/', '', 1)
@@ -37,6 +39,9 @@ MESON_TARGET_ENDIAN = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'big',
EXTRA_OEMESON += "${PACKAGECONFIG_CONFARGS}"
+MESON_CROSS_FILE = ""
+MESON_CROSS_FILE_class-target = "--cross-file ${WORKDIR}/meson.cross"
+
def meson_array(var, d):
return "', '".join(d.getVar(var, True).split()).join(("'", "'"))
@@ -75,7 +80,7 @@ EOF
CONFIGURE_FILES = "meson.build"
meson_do_configure() {
- if ! meson ${MESONOPTS} "${MESON_SOURCEPATH}" "${B}" --cross-file ${WORKDIR}/meson.cross ${EXTRA_OEMESON}; then
+ if ! meson ${MESONOPTS} "${MESON_SOURCEPATH}" "${B}" ${MESON_CROSS_FILE} ${EXTRA_OEMESON}; then
cat ${B}/meson-logs/meson-log.txt
bbfatal_log meson failed
fi
--
2.12.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 5/5] meson.bbclass: Use the correct C++ compiler when cross compiling
2017-03-11 4:58 [PATCH 1/5] meson: Update to 0.37.1 Peter Kjellerstedt
` (2 preceding siblings ...)
2017-03-11 4:58 ` [PATCH 4/5] meson.bbclass: Support building for native Peter Kjellerstedt
@ 2017-03-11 4:58 ` Peter Kjellerstedt
2017-03-11 5:11 ` Khem Raj
3 siblings, 1 reply; 7+ messages in thread
From: Peter Kjellerstedt @ 2017-03-11 4:58 UTC (permalink / raw)
To: openembedded-devel
---
meta-oe/classes/meson.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
index e3489dd12..e27ed3906 100644
--- a/meta-oe/classes/meson.bbclass
+++ b/meta-oe/classes/meson.bbclass
@@ -52,7 +52,7 @@ do_write_config() {
cat >${WORKDIR}/meson.cross <<EOF
[binaries]
c = '${HOST_PREFIX}gcc'
-cpp = '${HOST_PREFIX}gcc'
+cpp = '${HOST_PREFIX}g++'
ar = '${HOST_PREFIX}ar'
ld = '${HOST_PREFIX}ld'
strip = '${HOST_PREFIX}strip'
--
2.12.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 5/5] meson.bbclass: Use the correct C++ compiler when cross compiling
2017-03-11 4:58 ` [PATCH 5/5] meson.bbclass: Use the correct C++ compiler when cross compiling Peter Kjellerstedt
@ 2017-03-11 5:11 ` Khem Raj
2017-03-11 5:24 ` Peter Kjellerstedt
0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2017-03-11 5:11 UTC (permalink / raw)
To: openembedded-devel
On 3/10/17 8:58 PM, Peter Kjellerstedt wrote:
> ---
> meta-oe/classes/meson.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
> index e3489dd12..e27ed3906 100644
> --- a/meta-oe/classes/meson.bbclass
> +++ b/meta-oe/classes/meson.bbclass
> @@ -52,7 +52,7 @@ do_write_config() {
> cat >${WORKDIR}/meson.cross <<EOF
> [binaries]
> c = '${HOST_PREFIX}gcc'
> -cpp = '${HOST_PREFIX}gcc'
> +cpp = '${HOST_PREFIX}g++'
is cpp c preprocssor or c++ compiler ? generally cxx is used for c++
compiler
> ar = '${HOST_PREFIX}ar'
> ld = '${HOST_PREFIX}ld'
> strip = '${HOST_PREFIX}strip'
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 5/5] meson.bbclass: Use the correct C++ compiler when cross compiling
2017-03-11 5:11 ` Khem Raj
@ 2017-03-11 5:24 ` Peter Kjellerstedt
0 siblings, 0 replies; 7+ messages in thread
From: Peter Kjellerstedt @ 2017-03-11 5:24 UTC (permalink / raw)
To: Khem Raj, openembedded-devel@lists.openembedded.org
> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Khem Raj
> Sent: den 11 mars 2017 06:12
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [PATCH 5/5] meson.bbclass: Use the correct C++
> compiler when cross compiling
>
> On 3/10/17 8:58 PM, Peter Kjellerstedt wrote:
> > ---
> > meta-oe/classes/meson.bbclass | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta-oe/classes/meson.bbclass b/meta-
> oe/classes/meson.bbclass
> > index e3489dd12..e27ed3906 100644
> > --- a/meta-oe/classes/meson.bbclass
> > +++ b/meta-oe/classes/meson.bbclass
> > @@ -52,7 +52,7 @@ do_write_config() {
> > cat >${WORKDIR}/meson.cross <<EOF
> > [binaries]
> > c = '${HOST_PREFIX}gcc'
> > -cpp = '${HOST_PREFIX}gcc'
> > +cpp = '${HOST_PREFIX}g++'
>
> is cpp c preprocssor or c++ compiler ? generally cxx is used for c++
> compiler
I agree, it is confusing, but in Meson it is actually the C++ compiler.
> > ar = '${HOST_PREFIX}ar'
> > ld = '${HOST_PREFIX}ld'
> > strip = '${HOST_PREFIX}strip'
> >
//Peter
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-03-11 5:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11 4:58 [PATCH 1/5] meson: Update to 0.37.1 Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 2/5] meson.bbclass: Add support for more standard installation directories Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 3/5] meson.bbclass: Make changes to meson.build files trigger reconfiguration Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 4/5] meson.bbclass: Support building for native Peter Kjellerstedt
2017-03-11 4:58 ` [PATCH 5/5] meson.bbclass: Use the correct C++ compiler when cross compiling Peter Kjellerstedt
2017-03-11 5:11 ` Khem Raj
2017-03-11 5:24 ` Peter Kjellerstedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox