]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: add PN-bin and cleanup lib_package.bbclass
authorSaul Wold <sgw@linux.intel.com>
Wed, 6 Jun 2012 08:16:39 +0000 (01:16 -0700)
committerSaul Wold <sgw@linux.intel.com>
Wed, 20 Jun 2012 04:59:49 +0000 (21:59 -0700)
Since we now have PN as the end of the package list, we can almost get rid of
lib_package, each recipe can just add PACKAGES =+ PN-bin instead of the inherit

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/lib_package.bbclass
meta/conf/bitbake.conf

index 9843ed9f4c260297dde78456e4ef92b8813728c4..1f0542a4ca66ad9ce5e287592c5a91a28ccbbaa0 100644 (file)
@@ -1,8 +1,8 @@
-PACKAGES =+ "${PN}-bin"
+#
+# ${PN}-bin is defined in bitbake.conf
+#
+# We need to allow the other packages to be greedy with what they
+# want out of /bin and /usr/bin before ${PN}-bin gets greedy.
+# 
+PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PN}-bin ${PN}"
 
-FILES_${PN} = "${libexecdir} ${libdir}/lib*${SOLIBS} \
-           ${sysconfdir} ${sharedstatedir} ${localstatedir} \
-           ${base_libdir}/*${SOLIBS} \
-           ${datadir}/${BPN} ${libdir}/${BPN}"
-
-FILES_${PN}-bin = "${bindir}/* ${sbindir}/* /bin/* /sbin/*"
index e0727578e26d925404c2f234fd26e9b54f0ebb76..face25e80c0e1f7850a4c300ca49ac5c0bbd6867 100644 (file)
@@ -266,6 +266,8 @@ FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS}
             ${datadir}/idl ${datadir}/omf ${datadir}/sounds \
             ${libdir}/bonobo/servers"
 
+FILES_${PN}-bin = "${bindir}/* ${sbindir}/*"
+
 FILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \
             ${datadir}/gnome/help"
 SECTION_${PN}-doc = "doc"