]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerDan McGregor <dan.mcgregor@usask.ca>
Thu, 5 Feb 2015 14:51:15 +0000 (08:51 -0600)
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>
meta/classes/image.bbclass
meta/lib/oe/rootfs.py

index 1c0fda7d60e5962e8757acb8334cbec633c0aff4..06353aa18a8ad5fc55de621f9af7f9478ff7ae63 100644 (file)
@@ -63,6 +63,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
 EXCLUDE_FROM_WORLD = "1"
 
 USE_DEVFS ?= "1"
+USE_DEPMOD ?= "1"
 
 PID = "${@os.getpid()}"
 
index c4735f2755c56b53d3876a9a367bbb9435ff85e7..5a43337a42b8e96ca6eaab0e9c872456fe638e54 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()