dpdk/buildtools/chkincs/gen_c_file_for_header.py
<<
>>
Prefs
   1#! /usr/bin/env python3
   2# SPDX-License-Identifier: BSD-3-Clause
   3# Copyright(c) 2021 Intel Corporation
   4
   5from sys import argv
   6from os.path import abspath
   7
   8(h_file, c_file) = argv[1:]
   9
  10contents = '#include "' + abspath(h_file) + '"'
  11with open(c_file, 'w') as cf:
  12    cf.write(contents)
  13