]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerSteve Sakoman <steve@sakoman.com>
Wed, 12 Jun 2024 15:09:18 +0000 (08:09 -0700)
commit63856721cab409ae0598cfbff4fcf55c90bfd7e7
treeccd89d05e299a6c225a9e33b0a8b9425f1f7441e
parent2e3588ce3f0f14e6e0e6d2f4b6d8a52b68309394
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>
(cherry picked from commit 7ef767d84d56b25498e45db83bb8f9d9caebeaf9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-recipe/kernel.bbclass