diff options
| author | Michael Forney <mforney@mforney.org> | 2020-08-16 17:26:26 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-08-16 17:26:32 -0700 |
| commit | 3d514acfe7cf80ea5dfc189055bb2e7fdf6a2d43 (patch) | |
| tree | c89055a6d20355c7b293f3c68369a8f3ded6ec71 /pkg/pciutils/gen.lua | |
| parent | 7d88126e0ab869493e784d5b95569646883874a7 (diff) | |
Add pciutils 3.7.0
Diffstat (limited to 'pkg/pciutils/gen.lua')
| -rw-r--r-- | pkg/pciutils/gen.lua | 53 |
1 files changed, 53 insertions, 0 deletions
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' |
