logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

gen.lua (733B)


  1. cflags{
  2. '-Wall', '-Wpedantic', '-Wno-parentheses',
  3. '-I $dir',
  4. }
  5. lib('libpci.a', [[
  6. lib/(
  7. init.c
  8. access.c
  9. generic.c
  10. dump.c
  11. names.c
  12. filter.c
  13. names-hash.c
  14. names-parse.c
  15. names-net.c
  16. names-cache.c
  17. names-hwdb.c
  18. params.c
  19. caps.c
  20. sysfs.c
  21. )
  22. ]])
  23. cc('common.c')
  24. exe('lspci', {
  25. 'lspci.c',
  26. 'ls-vpd.c',
  27. 'ls-caps.c',
  28. 'ls-caps-vendor.c',
  29. 'ls-ecaps.c',
  30. 'ls-kernel.c',
  31. 'ls-tree.c',
  32. 'ls-map.c',
  33. 'common.c.o',
  34. 'libpci.a',
  35. })
  36. file('bin/lspci', '755', '$outdir/lspci')
  37. man({'lspci.man'}, '8')
  38. exe('setpci', {
  39. 'setpci.c',
  40. 'common.c.o',
  41. 'libpci.a',
  42. })
  43. file('bin/setpci', '755', '$outdir/setpci')
  44. man({'setpci.man'}, '8')
  45. file('share/pci.ids', '644', '$srcdir/pci.ids')
  46. man({'pci.ids.man'}, '5')
  47. fetch 'git'