Skip to content

Commit 029d984

Browse files
committed
overlay: Replace cros_target with new variables
1 parent 165f9c8 commit 029d984

File tree

4 files changed

+2
-23
lines changed

4 files changed

+2
-23
lines changed

sdk_container/src/third_party/coreos-overlay/coreos/config/env/dev-libs/glib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Do not install gobject-introspection binaries in production images.
2-
if [[ $(cros_target) != "cros_host" ]] ; then
2+
if [[ ${FLATCAR_TYPE} != 'sdk' ]] ; then
33
glib_mask="/usr/bin/gi-* /usr/lib*/libgirepository-2.0*"
44
PKG_INSTALL_MASK+=" ${glib_mask}"
55
INSTALL_MASK+=" ${glib_mask}"

sdk_container/src/third_party/coreos-overlay/coreos/config/env/net-misc/openssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Do not install the config snippet that defines a subsystem. We have
44
# our own definition in coreos-init.
5-
if [[ $(cros_target) != "cros_host" ]] ; then
5+
if [[ ${FLATCAR_TYPE} != 'sdk' ]] ; then
66
openssh_mask=" /usr/lib*/misc/ssh-keysign /etc/ssh/sshd_config.d/*gentoo-subsystem.conf "
77
PKG_INSTALL_MASK+="${openssh_mask}"
88
INSTALL_MASK+="${openssh_mask}"

sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/profile.bashrc

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,6 @@ CROS_BUILD_BOARD_BIN="${CROS_BUILD_BOARD_TREE}/bin"
55

66
CROS_ADDONS_TREE="/mnt/host/source/src/third_party/coreos-overlay/coreos"
77

8-
# Are we merging for the board sysroot, or for the cros sdk, or for
9-
# the target hardware? Returns a string:
10-
# - cros_host (the sdk)
11-
# - board_sysroot
12-
# - target_image
13-
# We can't rely on "use cros_host" as USE gets filtred based on IUSE,
14-
# and not all packages have IUSE=cros_host.
15-
cros_target() {
16-
if [[ ${CROS_SDK_HOST} == "cros-sdk-host" ]] ; then
17-
echo "cros_host"
18-
elif [[ ${ROOT%/} == ${SYSROOT%/} ]] ; then
19-
echo "board_sysroot"
20-
else
21-
echo "target_image"
22-
fi
23-
}
24-
258
# Load all additional bashrc files we have for this package.
269
cros_stack_bashrc() {
2710
local cfg cfgd

sdk_container/src/third_party/coreos-overlay/profiles/coreos/targets/sdk/make.defaults

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ FLATCAR_TYPE="sdk"
22

33
USE="cros_host expat man -pam"
44

5-
# Used by some old goo in profiles/coreos/base/profile.bashrc
6-
# TODO: clean up that old goo
7-
CROS_SDK_HOST="cros-sdk-host"
8-
95
# Enable CPU architectures needed by Rust builds
106
LLVM_TARGETS="X86 AArch64"
117

0 commit comments

Comments
 (0)