diff options
Diffstat (limited to 'libc/kernel/tools')
-rw-r--r-- | libc/kernel/tools/defaults.py | 8 | ||||
-rwxr-xr-x | libc/kernel/tools/find_headers.py | 8 |
2 files changed, 11 insertions, 5 deletions
diff --git a/libc/kernel/tools/defaults.py b/libc/kernel/tools/defaults.py index aa68e7cde..200c77cf3 100644 --- a/libc/kernel/tools/defaults.py +++ b/libc/kernel/tools/defaults.py @@ -7,7 +7,7 @@ from utils import * # the list of supported architectures # -kernel_archs = [ 'arm', 'x86' ] +kernel_archs = [ 'arm', 'x86', 'mips' ] # the list of include directories that belong to the kernel # tree. used when looking for sources... @@ -66,6 +66,11 @@ kernel_known_x86_statics = set( ] ) +kernel_known_mips_statics = set( + [ + ] + ) + kernel_known_generic_statics = set( [ "__invalid_size_argument_for_IOC", # asm-generic/ioctl.h "__cmsg_nxthdr", # linux/socket.h @@ -81,6 +86,7 @@ kernel_known_generic_statics = set( kernel_known_statics = { "arm" : kernel_known_arm_statics, "x86" : kernel_known_x86_statics, + "mips" : kernel_known_mips_statics } # this is a list of macros which we want to specifically exclude from diff --git a/libc/kernel/tools/find_headers.py b/libc/kernel/tools/find_headers.py index 3d622a8bc..9b3572a0a 100755 --- a/libc/kernel/tools/find_headers.py +++ b/libc/kernel/tools/find_headers.py @@ -88,20 +88,20 @@ for archdir in os.listdir(kernel_root+"/arch"): archs.append(archdir) # if we're using the 'kernel_headers' directory, there is only asm/ -# and no other asm-<arch> directories (arm is assumed, which sucks) +# and no other asm-<arch> directories # in_kernel_headers = False if len(archs) == 0: # this can happen when we're using the 'kernel_headers' directory if os.path.isdir(kernel_root+"/asm"): in_kernel_headers = True - archs = [ "arm" ] + archs = [ "arm", "mips"] # if the user has specified some architectures with -a <archs> ensure that # all those he wants are available from the kernel include tree if wanted_archs != None: - if in_kernel_headers and wanted_archs != [ "arm" ]: - sys.stderr.write( "error: when parsing kernel_headers, 'arm' architecture only is supported at the moment\n" ) + if in_kernel_headers and wanted_archs != [ "arm", "mips" ]: + sys.stderr.write( "error: when parsing kernel_headers, only 'arm' and 'mips' architectures are supported at the moment\n" ) sys.exit(1) missing = [] for arch in wanted_archs: |