]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
kernel.bbclass: check, if directory exists before removing empty module directory
authorHeiko <heiko.thole@entwicklung.eq-3.de>
Mon, 15 Apr 2024 05:34:22 +0000 (07:34 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Apr 2024 12:39:17 +0000 (13:39 +0100)
commit7ef767d84d56b25498e45db83bb8f9d9caebeaf9
tree55ab4fc540302732b7d373d6d93a1517cdb839ae
parentf0a26644b620dea3f8ca82714cfa3249b13b01b1
kernel.bbclass: check, if directory exists before removing empty module directory

If the kernel folder does not exist, find will result in an error.
This can occur if the kernel has no modules but, for example, custom modules are created.

Add check before deleting.

Signed-off-by: Heiko Thole <heiko.thole@entwicklung.eq-3.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/kernel.bbclass