summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-05-20 14:16:26 +0100
committerJoshua Lock <josh@linux.intel.com>2010-05-20 14:16:26 +0100
commit769cf0b6b03277dd56ac03b9335e6d90e0a7261d (patch)
tree4638cb38495385ee86d9993683b4da6b259802dd
parent3da120a87247a2f8076e4e28e40615474a12bbc1 (diff)
downloadpoky-769cf0b6b03277dd56ac03b9335e6d90e0a7261d.tar.gz
kernel.bbclass: Package Kernel firmware
Merged change from OE.dev to create packages of the kernel firmware Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--meta/classes/kernel.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 966b9940c3..5b02e62fdd 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -20,6 +20,7 @@ inherit kernel-arch
20 20
21PACKAGES_DYNAMIC += "kernel-module-*" 21PACKAGES_DYNAMIC += "kernel-module-*"
22PACKAGES_DYNAMIC += "kernel-image-*" 22PACKAGES_DYNAMIC += "kernel-image-*"
23PACKAGES_DYNAMIC += "kernel-firmware-*"
23 24
24export OS = "${TARGET_OS}" 25export OS = "${TARGET_OS}"
25export CROSS_COMPILE = "${TARGET_PREFIX}" 26export CROSS_COMPILE = "${TARGET_PREFIX}"
@@ -431,6 +432,8 @@ python populate_packages_prepend () {
431 432
432 postinst = bb.data.getVar('pkg_postinst_modules', d, 1) 433 postinst = bb.data.getVar('pkg_postinst_modules', d, 1)
433 postrm = bb.data.getVar('pkg_postrm_modules', d, 1) 434 postrm = bb.data.getVar('pkg_postrm_modules', d, 1)
435 do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.bin$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
436 do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.fw$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
434 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)) 437 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))
435 438
436 import re 439 import re