-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
make.defaults.sdk
91 lines (68 loc) · 2.91 KB
/
make.defaults.sdk
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
# Copyright 2024 The ChromiumOS Authors and Alex313031
# Distributed under the terms of the GNU General Public License v2
# This file should go in //chromiumos/src/third_party/chromiumos-overlay/profiles/targets/sdk/
# Settings that are common to all host sdks. Do not place any board specific
# settings in here, or settings for cross-compiled targets.
#
# See "man 5 make.conf" and "man 5 portage" for the available options.
# Dummy setting so we can use the same append form below.
USE=""
# Various global settings.
USE="${USE} hardened multilib pic pie -introspection -cracklib"
# Custom USE flag ebuilds can use to determine whether it's going into the sdk
# or into a target board.
USE="${USE} cros_host"
# We do not use cron in the SDK.
USE="${USE} -cron"
# Disable all x11 USE flags for packages within chroot.
USE="${USE} -gtk2 -gtk3 -qt4"
# Enable extended attributes support in our sdk tools.
USE="${USE} xattr"
# But disable using them in the sdk itself for now. http://crbug.com/483174
USE="${USE} -filecaps"
# No need to track power in the sdk.
USE="${USE} -power_management"
# We don't boot things inside the sdk.
USE="${USE} -openrc"
# We don't need translation support in our SDK tools. b/248739853
USE="${USE} -nls"
# Disable vala inside the sdk
USE="${USE} -vala"
# We only have one rootfs.
USE="${USE} -split-usr"
# We don't need smi so don't enable it to simplify dependencies.
USE="${USE} -smi"
# We shouldn't need VA-API accel in the SDK.
USE="${USE} -vaapi"
# Various runtime features that control emerge behavior.
# See "man 5 make.conf" for details.
FEATURES="allow-missing-manifests buildpkg clean-logs -collision-protect
-ebuild-locks force-mirror -merge-sync -pid-sandbox
parallel-install preserve-libs sandbox -strict userfetch
userpriv usersandbox -unknown-features-warn network-sandbox
-binpkg-multi-instance"
# This is used by profiles/base/profile.bashrc to figure out that we
# are targeting the cros-sdk (in all its various modes). It should
# be utilized nowhere else!
CROS_SDK_HOST="cros-sdk-host"
# Qemu targets we care about.
QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64"
QEMU_USER_TARGETS="aarch64 arm i386 x86_64"
# Various compiler defaults. Should be no arch-specific bits here.
CFLAGS="-O3 -pipe -msse3 -mssse3 -msse4.1"
CXXFLAGS="-O3 -pipe -msse3 -mssse3 -msse4.1"
CPU_FLAGS_X86="${CPU_FLAGS_X86} mmx mmxext sse sse2 sse3 ssse3 sse4_1"
LDFLAGS="-msse3 -mssse3 -msse4.1 -Wl,-O3 -Wl,--lto-O3 -Wl,--as-needed"
RUSTFLAGS="-Ctarget-cpu=x86-64 -Copt-level=3 -Ctarget-feature=+msse4.1"
# The SDK doesn't have video cards.
VIDEO_CARDS="-*"
# We want to migrate away from this at some point.
# https://crbug.com/360346
SYMLINK_LIB="yes"
# Default target(s) for python-r1.eclass
PYTHON_TARGETS="-* python3_8"
PYTHON_SINGLE_TARGET="-* python3_8"
# Use clang as the default compiler.
CC=x86_64-pc-linux-gnu-clang
CXX=x86_64-pc-linux-gnu-clang++
LD=x86_64-pc-linux-gnu-ld.lld