mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
Add TCMALLOC_SUPPORT parameter to add libtcmalloc_minimal to the image
This commit is contained in:
parent
780c7a3db0
commit
d6d915d0cc
@ -33,8 +33,10 @@ TARGET_ARCH="${ARCH}"
|
|||||||
# include arm-mem package on arm
|
# include arm-mem package on arm
|
||||||
if [ "${TARGET_ARCH}" = "arm" ]; then
|
if [ "${TARGET_ARCH}" = "arm" ]; then
|
||||||
ARM_MEM_SUPPORT="yes"
|
ARM_MEM_SUPPORT="yes"
|
||||||
|
TCMALLOC_SUPPORT="yes"
|
||||||
else
|
else
|
||||||
ARM_MEM_SUPPORT="no"
|
ARM_MEM_SUPPORT="no"
|
||||||
|
TCMALLOC_SUPPORT="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# include helper functions
|
# include helper functions
|
||||||
|
@ -16,3 +16,7 @@ if [ "${ARM_MEM_SUPPORT}" = "yes" ]; then
|
|||||||
PKG_DEPENDS_TARGET+=" arm-mem"
|
PKG_DEPENDS_TARGET+=" arm-mem"
|
||||||
PKG_DEPENDS_INIT+=" arm-mem:init"
|
PKG_DEPENDS_INIT+=" arm-mem:init"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${TCMALLOC_SUPPORT}" = "yes" ]; then
|
||||||
|
PKG_DEPENDS_TARGET+=" gperftools"
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user