diff --git a/src/panfrost/lib/common.xml b/src/panfrost/lib/common.xml new file mode 100644 index 00000000000..d4b5240fb01 --- /dev/null +++ b/src/panfrost/lib/common.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/panfrost/lib/meson.build b/src/panfrost/lib/meson.build index 021c8b98393..40e2cf5e23f 100644 --- a/src/panfrost/lib/meson.build +++ b/src/panfrost/lib/meson.build @@ -19,13 +19,16 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -pan_packers = custom_target( - 'midgard_pack.h', - input : ['gen_pack.py', 'midgard.xml'], - output : 'midgard_pack.h', - command : [prog_python, '@INPUT@'], - capture : true, -) +pan_packers = [] +foreach packer : ['common', 'midgard'] + pan_packers += custom_target( + packer + '_pack.h', + input : ['gen_pack.py', packer + '.xml'], + output : packer + '_pack.h', + command : [prog_python, '@INPUT@'], + capture : true, + ) +endforeach idep_pan_packers = declare_dependency( sources : [pan_packers],