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