The insmod.static binary links statically and requires the libc.a
to be present. On Fedora glibc-static is not installed by default
when installing development headers. Warn the user that he needs
to have that installed.
Signed-off-by: Holger Hans Peter Freyther <[email protected]>
---
classes/sanity.bbclass | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 575530a..7f99251 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -99,6 +99,18 @@ def check_sanity(e):
missing = missing.rstrip(',')
messages = messages + "Please install following missing utilities: %s\n" % missing
+ # Libs that need to be present. E.g. libc.a for insmod.static
+ required_libs = "libc.a"
+ missing = ""
+ for lib in required_libs.split():
+ if not os.path.exists("/lib/%s" % lib) and not os.path.exists("/usr/lib/%s" % lib):
+ missing = "%s, %s" % (missing, lib)
+
+ if missing != "":
+ missing = missing.rstrip(',')
+ messages = "%sPlease install the following libraries: %s\n" % (messages, missing)
+
+
try:
if os.path.basename(os.readlink('/bin/sh')) == 'dash':
messages = messages + "Using dash as /bin/sh causes various subtle build problems, please use bash instead.\n"
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel