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>
This commit is contained in:
parent
616696aaa6
commit
491d1db8d1
|
@ -66,6 +66,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
|
|||
EXCLUDE_FROM_WORLD = "1"
|
||||
|
||||
USE_DEVFS ?= "1"
|
||||
USE_DEPMOD ?= "1"
|
||||
|
||||
PID = "${@os.getpid()}"
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue