summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-09-26 20:39:20 +0000
committerKoen Kooi <koen@openembedded.org>2008-09-26 20:39:20 +0000
commitd35da4584a795013d002a6c33eb22df263db4761 (patch)
treef61113cc9fd763b855c5c7ccff691307c37a8473 /classes
parente45a8099b1d62755e764cc44b219a7d43d79647c (diff)
kernel.bbclass: prepare for 2.6.27 style external firmware
* see http://lwn.net/Articles/284932/ * does *NOT* have dependency code, RRECOMMENDS for firmwares need to be added manually
Diffstat (limited to 'classes')
-rw-r--r--classes/kernel.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index d0db4c70d2..266a89dd9a 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -29,6 +29,7 @@ inherit kernel-arch
PACKAGES_DYNAMIC += "kernel-module-*"
PACKAGES_DYNAMIC += "kernel-image-*"
+PACKAGES_DYNAMIC += "kernel-firmware-*"
export OS = "${TARGET_OS}"
export CROSS_COMPILE = "${TARGET_PREFIX}"
@@ -428,6 +429,9 @@ python populate_packages_prepend () {
postinst = bb.data.getVar('pkg_postinst_modules', d, 1)
postrm = bb.data.getVar('pkg_postrm_modules', d, 1)
+
+ 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))
import re, os