-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.conf
189 lines (158 loc) · 10.6 KB
/
make.conf
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
## https://github.com/necrose99/arm64-portage/blob/master/make.conf.production
# some of my greatest hits... granted i need to cleave much in this use flags repo.
##Gentoo-clang
#CC="/usr/lib/llvm/9/bin/clang"
#CXX="/usr/lib/llvm/9/bin/clang++"
#AR="/usr/lib/llvm/9/bin/llvm-ar"
#NM="/usr/lib/llvm/9/bin/llvm-nm"
#RANLIB="/usr/lib/llvm/9/bin/llvm-ranlib"
##Gentoo-clang
#
ACCEPT_KEYWORDS="~arm64 arm64 **"
CHOST="aarch64-unknown-linux-gnu"
ACCEPT_LICENSE="*"
USE=""
COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 -mfloat-abi=hard ${GRAPHITE} ${CPU_FLAGS_ARM64}"
# -mfpu=neon-fp-armv8 -mneon-for-64bits gentoo bug.
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"
# 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"
#aarch64-cortex_a53-linux-gnu
# NOTE: This stage was built with the bindist Use flag enabled
# former PORTDIR="/usr/portage"
PORTDIR="/var/db/repos/gentoo"
DISTDIR=/var/gentoo/distfiles
PKGDIR="/packages"
### local overide /packages sym /var/cache/binpkgs , etc. however makes copy pkdir to ext hdd easier.. etc. RPI4/etc.. hopelly can make share mount share..
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
FEATURES="${FEATURES} getbinpkg ${FEATURES_2} ${FEATURES_3}"
FEATURES_2="buildpkg distcc parallel-fetch usepkg compressdebug splitdebug parallel-install downgrade-backup unmerge-backup"
#binpkg-multi-instance useful for local rebuilds with differing flags but some hosts no like xpaks ,,
#FEATURES_3="binpkg-multi-instance" protect-owned collision-detect ## <<typically wise
PORTAGE_BINHOST="https://isshoni.org/pi64pie"
#"https://raw.githubusercontent.com/necrose99/gentoo-binhost/aarch64-coretexa53-linux-gnu/"
GRUB_PLATFORMS="arm arm64 pc uboot xen "
## pc woeusb if making pc/aarch64 w10 on rpi, uboot/efi for rpi/rock64
ACCEPT_LICENSE="*"
ACCEPT_KEYWORDS="~arm64 arm64"
# ** for more forceful...
#GRAPHITE stuff"
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-block -floop-parallelize-all -fgraphite-identity"
# -ftree-vectorize ${GRAPHITE}"
## 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 RISCV Mips WebAssembly RISCV" #NVPTX add nivida
#
#know llvm targets,
# LLVM_TARGETS="(AArch64) AMDGPU* ARM* BPF NVPTX* X86* -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV% -Sparc -SystemZ -WebAssembly% -XCore
# for use when compiling locally
# override default build parallelism by changing the following
# two lines, and modifying the values as required
# Pi3 users (or Pi4 users with a 1GiB variant) should be
# less aggressive here
MAKEOPTS="-j5 -l4"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"
# caution! many parallel threads and / or emerge jobs may cause your
# RPi3/4 to run out of memory during large builds, or genup runs
# 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
# bkup notation/distcc only
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"
VIDEO_CARDS="nouveau fglrx nvidia panfrost mali vc4 iris freedreno tegra intel vivante radeon lima exynos"
# vc4 RPI3/4 #panfrost mali Rock64 rockpro64 ,pinebook pro/ODRID. #exynos a few arm boards # tegra nvidia SBC's #SERVERS /emu : nouveau nvidia freedreno radeon # intel generic emu.
# AMD makes a few ARM64 server chips. CAV-Thunderx2 nouveau etc..
#PORTAGE_GPG_DIR="/etc/portage/gpg"
### Language SUPPORT
L10N="af am ar az be bg bn br bs ca cs cy da de el en eo es et eu fa fi fil fo fr fy ga gl gu he hi hr hu hy id is it ja kk km kn ko la lt lv mk ml mn mr ms nl no pa pl pt ro ru sk sl sr sv sw ta te tg th tr uk uz vi zh as bo ceb chr co dv dz gd ht iu jv ka kmr-Latn ky lb lo mi mt my ne oc or ps qu sa sd si sq su syc ti to tt ug ur yi yo"
LINGUAS="${L10N}"
#LINGUAS tad depricated L10N best , add LINGUAS=L10N for legacy/compat on some pkgs.
### Language SUPPORT
## USE ## trying to reduce the use matrix to proper package.use... for now helping in that aim.
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 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 sctp bluetooth"
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 sctp
sha3 blake2 expat nettle zstd xar z3 colord brotli ssh samba rtmp metalink cookie_check numpy"
USE="${SAB_BAD} ${SAB_MEDIA} ${SAB_CODECS} ${SAB_SYSTEM} ${SAB_FILESYS} ${SAB_PRINT} ${SAB_XSYS} ${SAB_DESKTOP} ${SAB_BROWSER} ${SAB_COMMS} ${XUSE}"
XUSE="-kdeprefix -arts -qt3 -beagle -gnome -evo -mono -eds -apm -oss \
-branding -esd 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 x264 x265 gsm \
lame opus dv mp3 stream live openal theora ogg a52 \
win32codecs matroska xvid flac ffmpeg aac speex real dts musepack cjk \
unicode gnutls nptl gcj udev 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 fat hfs jfs xfs ntfs reiserfs sysfs inotify lzma lz4 \
cups ppds foomatic-db gimpprint freetype xprint scanner cairo X \
opengl png gif gtk qt4 qt5 qt3support xpm tiff xinerama aiglx \
gphoto2 dga lcd openexr wayland multitarget \
kdehiddenvisibility gmp libnotify rdesktop pda zeroconf kdeenablefinal \
visualization avahi startup-notification accessibility nsplugin \
firefox mozdevelop xulrunner jabber msn yahoo icq irc aim rss \
slp mail imap http2 tk sqlite sctp minipentoo upnp ldap odbc \
gold ocaml neon equalizer egl wavepak schroedinger twolame cdio \
armvfp vaapi d3d9 gles1 openmax tools icu sha3 blake2 expat \
nettle zstd xar z3 colord brotli ssh samba rtmp cookie_check \
numpy valgrind guile"
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 panfrost mali 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="3.8"
PYTHON_TARGETS="python3_7 python3_8 python3_9"
#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="php7-4"
RUBY_TARGETS="ruby25 ruby26 ruby27"
# 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 net50 net60"
# Setup GRUB platforms
GRUB_PLATFORMS="arm arm64 lp64 lp32 pc uboot"
# Support both 64bit and 32bit
ABI_arm64="arm64 arm32 lp64 lp32" ## 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
## xpak sometimes are usable othertimes metadata, dont sftp cleanly...