From 3d514acfe7cf80ea5dfc189055bb2e7fdf6a2d43 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 16 Aug 2020 17:26:26 -0700 Subject: Add pciutils 3.7.0 --- pkg/pciutils/gen.lua | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 pkg/pciutils/gen.lua (limited to 'pkg/pciutils/gen.lua') diff --git a/pkg/pciutils/gen.lua b/pkg/pciutils/gen.lua new file mode 100644 index 00000000..997193f6 --- /dev/null +++ b/pkg/pciutils/gen.lua @@ -0,0 +1,53 @@ +cflags{ + '-Wall', '-Wpedantic', '-Wno-parentheses', + '-I $dir', +} + +lib('libpci.a', [[ + lib/( + init.c + access.c + generic.c + dump.c + names.c + filter.c + names-hash.c + names-parse.c + names-net.c + names-cache.c + names-hwdb.c + params.c + caps.c + sysfs.c + ) +]]) + +cc('common.c') + +exe('lspci', { + 'lspci.c', + 'ls-vpd.c', + 'ls-caps.c', + 'ls-caps-vendor.c', + 'ls-ecaps.c', + 'ls-kernel.c', + 'ls-tree.c', + 'ls-map.c', + 'common.c.o', + 'libpci.a', +}) +file('bin/lspci', '755', '$outdir/lspci') +man({'$srcdir/lspci.man'}, '8') + +exe('setpci', { + 'setpci.c', + 'common.c.o', + 'libpci.a', +}) +file('bin/setpci', '755', '$outdir/setpci') +man({'$srcdir/setpci.man'}, '8') + +file('share/pci.ids', '644', '$srcdir/pci.ids') +man({'$srcdir/pci.ids.man'}, '5') + +fetch 'git' -- cgit v1.2.3