]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
busybox: Fix depmod patch
authorSaul Wold <Saul.Wold@windriver.com>
Fri, 10 Feb 2023 15:32:55 +0000 (07:32 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Feb 2023 10:20:44 +0000 (10:20 +0000)
The original patch was actually allowing .debug modules
though which was in-correct. This change blocks the
parsing of .debug modules (which is correct). As noted in
[YOCTO #15022] this should address the empty modules.dep
when using the BusyBox depmod.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/busybox/0001-depmod-Ignore-.debug-directories.patch

index 354f83a4a5fefc871f25fcda85687fd3c1128129..d76118f85b28b63fdd729c7ca15bb0cde6cda240 100644 (file)
@@ -21,7 +21,7 @@ index bb42bbe..aa5a2de 100644
        /* Arbitrary. Was sb->st_size, but that breaks .gz etc */
        size_t len = (64*1024*1024 - 4096);
  
-+      if (strstr(fname, ".debug") == NULL)
++      if (strstr(fname, ".debug") != NULL)
 +              return TRUE;
 +
        if (strrstr(fname, ".ko") == NULL)