diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-05-20 14:16:26 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-05-20 14:16:26 +0100 |
commit | 769cf0b6b03277dd56ac03b9335e6d90e0a7261d (patch) | |
tree | 4638cb38495385ee86d9993683b4da6b259802dd | |
parent | 3da120a87247a2f8076e4e28e40615474a12bbc1 (diff) | |
download | poky-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.bbclass | 3 |
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 | ||
21 | PACKAGES_DYNAMIC += "kernel-module-*" | 21 | PACKAGES_DYNAMIC += "kernel-module-*" |
22 | PACKAGES_DYNAMIC += "kernel-image-*" | 22 | PACKAGES_DYNAMIC += "kernel-image-*" |
23 | PACKAGES_DYNAMIC += "kernel-firmware-*" | ||
23 | 24 | ||
24 | export OS = "${TARGET_OS}" | 25 | export OS = "${TARGET_OS}" |
25 | export CROSS_COMPILE = "${TARGET_PREFIX}" | 26 | export 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 |