openap-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openap-cvs] : openap-main/scripts mklibs,1.3,1.4


From: David Kimdon <address@hidden>
Subject: [openap-cvs] : openap-main/scripts mklibs,1.3,1.4
Date: Wed, 31 Jul 2002 17:46:06 -0400

Update of /cvsroot/openap/openap-main/scripts
In directory subversions:/tmp/cvs-serv13411/scripts

Modified Files:
        mklibs 
Log Message:
Makefile: - remove usage that is now handled in README
 - pass new --pic-glob switch to mklibs
 - include ugly hack since mklibs isn't picking up 
 - after oldconfig and menuconfig copy the generated files into the kernel's
   build directory.  This isn't an ideal solution but it will do for now.
 - set dynamic linker in for native build
scripts/mklibs: - properly make dynamic linker executable
 - add new option to specify glob for finding pic libs


Index: mklibs
===================================================================
RCS file: /cvsroot/openap/openap-main/scripts/mklibs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mklibs      31 Jul 2002 18:56:18 -0000      1.3
+++ mklibs      31 Jul 2002 21:46:04 -0000      1.4
@@ -174,7 +174,7 @@
 def find_pic(lib):
     base_name = so_pattern.match(lib).group(1)
     for path in lib_path:
-        for file in glob.glob(path + "/" + base_name + "*_pic.a"):
+        for file in glob.glob(path + "/" + base_name + pic_glob):
             if os.access(file, os.F_OK):
                 return resolve_link(file)
     return ""
@@ -210,10 +210,11 @@
 # Argument parsing
 opts = "L:D:nvVhd:"
 longopts = ["no-default-lib", "dry-run", "verbose", "version", "help",
-            "dest-dir=", "ldlib=", "libc-extras-dir=", "target="]
+            "dest-dir=", "ldlib=", "libc-extras-dir=", "target=", "pic-glob="]
 optlist, proglist = getopt.getopt(sys.argv[1:], opts, longopts)
 
 # some global variables
+pic_glob="*_pic.a"
 lib_path = []
 dest_path = "DEST"
 ldlib = "LDLIB"
@@ -238,6 +239,8 @@
         ldlib = arg
     elif opt == "--libc-extras-dir":
         libc_extras_dir = arg
+    elif opt == "--pic-glob":
+        pic_glob = arg
     elif opt == "--target":
         target = arg + "-"
     elif opt in ("--help", "-h"):
@@ -443,6 +446,4 @@
     os.rename(dest_path + "/" + lib, dest_path + "/" + soname)
 
 # Make the dynamic linker executable
-ld_file = find_lib(ldlib)
-ld_file_name = os.path.basename(ld_file)
-os.chmod(dest_path + "/" + ld_file_name, 0755)
+os.chmod(dest_path + "/" + ldlib, 0755)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]