diff options
author | Yang Xu <yang.xu@mediatek.com> | 2024-01-09 11:05:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-10 17:01:28 +0000 |
commit | b11e3aa995f8590a6da73f1df2c76797bc747ead (patch) | |
tree | 84951f7cf6cf3436035372351288fea9f61bdc5f /meta/lib/oe | |
parent | 41eb4934cf8aaf544b0e77331937718cee47064b (diff) | |
download | poky-b11e3aa995f8590a6da73f1df2c76797bc747ead.tar.gz |
rootfs.py: check depmodwrapper execution result
The execution result of depmodwrapper is not checked which makes depmod
generation failed sliently and hard to detect.
So check exection result and stop building if depmodwrapper failed.
(From OE-Core rev: 2f88e7d331390c6aaecc4522253e24791aec299e)
Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/rootfs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 1a48ed10b3..3f27164536 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
@@ -349,7 +349,8 @@ class Rootfs(object, metaclass=ABCMeta): | |||
349 | bb.utils.mkdirhier(versioned_modules_dir) | 349 | bb.utils.mkdirhier(versioned_modules_dir) |
350 | 350 | ||
351 | bb.note("Running depmodwrapper for %s ..." % versioned_modules_dir) | 351 | bb.note("Running depmodwrapper for %s ..." % versioned_modules_dir) |
352 | self._exec_shell_cmd(['depmodwrapper', '-a', '-b', self.image_rootfs, kernel_ver, kernel_package_name]) | 352 | if self._exec_shell_cmd(['depmodwrapper', '-a', '-b', self.image_rootfs, kernel_ver, kernel_package_name]): |
353 | bb.fatal("Kernel modules dependency generation failed") | ||
353 | 354 | ||
354 | """ | 355 | """ |
355 | Create devfs: | 356 | Create devfs: |