Skip to contentSkip to conversation

image.bbclass: make kernel depmod data optional

PATCH New Dan McGregor 1 participant 1 message Jan 27, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image.bbclass: make kernel depmod data optional

From: Dan McGregor <[email protected]>

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.

---
 meta/classes/image.bbclass | 1 +
 meta/lib/oe/rootfs.py      | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/classes/image.bbclass +1 -0
index 22b6970..b284101 100644
@@ -63,6 +63,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
 EXCLUDE_FROM_WORLD = "1"
 
 USE_DEVFS ?= "1"
+USE_DEPMOD ?= "1"
 
 PID = "${@os.getpid()}"
 
meta/lib/oe/rootfs.py +2 -1
index 72d32f7..ed15c95 100644
@@ -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()
 
Signature · 1 line
2.1.0