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:53 +0000 |
commit | 491d1db8d186f52a1372ebbcc97424882f61a673 (patch) | |
tree | d6d1aaeb04bc26d259f0eb4e070c2fa0e156136f | |
parent | 616696aaa6b321c3ad4ce7a2d4d5f8918091e198 (diff) | |
download | poky-491d1db8d186f52a1372ebbcc97424882f61a673.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.
(From OE-Core rev: ca641aedff5f6bd155796ead02cb2eb871f8c17a)
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 f09bfeea27..b2a3e97820 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -66,6 +66,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}" | |||
66 | EXCLUDE_FROM_WORLD = "1" | 66 | EXCLUDE_FROM_WORLD = "1" |
67 | 67 | ||
68 | USE_DEVFS ?= "1" | 68 | USE_DEVFS ?= "1" |
69 | USE_DEPMOD ?= "1" | ||
69 | 70 | ||
70 | PID = "${@os.getpid()}" | 71 | PID = "${@os.getpid()}" |
71 | 72 | ||
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): | |||
124 | 124 | ||
125 | self._run_ldconfig() | 125 | self._run_ldconfig() |
126 | 126 | ||
127 | self._generate_kernel_module_deps() | 127 | if self.d.getVar('USE_DEPMOD', True) != "0": |
128 | self._generate_kernel_module_deps() | ||
128 | 129 | ||
129 | self._cleanup() | 130 | self._cleanup() |
130 | 131 | ||