1*05050ac4SBruce Richardson#! /usr/bin/env python3 2*05050ac4SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause 3*05050ac4SBruce Richardson# Copyright(c) 2021 Intel Corporation 4*05050ac4SBruce Richardson 5*05050ac4SBruce Richardsonfrom sys import argv 6*05050ac4SBruce Richardsonfrom os.path import abspath 7*05050ac4SBruce Richardson 8*05050ac4SBruce Richardson(h_file, c_file) = argv[1:] 9*05050ac4SBruce Richardson 10*05050ac4SBruce Richardsoncontents = '#include "' + abspath(h_file) + '"' 11*05050ac4SBruce Richardsonwith open(c_file, 'w') as cf: 12*05050ac4SBruce Richardson cf.write(contents) 13