Skip to content

Commit

Permalink
build.config: Enable hermetic toolchain on msm-kernel
Browse files Browse the repository at this point in the history
Enable "mostly" hermetic toolchain on msm-kernel for targets which need
openssl.  For those targets, use DISABLE_HERMETIC_SYSROOT to work around
missing aosp/1843323. This change enables a hermetic PATH, but still
uses host's sysroot for system libraries.

Change-Id: Ifaa65baac3832647fd0938b90436b540c1ae0964
Signed-off-by: Elliot Berman <[email protected]>
  • Loading branch information
eberman-quic committed Oct 19, 2021
1 parent 570f70d commit 9e2b44f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.config.common
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ STOP_SHIP_TRACEPRINTK=1
IN_KERNEL_MODULES=1
DO_NOT_STRIP_MODULES=1

HERMETIC_TOOLCHAIN=${HERMETIC_TOOLCHAIN:-0}
HERMETIC_TOOLCHAIN=${HERMETIC_TOOLCHAIN:-1}
2 changes: 2 additions & 0 deletions build.config.msm.vm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Common configuration for building kernel for Virtual Machines
DEFCONFIG="generic_vm_defconfig"
OPENSSL_DIR=${KERNEL_DIR}/../build/build-tools/path/linux-x86/openssl
# Kernel platform missing aosp/1843323
DISABLE_HERMETIC_SYSROOT=1

append_cmd POST_DEFCONFIG_CMDS 'update_signing_keys_config'

Expand Down
1 change: 0 additions & 1 deletion build.config.msm.waipio.tuivm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

################################################################################
## Variant setup
HERMETIC_TOOLCHAIN=0
MSM_ARCH=waipio_tuivm
VARIANTS=(defconfig debug_defconfig)
[ -z "${VARIANT}" ] && VARIANT=debug_defconfig
Expand Down
1 change: 0 additions & 1 deletion build.config.neo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

################################################################################
## Variant setup
HERMETIC_TOOLCHAIN=0
MSM_ARCH=neo
VARIANTS=(defconfig debug_defconfig)
[ -z "${VARIANT}" ] && VARIANT=defconfig
Expand Down
2 changes: 2 additions & 0 deletions build.config.sxr.common
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Common configuration for building kernel for SXR products
DEFCONFIG="generic_sxr_defconfig"
OPENSSL_DIR=${KERNEL_DIR}/../build/build-tools/path/linux-x86/openssl
# Kernel platform missing aosp/1843323
DISABLE_HERMETIC_SYSROOT=1

append_cmd POST_DEFCONFIG_CMDS 'update_signing_keys_config'

Expand Down

0 comments on commit 9e2b44f

Please sign in to comment.