Don't generate sys/linux-unistd.h
linux-unistd.h was here for reference purposes, but shouldn't have been accessible to client code. Delete it. Change-Id: I60c264ff6ca489a48117914bdf6daa486737af8c
This commit is contained in:
@@ -510,23 +510,6 @@ class State:
|
||||
self.other_files.append( path )
|
||||
|
||||
|
||||
# now dump the content of linux/_syscalls.h
|
||||
def gen_linux_unistd_h(self):
|
||||
path = "include/sys/linux-unistd.h"
|
||||
D( "generating "+path )
|
||||
fp = create_file( path )
|
||||
fp.write( "/* auto-generated by gensyscalls.py, do not touch */\n" )
|
||||
fp.write( "#ifndef _BIONIC_LINUX_UNISTD_H_\n\n" );
|
||||
fp.write( "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n" )
|
||||
|
||||
for sc in self.syscalls:
|
||||
fp.write( sc["decl"]+"\n" )
|
||||
|
||||
fp.write( "#ifdef __cplusplus\n}\n#endif\n" )
|
||||
fp.write( "\n#endif /* _BIONIC_LINUX_UNISTD_H_ */\n" );
|
||||
fp.close()
|
||||
self.other_files.append( path )
|
||||
|
||||
# now dump the contents of syscalls.mk
|
||||
def gen_arch_syscalls_mk(self, arch):
|
||||
path = "arch-%s/syscalls.mk" % arch
|
||||
@@ -612,7 +595,6 @@ class State:
|
||||
self.gen_linux_syscalls_h()
|
||||
for arch in all_archs:
|
||||
self.gen_arch_syscalls_mk(arch)
|
||||
self.gen_linux_unistd_h()
|
||||
self.gen_syscall_stubs()
|
||||
|
||||
D( "comparing files" )
|
||||
|
Reference in New Issue
Block a user