Add TCMALLOC_SUPPORT parameter to add libtcmalloc_minimal to the image

This commit is contained in:
kszaq 2021-05-15 09:33:49 +02:00
parent 780c7a3db0
commit d6d915d0cc
2 changed files with 6 additions and 0 deletions

View File

@ -33,8 +33,10 @@ TARGET_ARCH="${ARCH}"
# include arm-mem package on arm
if [ "${TARGET_ARCH}" = "arm" ]; then
ARM_MEM_SUPPORT="yes"
TCMALLOC_SUPPORT="yes"
else
ARM_MEM_SUPPORT="no"
TCMALLOC_SUPPORT="no"
fi
# include helper functions

View File

@ -16,3 +16,7 @@ if [ "${ARM_MEM_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" arm-mem"
PKG_DEPENDS_INIT+=" arm-mem:init"
fi
if [ "${TCMALLOC_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" gperftools"
fi