diff options
author | Dan McGregor <dan.mcgregor@usask.ca> | 2015-01-27 11:21:12 -0600 |
---|---|---|
committer | Dan McGregor <dan.mcgregor@usask.ca> | 2015-02-05 08:51:15 -0600 |
commit | 1994352e01003ccb6ac30e7d8d68449e48102ba2 (patch) | |
tree | 3fedcb77d92d18f126214a1bed1c8120a4359bc1 /meta | |
parent | f56ca186b28e0ce379b891883f585b8eff9a742c (diff) | |
download | openembedded-core-contrib-1994352e01003ccb6ac30e7d8d68449e48102ba2.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image.bbclass | 1 | ||||
-rw-r--r-- | meta/lib/oe/rootfs.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 1c0fda7d60..06353aa18a 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -63,6 +63,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}" EXCLUDE_FROM_WORLD = "1" USE_DEVFS ?= "1" +USE_DEPMOD ?= "1" PID = "${@os.getpid()}" diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index c4735f2755..5a43337a42 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() |