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