-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.conf.production
172 lines (140 loc) · 8.94 KB
/
make.conf.production
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Simple make.conf for 64-bit Raspberry Pi 3
## taked on Sabayon with make.conf bits
## debian arm64 works on RPI3 or servers so keeping it generic wide i'd tweek chost for shared optimized arm8/9 cpus
## also hackisly enabled multi-target , muti-lib, and ablity to crosscompile. hopefully run arm-7hf as 32bit also.
### https://github.com/sakaki-/gentoo-on-rpi3-64bit base image..
# unknown if graphite will work but a boon if it did.
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
# Only enable Graphite via package.env
#
CFLAGS="-O2 -pipe" # -ftree-vectorize ${GRAPHITE}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
CHOST="aarch64-unknown-linux-gnu"
#CHOST="arm64-linux-gnu"
# RPI3 / Soft Iron Frendly flaggs
### genric arm64
#CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe" # -ftree-vectorize ${GRAPHITE}"
#CXXFLAGS="${CFLAGS}"
## llvm add arm64 server targets , amd /nvidia also [cavium thunderx2 servers use nvidia also can run nvidia gpu/tesla]
LLVM_TARGETS="AArch64 BPF AMDGPU ARM X86 NVPTX neon amd64" #NVPTX add nivida
#
#know llvm targets,
# LLVM_TARGETS="(AArch64) AMDGPU* ARM* BPF X86* -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore"
# for use when compiling locally
MAKEOPTS="-j5 -l4"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4 --with-bdeps=y --keep-going=y --color y --binpkg-respect-use y --autounmask-continue y --binpkg-changed-deps y"
# for use with compiling with distcc only
#MAKEOPTS="-j32 -l4"
#EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"
#EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going=y" --autounmask-continue y --binpkg-changed-deps y
# Use the 'testing' branch - otherwise we'll have to keyword everything
ACCEPT_KEYWORDS="~arm64 arm64"
ACCEPT_LICENSE="*"
# Additional USE flags in addition to those specified by the current profile.
USE="bindist mudflap sanitize"
USE="${USE} bluetooth egl gles1 gles2 lock thunar qt4 ffmpeg"
USE="${USE} -gnome -kde"
# Turn on logging - see http://gentoo-en.vfose.ru/wiki/Gentoo_maintenance.
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_SYSTEM="save"
# Logs go to /var/log/portage/elog by default - view them with elogviewer.
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
# use (and verify) signed package snapshots, and build binary packages
# as a byproduct of each emerge (these are useful backups)
FEATURES="webrsync-gpg buildpkg distcc getbinpkg parallel-fetch usepkg protect-owned compressdebug splitdebug binpkg-multi-instance parallel-install"
#FEATURES="${FEATURES} getbinpkg"
PORTAGE_BINHOST="https://isshoni.org/pi64pie"
# distcc-pump icecream disabled ..
# uncomment to disribute emerges, where possible, using distcc
#FEATURES="${FEATURES} distcc distcc-pump "
CCACHE_SIZE="2G"
CCACHE_DIR="/var/ccache"
# uncomment to use binary packages from PORTAGE_BINHOST, where
# available (and build normally, where not)
#FEATURES="${FEATURES} getbinpkg"
VIDEO_CARDS="nouveau fglrx nvidia "
PORTAGE_GPG_DIR="/etc/portage/gpg"
# GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://trumpetti.atm.tut.fi/gentoo/" swap to USA mirriors.
GENTOO_MIRRORS="http://gentoo.osuosl.org/
http://mirrors.evowise.com/gentoo/
ftp://ftp.gtlib.gatech.edu/pub/gentoo
http://www.gtlib.gatech.edu/pub/gentoo
rsync://rsync.gtlib.gatech.edu/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://gentoo.mirrors.tds.net/gentoo
http://gentoo.cs.utah.edu/
http://gentoo.mirrors.easynews.com/linux/gentoo/
http://cosmos.illinois.edu/pub/gentoo/
ftp://cosmos.illinois.edu/pub/gentoo/
http://lug.mtu.edu/gentoo/
http://mirror.lug.udel.edu/pub/gentoo/
http://mirrors.rit.edu/gentoo/
ftp://mirrors.rit.edu/gentoo/
rsync://mirrors.rit.edu/gentoo/
http://gentoo.cs.uni.edu/
rsync://gentoo.cs.uni.edu/gentoo-distfiles
http://gentoo.mirrors.pair.com/"
LINGUAS="be fo hy la no en en_US af ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta tg tr uk uz vi zh_CN zh_TW es_AR es_ES fy_NL ga_IE gu gu_IN nb_NO nn_NO pt_PT sv_SE zh"
L10N="be fo hy la no en af ar az bg bn br bs ca cs cy da de el en-GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt-BR ro ru rw se sk sl sr sr-Latn ss sv ta tg tr uk uz vi zh-CN zh-TW es-AR es-ES fy ga gu nb nn pt-PT sv zh am es-419 fil id kn ml mr sw te th "
### test langs
## USE ##
SAB_BAD="-kdeprefix -arts -qt3 -beagle -gnome -evo -mono -eds -apm -oss -branding -esd"
SAB_MEDIA="musicbrainz sdl pulseaudio wmf fame cdr dvi mp3rtp xine cddb alsa dvb dvd bluray network dvdread ipod audiofile artswrappersuid dvdr jack dri cdda libav mjpeg mmx joystick xvmc cpudetection v4l v4l2 wavpack vpx vdpau svg"
SAB_CODECS="x264 x265 gsm lame opus dv mp3 stream live openal theora ogg a52 win32codecs matroska xvid flac ffmpeg aac speex real dts musepack"
SAB_SYSTEM="cjk unicode gnutls nptl gcj udev -systemd logind -consolekit kerberos acl dbus bash-completion lzo rar policykit xcb bzip2 bidi wifi lm_sensors acpi usb pcmcia bluetooth irda ieee1394 perl python numa"
SAB_FILESYS="fat hfs jfs xfs ntfs reiserfs sysfs inotify lzma lz4 lzo"
SAB_PRINT="cups ppds foomatic-db gimpprint freetype xprint scanner"
SAB_XSYS="cairo X opengl png gif gtk qt4 qt5 qt3support xpm tiff xinerama aiglx svg gphoto2 dga lcd openexr wayland multitarget"
SAB_DESKTOP="kdehiddenvisibility gmp libnotify rdesktop pda zeroconf kdeenablefinal visualization avahi startup-notification accessibility"
SAB_BROWSER="nsplugin firefox mozdevelop xulrunner"
SAB_COMMS="jabber msn yahoo icq irc aim rss slp mail imap http2 tk sqlite"
SAB_TEST="minipentoo upnp kerberos ldap odbc gold ocaml neon equalizer egl wavepak vpx schroedinger twolame cdio armvfp cdio vdpau vaapi d3d9 gles1 openmax tools icu"
USE="${SAB_BAD} ${SAB_MEDIA} ${SAB_CODECS} ${SAB_SYSTEM} ${SAB_FILESYS} ${SAB_PRINT} ${SAB_XSYS} ${SAB_DESKTOP} ${SAB_BROWSER} ${SAB_COMMS} {SAB_TEST}"
INPUT_DEVICES="evdev void wacom "
## rpi dosnet need as many VC's however targeting servers now also , calverium has nvida soc, softiron is amd...
VIDEO_CARDS="fbdev vesa radeonsi radeon fbdev vc4 nouveau amdgpu radeon neon vdpau egl radeonsi vmware freedreno virgl"
#nouveau NVIDA-arm64 neon arm/arm64
LIRC_DEVICES="audio audio_alsa devinput pctv"
ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y"
CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template"
## OFFICE ##
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher"
## QEMU ##
QEMU_USER_TARGETS="alpha arm aarch64 armeb cris i386 m68k microblaze mips mipsel ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus sparc64 x86_64"
QEMU_SOFTMMU_TARGETS="x86_64 arm aarch64 cris i386 m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc sparc64"
USE_PYTHON="2.7"
PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"
#mgorny python hack tip. can force for newer 36 py.. etc.. if i get wind of coming py34 deprication
## python-3.5 tending to fuck with crap on rpi3-64 , server not so bad since newer ver.
## PYTHON_COMPAT_OVERRIDE='pypy3'
#pypy pypy3 wont build on 2 gigs+++ =< RPI3 has a gig.
# Some more forced targets
PHP_TARGETS="php5-6"
RUBY_TARGETS="ruby21 ruby22 ruby23 ruby24 ruby25"
# ruby24 fails to comiple on rpi3 perhaps on Bannanpi64 or with more RAM, it will sit on R-PI3 for dayz....
# https://github.com/gentoo/dotnet layman -a dotnet
DOTNET_TARGETS="net45 net40"
# Setup GRUB platforms
GRUB_PLATFORMS="arm arm64"
# Support both 64bit and 32bit
ABI_arm64="ARM64 ARM" ## would be a plus.
## PORTAGE CONFIG ##
PORTDIR_OVERLAY="/usr/local/portage"
PORTDIR_OVERLAY="/var/lib/layman/"
#source /var/lib/layman/make.conf
CONFIG_PROTECT="/usr/share/config/kdm /etc /etc/conf.d /etc/init.d"
# /lib/modules mask is useful for our internal tinderbox
CONFIG_PROTECT_MASK="/etc/skel /lib/modules"
# Set PORTDIR for backward compatibility with various tools:
# gentoo-bashcomp - bug #478444
# euse - bug #474574
# euses and ufed - bug #478318
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
PORT_LOGDIR="/var/log/portage"
BINPKG_COMPRESS = "bzip2"
## xpak sometimes are usable othertimes metadata, dont sftp cleanly...