blob: 5edb0654d672412e3f7f8df4f80fc3101091450f [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
cros_pre_src_prepare_patches() {
epatch "${BASHRC_FILESDIR}"/${PN}-0.5.9.1-noexec.patch || die
# Disable this logic for SDK builds.
if [[ $(cros_target) == "cros_host" ]]; then
CPPFLAGS+=" -DSHELL_IGNORE_NOEXEC"
else
# Emit crash reports when we detect problems.
CPPFLAGS+=" -DSHELL_NOEXEC_CRASH_REPORTS"
fi
export CPPFLAGS
}