blob: 903d88f117555df1bbd4ae9d3b6a6b1621ad313b [file] [log] [blame]
# Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
# 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"
# expat needed for XML parsing in GDB, but enable globally as overhead is tiny.
USE="${USE} expat"
# 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"
# 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 -merge-sync parallel-install -preserve-libs sandbox
-strict userfetch userpriv usersandbox -unknown-features-warn
network-sandbox"
# 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 mips mips64 mips64el mipsel x86_64"
QEMU_USER_TARGETS="aarch64 arm i386 mips mips64 mips64el mipsel x86_64"
# Various compiler defaults. Should be no arch-specific bits here.
CFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"