diff options
author | Dan McGregor <dan.mcgregor@usask.ca> | 2015-01-27 11:21:12 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-03 14:53:42 +0000 |
commit | ca641aedff5f6bd155796ead02cb2eb871f8c17a (patch) | |
tree | 5dd7ec704f004814267ab8e1cc353f7048fddff0 /meta/lib | |
parent | 815a7b6fbf3b0cf95f5464bca687d97366d7ed6a (diff) | |
download | openembedded-core-ca641aedff5f6bd155796ead02cb2eb871f8c17a.tar.gz openembedded-core-ca641aedff5f6bd155796ead02cb2eb871f8c17a.tar.bz2 openembedded-core-ca641aedff5f6bd155796ead02cb2eb871f8c17a.zip |
image.bbclass: make kernel depmod data optional
This allows an image to skip the creation of kernel depmod
data. It is useful for creating an image that will run as a
container image inside a host with no knowledge of the parent's
kernel.
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/rootfs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 19aef2a1de..f42a2ae7b3 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -124,7 +124,8 @@ class Rootfs(object): self._run_ldconfig() - self._generate_kernel_module_deps() + if self.d.getVar('USE_DEPMOD', True) != "0": + self._generate_kernel_module_deps() self._cleanup() |