From: Dan McGregor Date: Tue, 27 Jan 2015 17:21:12 +0000 (-0600) Subject: image.bbclass: make kernel depmod data optional X-Git-Tag: 2015-4~561 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ca641aedff5f6bd155796ead02cb2eb871f8c17a;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- 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}" 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 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()