diff --git a/src/broadcom/cle/meson.build b/src/broadcom/cle/meson.build index e74bd6a51ab..da88cd220a5 100644 --- a/src/broadcom/cle/meson.build +++ b/src/broadcom/cle/meson.build @@ -45,7 +45,7 @@ endforeach v3d_xml_h = custom_target( 'v3d_xml.h', - input : ['../../intel/genxml/gen_zipped_file.py', v3d_xml_files], + input : ['../../util/gen_zipped_xml_file.py', v3d_xml_files], output : 'v3d_xml.h', command : [prog_python, '@INPUT@'], capture : true, diff --git a/src/intel/genxml/meson.build b/src/intel/genxml/meson.build index 50aef38e861..359f3b5d3e6 100644 --- a/src/intel/genxml/meson.build +++ b/src/intel/genxml/meson.build @@ -45,7 +45,7 @@ endforeach genX_xml_h = custom_target( 'genX_xml.h', - input : ['gen_zipped_file.py', gen_xml_files], + input : ['../../util/gen_zipped_xml_file.py', gen_xml_files], output : 'genX_xml.h', command : [prog_python, '@INPUT@'], capture : true, diff --git a/src/intel/genxml/gen_zipped_file.py b/src/util/gen_zipped_xml_file.py similarity index 52% rename from src/intel/genxml/gen_zipped_file.py rename to src/util/gen_zipped_xml_file.py index d6af6e91fea..8bddc143a62 100644 --- a/src/intel/genxml/gen_zipped_file.py +++ b/src/util/gen_zipped_xml_file.py @@ -1,31 +1,13 @@ #encoding=utf-8 # # Copyright © 2017 Intel Corporation -# -# Permission is hereby granted, free of charge, to any person obtaining a -# copy of this software and associated documentation files (the "Software"), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice (including the next -# paragraph) shall be included in all copies or substantial portions of the -# Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# SPDX-License-Identifier: MIT import sys import zlib import xml.etree.ElementTree as et + def main(): if len(sys.argv) < 2: print("No input xml file specified")