summaryrefslogtreecommitdiff
path: root/pkg/hotplugd/gen.lua
blob: df46d62996a6f627a26941a6e5cedb87929599d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cflags{
	'-std=c11', '-Wall', '-Wextra', '-Wpedantic',
	([[-D 'PREFIX="%s"']]):format(config.prefix),
	'-isystem $builddir/pkg/linux-headers/include',
}

pkg.deps = {'pkg/linux-headers/headers'}

file('bin/hotplugd',             '755', exe('hotplugd', {'hotplugd.c'}))
file('libexec/hotplugd/ata_id',  '755', exe('ata_id',   {'ata_id.c'}))
file('libexec/hotplugd/trigger', '755', exe('trigger',  {'trigger.c'}))

fetch 'git'