]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: make kernel depmod data optional
authorDan McGregor <dan.mcgregor@usask.ca>
Tue, 27 Jan 2015 17:21:12 +0000 (11:21 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Feb 2015 14:53:42 +0000 (14:53 +0000)
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>
meta/classes/image.bbclass
meta/lib/oe/rootfs.py

index f09bfeea278149768107e98c0bd6c60269604a1e..b2a3e9782080d06e766c5fa819e3014880f25f58 100644 (file)
@@ -66,6 +66,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
 EXCLUDE_FROM_WORLD = "1"
 
 USE_DEVFS ?= "1"
+USE_DEPMOD ?= "1"
 
 PID = "${@os.getpid()}"
 
index 19aef2a1deedb01d360165e30793fd67a4647774..f42a2ae7b3c78ef42887dc87d14a7a3781891356 100644 (file)
@@ -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()