def write_fmaster_makefile(path, syscalls): srcs = pickup_sources(syscalls, "fmaster_") for syscall in [syscall for syscall in syscalls if syscall.pre_execute]: name = syscall.name srcs.append("{name}_pre_execute.c".format(**locals())) for syscall in [syscall for syscall in syscalls if syscall.post_execute]: name = syscall.name srcs.append("{name}_post_execute.c".format(**locals())) for syscall in [syscall for syscall in syscalls if syscall.post_common]: name = syscall.name srcs.append("{name}_post_common.c".format(**locals())) for name in DUMMY_SYSCALLS: srcs.append("{name}.c".format(**locals())) write_makefile(path, srcs)
def write_fslave_makefile(path, syscalls): write_makefile(path, pickup_sources(syscalls, "fslave_"))