_name = f + '.h'
freedreno_xml_header_files += custom_target(
_name,
- input : ['gen_header.py', f],
+ input : ['gen_header.py', 'adreno/' + f],
output : _name,
command : [prog_python, '@INPUT@'],
capture : true,
)
endforeach
+
+freedreno_xml_header_files += custom_target(
+ 'a6xx-pack.xml.h',
+ input : ['gen_header.py', 'adreno/a6xx.xml'],
+ output : 'a6xx-pack.xml.h',
+ command : [prog_python, '@INPUT@', '--pack-structs'],
+ capture : true,
+ )
+freedreno_xml_header_files += custom_target(
+ 'adreno-pm4-pack.xml.h',
+ input : ['gen_header.py', 'adreno/adreno_pm4.xml'],
+ output : 'adreno-pm4-pack.xml.h',
+ command : [prog_python, '@INPUT@', '--pack-structs'],
+ capture : true,
+ )