summaryrefslogtreecommitdiff
path: root/pkg/efibootmgr/gen.lua
blob: 079df230de58eb2cd8dccf1233c6a6414df1bb8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cflags{
	'-std=c99', '-Wall',
	[[-D 'EFIBOOTMGR_VERSION="17"']],
	[[-D 'DEFAULT_LOADER="/linux"']],
	'-I $srcdir/src/include',
	'-isystem $builddir/pkg/efivar/include',
	'-isystem $builddir/pkg/efivar/include/efivar',
	'-isystem $builddir/pkg/linux-headers/include',
}

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

exe('efibootmgr', [[
	src/(efibootmgr.c efi.c unparse_path.c)
	$builddir/pkg/efivar/(libefiboot.a libefivar.a)
]])
file('bin/efibootmgr', '755', '$outdir/efibootmgr')
man{'src/efibootmgr.8'}

fetch 'git'