wayland: Add target sysroot scanner m4 macro

With the new aclocals process, accesses to the macros is a lot stricter and
the native macros are not used. We need to ensure the modified macros are used
in target builds to get the correct scanner functionality. Inserting the
native macro into the target is the correct thing to do in this case.

This resolves build failures in libva.

(From OE-Core rev: ad9bd9ce164c9cb1212de27fec84ad0fe5214bb2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2014-03-07 10:49:59 +00:00
parent b7f1cca517
commit 7b70586a31
1 changed files with 4 additions and 0 deletions

View File

@ -34,3 +34,7 @@ do_install_append_class-native() {
-e 's,$PKG_CONFIG,pkg-config-native,g' \
-i ${D}/${datadir}/aclocal/wayland-scanner.m4
}
sysroot_stage_all_append_class-target () {
cp ${STAGING_DATADIR_NATIVE}/aclocal/wayland-scanner.m4 ${SYSROOT_DESTDIR}/${datadir}/aclocal/
}