[OE-core] [PATCH 5/30] bitbake.conf: Override FILES_${PN}-bin for mingw32

Nathan Rossi nathan at nathanrossi.com
Mon Jan 16 14:15:10 UTC 2017


On MinGW32 targets (aka Windows) it is convention to have DLLs in bindir
along side the executables. This is due to how Windows does not have a
bindir/libdir separation and thus cannot handle dynamic loading in the
same way as other targets (e.g. glibc). To avoid grouping anything other
that .exe files into the ${PN}-bin packages, override it so that on
mingw32 targets only '${bindir}/*.exe' files are shipped by default.

Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
---
 meta/conf/bitbake.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 5dbcf5c441..6eb60a8553 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -292,6 +292,8 @@ FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS}
             ${libdir}/bonobo/servers"
 
 FILES_${PN}-bin = "${bindir}/* ${sbindir}/*"
+# For mingw32 limit the -bin pkg to only have .exe's
+FILES_${PN}-bin_mingw32 = "${bindir}/*.exe ${sbindir}/*.exe"
 
 FILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \
             ${datadir}/gnome/help"
-- 
2.11.0




More information about the Openembedded-core mailing list