summaryrefslogtreecommitdiffstats
path: root/meta/classes/module.bbclass
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-01-29 14:38:11 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-30 00:03:01 +0000
commit27c8af1e3a9092caa19bd813c4dd0747de766dc5 (patch)
tree7e8ff7e35a7b94a05e37e17dd4694c2cdb600c49 /meta/classes/module.bbclass
parent96180955d06e9ae74cd8e8c2a980167c485c2df1 (diff)
downloadpoky-27c8af1e3a9092caa19bd813c4dd0747de766dc5.tar.gz
module.bbclass: Don't add pkg_postinst/pkg_prerm to all packages in recipe
The code in module.bbclass was appending the pkg_postinst and pkg_prerm to all packages that are part of a given recipe, meaning that the -lic, -dev, -doc, ... packages all got the scriptlet This change uses only which macthes with the RDEPENDS and FILES already used in module.bbclass. The failure was that rootfs creation would fail due to the -lic package being installed before the kernel and the script would fail. [YOCTO #3803] (From OE-Core rev: cf05c4578c99c0cb885cf2706f7f2b39b100aeb8) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/module.bbclass')
-rw-r--r--meta/classes/module.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index d477caa065..c933d3226d 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -25,7 +25,7 @@ module_do_install() {
25 modules_install 25 modules_install
26} 26}
27 27
28pkg_postinst_append () { 28pkg_postinst_${PN}_append () {
29if [ -z "$D" ]; then 29if [ -z "$D" ]; then
30 depmod -a ${KERNEL_VERSION} 30 depmod -a ${KERNEL_VERSION}
31else 31else
@@ -33,7 +33,7 @@ else
33fi 33fi
34} 34}
35 35
36pkg_postrm_append () { 36pkg_postrm_${PN}_append () {
37if [ -z "$D" ]; then 37if [ -z "$D" ]; then
38 depmod -a ${KERNEL_VERSION} 38 depmod -a ${KERNEL_VERSION}
39else 39else