blob: b08c4d538088db2597cbf9dc4c2101a079c4d074 [file] [log] [blame]
Andrew Boie1d3731f2017-09-22 13:52:21 -07001#!/usr/bin/env python3
2#
3# Copyright (c) 2017 Intel Corporation
4#
5# SPDX-License-Identifier: Apache-2.0
6
Andrew Boiec78c5e62019-03-11 14:45:43 -07007"""
8Generation script for syscall_macros.h
9
Andy Ross65649742019-08-06 13:34:31 -070010Except for a single transitive include, this header is empty. The
11generated code that used to live here is now emitted by
12gen_syscalls.py directly.
Andrew Boiec78c5e62019-03-11 14:45:43 -070013
14This script has no inputs, and emits the generated header to stdout.
15"""
16
Andrew Boie1d3731f2017-09-22 13:52:21 -070017import sys
Andrew Boie1d3731f2017-09-22 13:52:21 -070018
Anas Nashif72565532017-12-12 08:19:25 -050019sys.stdout.write(
20 "/* Auto-generated by gen_syscall_header.py, do not edit! */\n\n")
Andrew Boie1d3731f2017-09-22 13:52:21 -070021sys.stdout.write("#ifndef GEN_SYSCALL_H\n#define GEN_SYSCALL_H\n\n")
Andrew Boied5a24002018-03-26 13:45:20 -070022sys.stdout.write("#include <syscall.h>\n")
Andrew Boie1d3731f2017-09-22 13:52:21 -070023
Andrew Boie1d3731f2017-09-22 13:52:21 -070024sys.stdout.write("#endif /* GEN_SYSCALL_H */\n")