summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2009-06-17 14:32:56 +0100
committerPhil Blundell <philb@gnu.org>2009-06-17 14:32:56 +0100
commitcbef7988989e4a0ca7822c78a58b5da6bbc6eb6b (patch)
tree8e62dc7525f3fe9ca72104cfa2013f672b88e760 /classes
parent369231aee815fd14a4a5719f3adfb4557774c35a (diff)
kernel.bbclass: don't add dependency on update-modules if not doing O_P_M
Diffstat (limited to 'classes')
-rw-r--r--classes/kernel.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 1323228a74..ae7e643ca7 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -441,10 +441,14 @@ python populate_packages_prepend () {
postinst = bb.data.getVar('pkg_postinst_modules', d, 1)
postrm = bb.data.getVar('pkg_postrm_modules', d, 1)
+
+ maybe_update_modules = "update-modules "
+ if bb.data.getVar("ONLINE_PACKAGE_MANAGEMENT", d) == "none":
+ maybe_update_modules = ""
do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.bin$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.fw$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
- do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='update-modules kernel-%s' % bb.data.getVar("KERNEL_VERSION", d, 1))
+ do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='%skernel-%s' % (maybe_update_modules, bb.data.getVar("KERNEL_VERSION", d, 1)))
import re, os
metapkg = "kernel-modules"