master
config.def.lua
1local sets = dofile(basedir..'/sets.lua')
2
3return {
4 -- build output directory
5 builddir='out',
6
7 -- distfile directory
8 distdir='dist',
9
10 -- install prefix
11 prefix='',
12
13 -- compress man pages
14 gzman=true,
15
16 -- package/file selection
17 fs={
18 -- Each entry contains a list of packages, a list of patterns
19 -- matching files to include from those packages, and a list of
20 -- patterns matching files to exclude. If no patterns are
21 -- specified, all files from the package are included.
22 {sets.core, exclude={'^include/', '^lib/.*%.a$'}},
23
24 -- You may also specify a list of patterns to include or exclude
25 -- for any packages not matching any entries. If no patterns are
26 -- specified, all files from the package are excluded.
27 -- include={...}, exclude={...},
28 },
29
30 -- target toolchain and flags
31 target={
32 platform='x86_64-linux-musl',
33 cflags='-Os -fPIE -pipe -Werror=implicit-function-declaration',
34 ldflags='-s -static-pie',
35 },
36
37 -- host toolchain and flags
38 host={
39 cflags='-O2 -pipe',
40 ldflags='',
41 },
42
43 -- output git repository
44 repo={
45 path='$builddir/root.git',
46 flags='--bare',
47 tag='tree',
48 branch='master',
49 },
50
51 -- GPU driver (possible_values: amdgpu intel nouveau)
52 -- video_drivers={intel=true}
53}